struct
TwitterAds::Proto::DraftTweet
- TwitterAds::Proto::DraftTweet
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
twitter-ads/proto/draft_tweet.pb.crConstant Summary
-
FIELDS =
{1 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :user_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :nullcast, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :card_uri, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :media_keys, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 10 => {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(name : String | Nil = nil, text : String | Nil = nil, user_id : String | Nil = nil, id : String | Nil = nil, nullcast : Bool | Nil = nil, created_at : String | Nil = nil, card_uri : String | Nil = nil, updated_at : String | Nil = nil, media_keys : Array(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_uri : String | Nil
- #card_uri=(card_uri : String | Nil)
- #created_at : String | Nil
- #created_at=(created_at : String | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #media_keys : Array(String) | Nil
- #media_keys=(media_keys : Array(String) | Nil)
- #media_keys=(media_keys : Array(String) | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #nullcast : Bool | Nil
- #nullcast=(nullcast : Bool | Nil)
- #text : String | Nil
- #text=(text : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #updated_at : String | Nil
- #updated_at=(updated_at : String | Nil)
- #user_id : String | Nil
- #user_id=(user_id : String | Nil)
Constructor Detail
def self.new(name : String | Nil = nil, text : String | Nil = nil, user_id : String | Nil = nil, id : String | Nil = nil, nullcast : Bool | Nil = nil, created_at : String | Nil = nil, card_uri : String | Nil = nil, updated_at : String | Nil = nil, media_keys : Array(String) | Nil = nil, account_id : String | Nil = nil)
#