Class: WiMP::Gen::ClientApiService::GetFavoriteArtists_args
- Inherits:
-
Object
- Object
- WiMP::Gen::ClientApiService::GetFavoriteArtists_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/client_api_service.rb
Constant Summary collapse
- ORDER =
1
- SESSIONID =
2
- FIELDS =
{ ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy}, SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1967 |
# File 'lib/gen/client_api_service.rb', line 1967 def struct_fields; FIELDS; end |
#validate ⇒ Object
1969 1970 1971 1972 1973 |
# File 'lib/gen/client_api_service.rb', line 1969 def validate unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!') end end |