Class: WiMP::Gen::ClientApiService::GetAlbumsByArtistId_args
- Inherits:
-
Object
- Object
- WiMP::Gen::ClientApiService::GetAlbumsByArtistId_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/client_api_service.rb
Constant Summary collapse
- ARTISTID =
1
- LIMIT =
2
- ORDER =
3
- SESSIONID =
4
- FILTER =
5
- FIELDS =
{ ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'}, LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}, ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::AlbumOrderBy}, SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}, FILTER => {:type => ::Thrift::Types::I32, :name => 'filter', :enum_class => ::WiMP::Gen::AlbumFilter} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1487 |
# File 'lib/gen/client_api_service.rb', line 1487 def struct_fields; FIELDS; end |
#validate ⇒ Object
1489 1490 1491 1492 1493 1494 1495 1496 |
# File 'lib/gen/client_api_service.rb', line 1489 def validate unless @order.nil? || ::WiMP::Gen::AlbumOrderBy::VALID_VALUES.include?(@order) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!') end unless @filter.nil? || ::WiMP::Gen::AlbumFilter::VALID_VALUES.include?(@filter) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field filter!') end end |