Class: WiMP::Gen::Album
- Inherits:
-
Object
- Object
- WiMP::Gen::Album
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- ID =
1
- ALLOWSTREAMING =
2
- ARTIST =
3
- ARTISTID =
4
- CALCULATEDTYPE =
5
- COPYRIGHT =
6
- DURATION =
7
- GENRE =
8
- LARGEALBUMCOVER =
9
- NUMBEROFTRACKS =
10
- NUMBEROFVOLUMES =
11
- PARTIALDATA =
12
- PARTIALNROFTRACKS =
13
- RECORDLABEL =
14
- SALESSTARTDATE =
15
- STREAMREADY =
16
- TITLE =
17
- VERSION =
18
- CURRENCYCODE =
19
- DESC =
20
- DETAILS =
21
- MEDIUMALBUMCOVER =
22
- SMALLALBUMCOVER =
23
- POPULARITY =
24
- POPULARITYTHISWEEK =
25
- PRICE =
26
- PRICECODE =
27
- RELEASEDATE =
28
- RELEASEYEAR =
29
- SALESPRICERULEID =
30
- SALESREADY =
31
- SEARCHSCORE =
32
- TRACKBUNDLETYPE =
33
- TRACKONLY =
34
- STREAMSTARTDATE =
35
- CUSTOMIZABLEALBUMCOVER =
36
- BOOKLETURL =
37
- PREMIUMONLYSTREAMING =
38
- REVISEDCOPYRIGHT =
39
- FIELDS =
{ ID => {:type => ::Thrift::Types::I32, :name => 'id'}, ALLOWSTREAMING => {:type => ::Thrift::Types::BOOL, :name => 'allowStreaming'}, ARTIST => {:type => ::Thrift::Types::STRING, :name => 'artist'}, ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'}, CALCULATEDTYPE => {:type => ::Thrift::Types::STRING, :name => 'calculatedType'}, COPYRIGHT => {:type => ::Thrift::Types::STRING, :name => 'copyright'}, DURATION => {:type => ::Thrift::Types::I32, :name => 'duration'}, GENRE => {:type => ::Thrift::Types::STRING, :name => 'genre'}, LARGEALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'largeAlbumCover', :optional => true}, NUMBEROFTRACKS => {:type => ::Thrift::Types::I32, :name => 'numberOfTracks'}, NUMBEROFVOLUMES => {:type => ::Thrift::Types::I32, :name => 'numberOfVolumes'}, PARTIALDATA => {:type => ::Thrift::Types::BOOL, :name => 'partialData'}, PARTIALNROFTRACKS => {:type => ::Thrift::Types::I32, :name => 'partialNrOfTracks'}, RECORDLABEL => {:type => ::Thrift::Types::STRUCT, :name => 'recordLabel', :class => ::WiMP::Gen::RecordLabel}, SALESSTARTDATE => {:type => ::Thrift::Types::I64, :name => 'salesStartDate'}, STREAMREADY => {:type => ::Thrift::Types::BOOL, :name => 'streamReady'}, TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'}, VERSION => {:type => ::Thrift::Types::STRING, :name => 'version', :optional => true}, CURRENCYCODE => {:type => ::Thrift::Types::STRING, :name => 'currencyCode', :optional => true}, DESC => {:type => ::Thrift::Types::STRING, :name => 'desc', :optional => true}, DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :optional => true}, MEDIUMALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'mediumAlbumCover', :optional => true}, SMALLALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'smallAlbumCover', :optional => true}, POPULARITY => {:type => ::Thrift::Types::I32, :name => 'popularity'}, POPULARITYTHISWEEK => {:type => ::Thrift::Types::I32, :name => 'popularityThisWeek'}, PRICE => {:type => ::Thrift::Types::DOUBLE, :name => 'price'}, PRICECODE => {:type => ::Thrift::Types::STRING, :name => 'priceCode'}, RELEASEDATE => {:type => ::Thrift::Types::I64, :name => 'releaseDate'}, RELEASEYEAR => {:type => ::Thrift::Types::STRING, :name => 'releaseYear'}, SALESPRICERULEID => {:type => ::Thrift::Types::I32, :name => 'salesPriceRuleId'}, SALESREADY => {:type => ::Thrift::Types::BOOL, :name => 'salesReady'}, SEARCHSCORE => {:type => ::Thrift::Types::DOUBLE, :name => 'searchScore'}, TRACKBUNDLETYPE => {:type => ::Thrift::Types::STRING, :name => 'trackBundleType'}, TRACKONLY => {:type => ::Thrift::Types::BOOL, :name => 'trackOnly'}, STREAMSTARTDATE => {:type => ::Thrift::Types::I64, :name => 'streamStartDate'}, CUSTOMIZABLEALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'customizableAlbumCover', :optional => true}, BOOKLETURL => {:type => ::Thrift::Types::STRING, :name => 'bookletURL', :optional => true}, PREMIUMONLYSTREAMING => {:type => ::Thrift::Types::BOOL, :name => 'premiumOnlyStreaming'}, REVISEDCOPYRIGHT => {:type => ::Thrift::Types::STRING, :name => 'revisedCopyright'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
419 |
# File 'lib/gen/services_types.rb', line 419 def struct_fields; FIELDS; end |
#validate ⇒ Object
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
# File 'lib/gen/services_types.rb', line 421 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field allowStreaming is unset!') if @allowStreaming.nil? 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 calculatedType is unset!') unless @calculatedType raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field copyright is unset!') unless @copyright raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field duration is unset!') unless @duration raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field genre is unset!') unless @genre raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numberOfTracks is unset!') unless @numberOfTracks raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numberOfVolumes is unset!') unless @numberOfVolumes raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partialData is unset!') if @partialData.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partialNrOfTracks is unset!') unless @partialNrOfTracks raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recordLabel is unset!') unless @recordLabel raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field salesStartDate is unset!') unless @salesStartDate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field streamReady is unset!') if @streamReady.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field title is unset!') unless @title 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 price is unset!') unless @price raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field priceCode is unset!') unless @priceCode raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field releaseDate is unset!') unless @releaseDate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field releaseYear is unset!') unless @releaseYear raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field salesPriceRuleId is unset!') unless @salesPriceRuleId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field salesReady is unset!') if @salesReady.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field searchScore is unset!') unless @searchScore raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field trackBundleType is unset!') unless @trackBundleType raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field trackOnly is unset!') if @trackOnly.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field streamStartDate is unset!') unless @streamStartDate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field premiumOnlyStreaming is unset!') if @premiumOnlyStreaming.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field revisedCopyright is unset!') unless @revisedCopyright end |