Class: Service::Content::Thrift::TrackRecordPageResult
- Inherits:
-
Object
- Object
- Service::Content::Thrift::TrackRecordPageResult
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/service_album_api/content_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 => ::Service::Content::Thrift::TrackRecord}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
802 |
# File 'lib/service_album_api/content_types.rb', line 802 def struct_fields; FIELDS; end |
#validate ⇒ Object
804 805 806 807 808 |
# File 'lib/service_album_api/content_types.rb', line 804 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 |