struct
TwitterAds::Proto::CardsPoll
- TwitterAds::Proto::CardsPoll
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
twitter-ads/proto/cards_poll.pb.crConstant Summary
-
FIELDS =
{1 => {name: :card_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :card_uri, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :content_duration_seconds, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :duration_in_minutes, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :end_time, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :first_choice, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :fourth_choice, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :image_display_height, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :image_display_width, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :media_key, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :media_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :poster_media_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :second_choice, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :start_time, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :third_choice, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :video_height, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :video_hls_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :video_poster_height, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :video_poster_width, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :video_width, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 26 => {name: :account_id, 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
- .new(buf : Protobuf::Buffer)
- .new(card_type : String | Nil = nil, card_uri : String | Nil = nil, content_duration_seconds : String | Nil = nil, created_at : String | Nil = nil, deleted : Bool | Nil = nil, duration_in_minutes : String | Nil = nil, end_time : String | Nil = nil, first_choice : String | Nil = nil, fourth_choice : String | Nil = nil, id : String | Nil = nil, image_display_height : String | Nil = nil, image_display_width : String | Nil = nil, media_key : String | Nil = nil, media_url : String | Nil = nil, name : String | Nil = nil, poster_media_url : String | Nil = nil, second_choice : String | Nil = nil, start_time : String | Nil = nil, third_choice : String | Nil = nil, updated_at : String | Nil = nil, video_height : String | Nil = nil, video_hls_url : String | Nil = nil, video_poster_height : String | Nil = nil, video_poster_width : String | Nil = nil, video_width : String | Nil = nil, account_id : String | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #account_id : String | Nil
- #account_id=(account_id : String | Nil)
- #card_type : String | Nil
- #card_type=(card_type : String | Nil)
- #card_uri : String | Nil
- #card_uri=(card_uri : String | Nil)
- #content_duration_seconds : String | Nil
- #content_duration_seconds=(content_duration_seconds : String | Nil)
- #created_at : String | Nil
- #created_at=(created_at : String | Nil)
- #deleted : Bool | Nil
- #deleted=(deleted : Bool | Nil)
- #duration_in_minutes : String | Nil
- #duration_in_minutes=(duration_in_minutes : String | Nil)
- #end_time : String | Nil
- #end_time=(end_time : String | Nil)
- #first_choice : String | Nil
- #first_choice=(first_choice : String | Nil)
- #fourth_choice : String | Nil
- #fourth_choice=(fourth_choice : String | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #image_display_height : String | Nil
- #image_display_height=(image_display_height : String | Nil)
- #image_display_width : String | Nil
- #image_display_width=(image_display_width : String | Nil)
- #media_key : String | Nil
- #media_key=(media_key : String | Nil)
- #media_url : String | Nil
- #media_url=(media_url : String | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #poster_media_url : String | Nil
- #poster_media_url=(poster_media_url : String | Nil)
- #second_choice : String | Nil
- #second_choice=(second_choice : String | Nil)
- #start_time : String | Nil
- #start_time=(start_time : String | Nil)
- #third_choice : String | Nil
- #third_choice=(third_choice : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #updated_at : String | Nil
- #updated_at=(updated_at : String | Nil)
- #video_height : String | Nil
- #video_height=(video_height : String | Nil)
- #video_hls_url : String | Nil
- #video_hls_url=(video_hls_url : String | Nil)
- #video_poster_height : String | Nil
- #video_poster_height=(video_poster_height : String | Nil)
- #video_poster_width : String | Nil
- #video_poster_width=(video_poster_width : String | Nil)
- #video_width : String | Nil
- #video_width=(video_width : String | Nil)
Constructor Detail
def self.new(card_type : String | Nil = nil, card_uri : String | Nil = nil, content_duration_seconds : String | Nil = nil, created_at : String | Nil = nil, deleted : Bool | Nil = nil, duration_in_minutes : String | Nil = nil, end_time : String | Nil = nil, first_choice : String | Nil = nil, fourth_choice : String | Nil = nil, id : String | Nil = nil, image_display_height : String | Nil = nil, image_display_width : String | Nil = nil, media_key : String | Nil = nil, media_url : String | Nil = nil, name : String | Nil = nil, poster_media_url : String | Nil = nil, second_choice : String | Nil = nil, start_time : String | Nil = nil, third_choice : String | Nil = nil, updated_at : String | Nil = nil, video_height : String | Nil = nil, video_hls_url : String | Nil = nil, video_poster_height : String | Nil = nil, video_poster_width : String | Nil = nil, video_width : String | Nil = nil, account_id : String | Nil = nil)
#