Class: Reservation

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

RESERVATIONNUMBER =
1
OFFLINEENABLED =
2
EVENTTITLE =
3
EVENTVENUE =
4
ARTISTNAME =
5
EVENTIMGURL =
6
STARTDATE =
7
STARTTIME =
8
DOORTIME =
9
ENABLEDOORTIME =
10
VALIDLIMITTIME =
11
DELETABLETIME =
12
ENTRYCHECKMETHOD =
13
EVENTDESC =
14
COMMEVENTDESC =
15
UIINFO =
16
TICKETS =
17
ADMISSION =
18
ENTRYCHECKTIMEOUTSEC =
19
FIELDS =
{
  RESERVATIONNUMBER => {:type => ::Thrift::Types::BYTE, :name => 'reservationNumber'},
  OFFLINEENABLED => {:type => ::Thrift::Types::STRUCT, :name => 'offlineEnabled', :class => ::Admission},
  EVENTTITLE => {:type => ::Thrift::Types::STRING, :name => 'eventTitle'},
  EVENTVENUE => {:type => ::Thrift::Types::STRING, :name => 'eventVenue'},
  ARTISTNAME => {:type => ::Thrift::Types::I64, :name => 'artistName'},
  EVENTIMGURL => {:type => ::Thrift::Types::I64, :name => 'eventImgUrl'},
  STARTDATE => {:type => ::Thrift::Types::I64, :name => 'startDate'},
  STARTTIME => {:type => ::Thrift::Types::I32, :name => 'startTime', :enum_class => ::G_a_t0_a_a_b},
  DOORTIME => {:type => ::Thrift::Types::I32, :name => 'doorTime'},
  ENABLEDOORTIME => {:type => ::Thrift::Types::STRING, :name => 'enableDoorTime'},
  VALIDLIMITTIME => {:type => ::Thrift::Types::STRING, :name => 'validLimitTime'},
  DELETABLETIME => {:type => ::Thrift::Types::STRING, :name => 'deletableTime'},
  ENTRYCHECKMETHOD => {:type => ::Thrift::Types::STRING, :name => 'entryCheckMethod'},
  EVENTDESC => {:type => ::Thrift::Types::I32, :name => 'eventDesc'},
  COMMEVENTDESC => {:type => ::Thrift::Types::STRING, :name => 'commEventDesc'},
  UIINFO => {:type => ::Thrift::Types::I64, :name => 'uiInfo'},
  TICKETS => {:type => ::Thrift::Types::I64, :name => 'tickets'},
  ADMISSION => {:type => ::Thrift::Types::LIST, :name => 'admission', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Ticket}},
  ENTRYCHECKTIMEOUTSEC => {:type => ::Thrift::Types::STRUCT, :name => 'entryCheckTimeoutSec', :class => ::UIInfo}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



11313
11314
11315
11316
11317
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11313

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