Class: BasicTrackRecordPageResult
- Inherits:
-
Object
- Object
- BasicTrackRecordPageResult
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/uts_model_types.rb
Constant Summary collapse
- TOTALSIZE =
1
- CURRENTPAGE =
2
- PAGESIZE =
3
- TRACKRECORDS =
4
- FIELDS =
{ TOTALSIZE => {:type => ::Thrift::Types::I32, :name => 'totalSize'}, CURRENTPAGE => {:type => ::Thrift::Types::I32, :name => 'currentPage'}, PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'}, TRACKRECORDS => {:type => ::Thrift::Types::LIST, :name => 'trackRecords', :element => {:type => ::Thrift::Types::STRUCT, :class => ::BasicTrackRecord}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
174 |
# File 'lib/uts_model_types.rb', line 174 def struct_fields; FIELDS; end |
#validate ⇒ Object
176 177 178 179 180 |
# File 'lib/uts_model_types.rb', line 176 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field totalSize is unset!') unless @totalSize raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentPage is unset!') unless @currentPage raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field pageSize is unset!') unless @pageSize end |