struct
TwitterAds::Proto::UserSetting
- TwitterAds::Proto::UserSetting
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
twitter-ads/proto/user_setting.pb.crConstant Summary
-
FIELDS =
{1 => {name: :notification_email, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :contact_phone, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :contact_phone_extension, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :subscribed_email_types, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :account_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :user_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, 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(notification_email : String | Nil = nil, contact_phone : String | Nil = nil, contact_phone_extension : String | Nil = nil, subscribed_email_types : Array(String) | Nil = nil, account_id : String | Nil = nil, user_id : Int64 | 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)
- #contact_phone : String | Nil
- #contact_phone=(contact_phone : String | Nil)
- #contact_phone_extension : String | Nil
- #contact_phone_extension=(contact_phone_extension : String | Nil)
- #notification_email : String | Nil
- #notification_email=(notification_email : String | Nil)
- #subscribed_email_types : Array(String) | Nil
- #subscribed_email_types=(subscribed_email_types : Array(String) | Nil)
- #subscribed_email_types=(subscribed_email_types : Array(String) | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #user_id : Int64 | Nil
- #user_id=(user_id : Int64 | Nil)
Constructor Detail
def self.new(notification_email : String | Nil = nil, contact_phone : String | Nil = nil, contact_phone_extension : String | Nil = nil, subscribed_email_types : Array(String) | Nil = nil, account_id : String | Nil = nil, user_id : Int64 | Nil = nil)
#