struct Facebook::Proto::IgMedia

Included Modules

Defined in:

cli/proto/facebook/IgMedia.pb.cr

Constant Summary

FIELDS = {1 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :caption, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :comments_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :ig_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :is_comment_enabled, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :like_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :media_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :media_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :permalink, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :shortcode, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :thumbnail_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :timestamp, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :username, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Fields = {} of String => Field

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(id : String | Nil = nil, caption : String | Nil = nil, comments_count : Int64 | Nil = nil, ig_id : String | Nil = nil, is_comment_enabled : Bool | Nil = nil, like_count : Int64 | Nil = nil, media_type : String | Nil = nil, media_url : String | Nil = nil, permalink : String | Nil = nil, shortcode : String | Nil = nil, thumbnail_url : String | Nil = nil, timestamp : Datetime | Nil = nil, username : String | Nil = nil) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def []=(key : String, val) #

def []?(key : String) #

def caption : String | Nil #

def caption=(caption : String | Nil) #

def comments_count : Int64 | Nil #

def comments_count=(comments_count : Int64 | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def ig_id : String | Nil #

def ig_id=(ig_id : String | Nil) #

def is_comment_enabled : Bool | Nil #

def is_comment_enabled=(is_comment_enabled : Bool | Nil) #

def like_count : Int64 | Nil #

def like_count=(like_count : Int64 | Nil) #

def media_type : String | Nil #

def media_type=(media_type : String | Nil) #

def media_url : String | Nil #

def media_url=(media_url : String | Nil) #

def permalink : String | Nil #

def permalink=(permalink : String | Nil) #

def shortcode : String | Nil #

def shortcode=(shortcode : String | Nil) #

def thumbnail_url : String | Nil #

def thumbnail_url=(thumbnail_url : String | Nil) #

def timestamp : Datetime | Nil #

def timestamp=(timestamp : Datetime | Nil) #

def to_hash #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def username : String | Nil #

def username=(username : String | Nil) #