struct Facebook::Proto::NativeOffer

Included Modules

Defined in:

cli/proto/facebook/NativeOffer.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: :barcode_photo, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :barcode_photo_uri, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :barcode_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :barcode_value, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :block_reshares, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :details, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :disable_location, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :expiration_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :instore_code, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :location_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :max_save_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :online_code, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :page_set_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :redemption_code, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :redemption_link, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :save_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :terms, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :title, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :total_unique_codes, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :unique_codes, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :unique_codes_file_code_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :unique_codes_file_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :unique_codes_file_upload_status, 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, barcode_photo : String | Nil = nil, barcode_photo_uri : String | Nil = nil, barcode_type : String | Nil = nil, barcode_value : String | Nil = nil, block_reshares : Bool | Nil = nil, details : String | Nil = nil, disable_location : Bool | Nil = nil, expiration_time : Datetime | Nil = nil, instore_code : String | Nil = nil, location_type : String | Nil = nil, max_save_count : Int64 | Nil = nil, online_code : String | Nil = nil, page_set_id : String | Nil = nil, redemption_code : String | Nil = nil, redemption_link : String | Nil = nil, save_count : Int64 | Nil = nil, terms : String | Nil = nil, title : String | Nil = nil, total_unique_codes : String | Nil = nil, unique_codes : String | Nil = nil, unique_codes_file_code_type : String | Nil = nil, unique_codes_file_name : String | Nil = nil, unique_codes_file_upload_status : 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 barcode_photo : String | Nil #

def barcode_photo=(barcode_photo : String | Nil) #

def barcode_photo_uri : String | Nil #

def barcode_photo_uri=(barcode_photo_uri : String | Nil) #

def barcode_type : String | Nil #

def barcode_type=(barcode_type : String | Nil) #

def barcode_value : String | Nil #

def barcode_value=(barcode_value : String | Nil) #

def block_reshares : Bool | Nil #

def block_reshares=(block_reshares : Bool | Nil) #

def details : String | Nil #

def details=(details : String | Nil) #

def disable_location : Bool | Nil #

def disable_location=(disable_location : Bool | Nil) #

def expiration_time : Datetime | Nil #

def expiration_time=(expiration_time : Datetime | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def instore_code : String | Nil #

def instore_code=(instore_code : String | Nil) #

def location_type : String | Nil #

def location_type=(location_type : String | Nil) #

def max_save_count : Int64 | Nil #

def max_save_count=(max_save_count : Int64 | Nil) #

def online_code : String | Nil #

def online_code=(online_code : String | Nil) #

def page_set_id : String | Nil #

def page_set_id=(page_set_id : String | Nil) #

def redemption_code : String | Nil #

def redemption_code=(redemption_code : String | Nil) #

def redemption_link : String | Nil #

def redemption_link=(redemption_link : String | Nil) #

def save_count : Int64 | Nil #

def save_count=(save_count : Int64 | Nil) #

def terms : String | Nil #

def terms=(terms : String | Nil) #

def title : String | Nil #

def title=(title : String | Nil) #

def to_hash #

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

def to_protobuf #

def total_unique_codes : String | Nil #

def total_unique_codes=(total_unique_codes : String | Nil) #

def unique_codes : String | Nil #

def unique_codes=(unique_codes : String | Nil) #

def unique_codes_file_code_type : String | Nil #

def unique_codes_file_code_type=(unique_codes_file_code_type : String | Nil) #

def unique_codes_file_name : String | Nil #

def unique_codes_file_name=(unique_codes_file_name : String | Nil) #

def unique_codes_file_upload_status : String | Nil #

def unique_codes_file_upload_status=(unique_codes_file_upload_status : String | Nil) #