Class: PromotionMissionInfo

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

PROMOTIONMISSIONTYPE =
1
MISSIONCOMPLETED =
2
DOWNLOADURL =
3
CUSTOMURLSCHEMA =
4
FIELDS =
{
  PROMOTIONMISSIONTYPE => {:type => ::Thrift::Types::I32, :name => 'promotionMissionType', :enum_class => ::P0_a_a_b_a_a_e2},
  MISSIONCOMPLETED => {:type => ::Thrift::Types::BOOL, :name => 'missionCompleted'},
  DOWNLOADURL => {:type => ::Thrift::Types::STRING, :name => 'downloadUrl'},
  CUSTOMURLSCHEMA => {:type => ::Thrift::Types::STRING, :name => 'customUrlSchema'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



9039
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9039

def struct_fields; FIELDS; end

#validateObject



9041
9042
9043
9044
9045
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9041

def validate
  unless @promotionMissionType.nil? || ::P0_a_a_b_a_a_e2::VALID_VALUES.include?(@promotionMissionType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field promotionMissionType!')
  end
end