Class: WiMP::Gen::Track
- Inherits:
-
Object
- Object
- WiMP::Gen::Track
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- TITLE =
1
- ARTIST =
2
- ARTISTID =
3
- ALBUMID =
4
- ALBUM =
5
- COPYRIGHT =
6
- DURATION =
7
- SMALLALBUMCOVER =
8
- MEDIUMALBUMCOVER =
9
- LARGEALBUMCOVER =
10
- ID =
11
- CONTENTACCESSSTRING =
12
- VOLUMENUMBER =
13
- TRACKNUMBER =
14
- VERSION =
15
- SALESSTARTDATE =
16
- SALESREADY =
17
- STREAMREADY =
18
- PRICE =
19
- CURRENCYCODE =
20
- ALBUMONLY =
21
- ALBUMBROKEN =
22
- PRICECODE =
23
- ALBUMCALCULATEDTYPE =
24
- ALLOWSTREAMING =
25
- ALBUMNROFVOLUMES =
26
- POPULARITY =
27
- POPULARITYTHISWEEK =
28
- SEARCHSCORE =
29
- RECORDLABEL =
30
- SALESPRICERULEID =
31
- STREAMSTARTDATE =
32
- PREVIEWURL =
33
- CUSTOMIZABLEALBUMCOVER =
34
- PREMIUMONLYSTREAMING =
35
- POPULARITYLEVEL =
36
- REVISEDCOPYRIGHT =
37
- FIELDS =
{ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'}, ARTIST => {:type => ::Thrift::Types::STRING, :name => 'artist'}, ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'}, ALBUMID => {:type => ::Thrift::Types::I32, :name => 'albumId'}, ALBUM => {:type => ::Thrift::Types::STRING, :name => 'album'}, COPYRIGHT => {:type => ::Thrift::Types::STRING, :name => 'copyright', :optional => true}, DURATION => {:type => ::Thrift::Types::I32, :name => 'duration'}, SMALLALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'smallAlbumCover', :optional => true}, MEDIUMALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'mediumAlbumCover', :optional => true}, LARGEALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'largeAlbumCover', :optional => true}, ID => {:type => ::Thrift::Types::I32, :name => 'id'}, CONTENTACCESSSTRING => {:type => ::Thrift::Types::STRING, :name => 'contentAccessString', :optional => true}, VOLUMENUMBER => {:type => ::Thrift::Types::I32, :name => 'volumeNumber'}, TRACKNUMBER => {:type => ::Thrift::Types::I32, :name => 'trackNumber', :optional => true}, VERSION => {:type => ::Thrift::Types::STRING, :name => 'version', :optional => true}, SALESSTARTDATE => {:type => ::Thrift::Types::I64, :name => 'salesStartDate'}, SALESREADY => {:type => ::Thrift::Types::BOOL, :name => 'salesReady'}, STREAMREADY => {:type => ::Thrift::Types::BOOL, :name => 'streamReady'}, PRICE => {:type => ::Thrift::Types::DOUBLE, :name => 'price'}, CURRENCYCODE => {:type => ::Thrift::Types::STRING, :name => 'currencyCode', :optional => true}, ALBUMONLY => {:type => ::Thrift::Types::BOOL, :name => 'albumOnly'}, ALBUMBROKEN => {:type => ::Thrift::Types::BOOL, :name => 'albumBroken'}, PRICECODE => {:type => ::Thrift::Types::STRING, :name => 'priceCode', :optional => true}, ALBUMCALCULATEDTYPE => {:type => ::Thrift::Types::STRING, :name => 'albumCalculatedType'}, ALLOWSTREAMING => {:type => ::Thrift::Types::BOOL, :name => 'allowStreaming'}, ALBUMNROFVOLUMES => {:type => ::Thrift::Types::I32, :name => 'albumNrOfVolumes'}, POPULARITY => {:type => ::Thrift::Types::I32, :name => 'popularity'}, POPULARITYTHISWEEK => {:type => ::Thrift::Types::I32, :name => 'popularityThisWeek'}, SEARCHSCORE => {:type => ::Thrift::Types::DOUBLE, :name => 'searchScore'}, RECORDLABEL => {:type => ::Thrift::Types::STRUCT, :name => 'recordLabel', :class => ::WiMP::Gen::RecordLabel}, SALESPRICERULEID => {:type => ::Thrift::Types::I32, :name => 'salesPriceRuleId'}, STREAMSTARTDATE => {:type => ::Thrift::Types::I64, :name => 'streamStartDate'}, PREVIEWURL => {:type => ::Thrift::Types::STRING, :name => 'previewURL'}, CUSTOMIZABLEALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'customizableAlbumCover', :optional => true}, PREMIUMONLYSTREAMING => {:type => ::Thrift::Types::BOOL, :name => 'premiumOnlyStreaming'}, POPULARITYLEVEL => {:type => ::Thrift::Types::I32, :name => 'popularityLevel'}, REVISEDCOPYRIGHT => {:type => ::Thrift::Types::STRING, :name => 'revisedCopyright'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
300 |
# File 'lib/gen/services_types.rb', line 300 def struct_fields; FIELDS; end |
#validate ⇒ Object
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 |
# File 'lib/gen/services_types.rb', line 302 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field title is unset!') unless @title raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artist is unset!') unless @artist raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistId is unset!') unless @artistId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albumId is unset!') unless @albumId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field album is unset!') unless @album raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field duration is unset!') unless @duration raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field volumeNumber is unset!') unless @volumeNumber raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field salesStartDate is unset!') unless @salesStartDate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field salesReady is unset!') if @salesReady.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field streamReady is unset!') if @streamReady.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field price is unset!') unless @price raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albumOnly is unset!') if @albumOnly.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albumBroken is unset!') if @albumBroken.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albumCalculatedType is unset!') unless @albumCalculatedType raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field allowStreaming is unset!') if @allowStreaming.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albumNrOfVolumes is unset!') unless @albumNrOfVolumes raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field popularity is unset!') unless @popularity raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field popularityThisWeek is unset!') unless @popularityThisWeek raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field searchScore is unset!') unless @searchScore raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recordLabel is unset!') unless @recordLabel raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field salesPriceRuleId is unset!') unless @salesPriceRuleId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field streamStartDate is unset!') unless @streamStartDate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field previewURL is unset!') unless @previewURL raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field premiumOnlyStreaming is unset!') if @premiumOnlyStreaming.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field popularityLevel is unset!') unless @popularityLevel raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field revisedCopyright is unset!') unless @revisedCopyright end |