Class: SimpleTrackRecordPageResult

Inherits:
Object
  • Object
show all
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 => ::SimpleTrackRecord}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



149
# File 'lib/uts_model_types.rb', line 149

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


151
152
153
154
155
# File 'lib/uts_model_types.rb', line 151

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