struct Facebook::Proto::NativeOffer
- Facebook::Proto::NativeOffer
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/NativeOffer.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: :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
- .new(buf : Protobuf::Buffer)
- .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)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #barcode_photo : String | Nil
- #barcode_photo=(barcode_photo : String | Nil)
- #barcode_photo_uri : String | Nil
- #barcode_photo_uri=(barcode_photo_uri : String | Nil)
- #barcode_type : String | Nil
- #barcode_type=(barcode_type : String | Nil)
- #barcode_value : String | Nil
- #barcode_value=(barcode_value : String | Nil)
- #block_reshares : Bool | Nil
- #block_reshares=(block_reshares : Bool | Nil)
- #details : String | Nil
- #details=(details : String | Nil)
- #disable_location : Bool | Nil
- #disable_location=(disable_location : Bool | Nil)
- #expiration_time : Datetime | Nil
- #expiration_time=(expiration_time : Datetime | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #instore_code : String | Nil
- #instore_code=(instore_code : String | Nil)
- #location_type : String | Nil
- #location_type=(location_type : String | Nil)
- #max_save_count : Int64 | Nil
- #max_save_count=(max_save_count : Int64 | Nil)
- #online_code : String | Nil
- #online_code=(online_code : String | Nil)
- #page_set_id : String | Nil
- #page_set_id=(page_set_id : String | Nil)
- #redemption_code : String | Nil
- #redemption_code=(redemption_code : String | Nil)
- #redemption_link : String | Nil
- #redemption_link=(redemption_link : String | Nil)
- #save_count : Int64 | Nil
- #save_count=(save_count : Int64 | Nil)
- #terms : String | Nil
- #terms=(terms : String | Nil)
- #title : String | Nil
- #title=(title : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #total_unique_codes : String | Nil
- #total_unique_codes=(total_unique_codes : String | Nil)
- #unique_codes : String | Nil
- #unique_codes=(unique_codes : String | Nil)
- #unique_codes_file_code_type : String | Nil
- #unique_codes_file_code_type=(unique_codes_file_code_type : String | Nil)
- #unique_codes_file_name : String | Nil
- #unique_codes_file_name=(unique_codes_file_name : String | Nil)
- #unique_codes_file_upload_status : String | Nil
- #unique_codes_file_upload_status=(unique_codes_file_upload_status : String | Nil)