struct Facebook::Proto::Referral

Included Modules

Defined in:

cli/proto/facebook/Referral.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: :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

Class Method Summary

Instance Method Summary

Constructor Detail

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

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) #

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 id : String | Nil #

def id=(id : String | Nil) #

def invite_limit : Int64 | Nil #

def invite_limit=(invite_limit : Int64 | Nil) #

def messenger_cta : String | Nil #

def messenger_cta=(messenger_cta : String | Nil) #

def messenger_promotion_text : String | Nil #

def messenger_promotion_text=(messenger_promotion_text : String | Nil) #

def namespace : String | Nil #

def namespace=(namespace : String | Nil) #

def need_promo_code : Bool | Nil #

def need_promo_code=(need_promo_code : Bool | Nil) #

def offer_origin : String | Nil #

def offer_origin=(offer_origin : String | Nil) #

def promotion_text : String | Nil #

def promotion_text=(promotion_text : String | Nil) #

def receiver_benefits_text : String | Nil #

def receiver_benefits_text=(receiver_benefits_text : String | Nil) #

def referral_link_uri : String | Nil #

def referral_link_uri=(referral_link_uri : String | Nil) #

def sender_benefits_text : String | Nil #

def sender_benefits_text=(sender_benefits_text : String | Nil) #

def to_hash #

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

def to_protobuf #