struct Facebook::Proto::Referral
- Facebook::Proto::Referral
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/Referral.pb.crConstant 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: :invite_limit, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :messenger_cta, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :messenger_promotion_text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :namespace, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :need_promo_code, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :offer_origin, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :promotion_text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :receiver_benefits_text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :referral_link_uri, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :sender_benefits_text, 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(id : String | Nil = nil, invite_limit : Int64 | Nil = nil, messenger_cta : String | Nil = nil, messenger_promotion_text : String | Nil = nil, namespace : String | Nil = nil, need_promo_code : Bool | Nil = nil, offer_origin : String | Nil = nil, promotion_text : String | Nil = nil, receiver_benefits_text : String | Nil = nil, referral_link_uri : String | Nil = nil, sender_benefits_text : String | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #id : String | Nil
- #id=(id : String | Nil)
- #invite_limit : Int64 | Nil
- #invite_limit=(invite_limit : Int64 | Nil)
- #messenger_cta : String | Nil
- #messenger_cta=(messenger_cta : String | Nil)
- #messenger_promotion_text : String | Nil
- #messenger_promotion_text=(messenger_promotion_text : String | Nil)
- #namespace : String | Nil
- #namespace=(namespace : String | Nil)
- #need_promo_code : Bool | Nil
- #need_promo_code=(need_promo_code : Bool | Nil)
- #offer_origin : String | Nil
- #offer_origin=(offer_origin : String | Nil)
- #promotion_text : String | Nil
- #promotion_text=(promotion_text : String | Nil)
- #receiver_benefits_text : String | Nil
- #receiver_benefits_text=(receiver_benefits_text : String | Nil)
- #referral_link_uri : String | Nil
- #referral_link_uri=(referral_link_uri : String | Nil)
- #sender_benefits_text : String | Nil
- #sender_benefits_text=(sender_benefits_text : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(id : String | Nil = nil, invite_limit : Int64 | Nil = nil, messenger_cta : String | Nil = nil, messenger_promotion_text : String | Nil = nil, namespace : String | Nil = nil, need_promo_code : Bool | Nil = nil, offer_origin : String | Nil = nil, promotion_text : String | Nil = nil, receiver_benefits_text : String | Nil = nil, referral_link_uri : String | Nil = nil, sender_benefits_text : String | Nil = nil)
#