Class: Vk::API::Video::Methods::CreateComment
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Video::Methods::CreateComment
- Defined in:
- lib/vk/api/video/methods/create_comment.rb
Overview
Adds a new comment on a video.
Arguments collapse
-
#attachments ⇒ Array
List of objects attached to the comment, in the following format:; "
, "; '' — Type of media attachment:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; ' ' — ID of the media attachment owner.; ' ' — Media attachment ID. -
#from_group ⇒ Boolean
'1' — to post the comment from a community name (only if 'owner_id'<0).
- #guid ⇒ String
-
#message ⇒ String
New comment text.
-
#owner_id ⇒ Integer
ID of the user or community that owns the video.
- #reply_to_comment ⇒ Integer
- #sticker_id ⇒ Integer
-
#video_id ⇒ Integer
Video ID.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Video::Methods::CreateComment
|
# File 'lib/vk/api/video/methods/create_comment.rb', line 15
|
Instance Method Details
#attachments ⇒ Array
Returns List of objects attached to the comment, in the following format:; "
36 |
# File 'lib/vk/api/video/methods/create_comment.rb', line 36 attribute :attachments, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#from_group ⇒ Boolean
Returns '1' — to post the comment from a community name (only if 'owner_id'<0).
38 |
# File 'lib/vk/api/video/methods/create_comment.rb', line 38 attribute :from_group, API::Types::Form::Bool.optional.default(nil) |
#guid ⇒ String
44 |
# File 'lib/vk/api/video/methods/create_comment.rb', line 44 attribute :guid, API::Types::Coercible::String.optional.default(nil) |
#message ⇒ String
Returns New comment text.
34 |
# File 'lib/vk/api/video/methods/create_comment.rb', line 34 attribute :message, API::Types::Coercible::String.optional.default(nil) |
#owner_id ⇒ Integer
Returns ID of the user or community that owns the video.
30 |
# File 'lib/vk/api/video/methods/create_comment.rb', line 30 attribute :owner_id, API::Types::Coercible::Int.optional.default(nil) |
#reply_to_comment ⇒ Integer
40 |
# File 'lib/vk/api/video/methods/create_comment.rb', line 40 attribute :reply_to_comment, API::Types::Coercible::Int.optional.default(nil) |