Class: WiMP::Gen::ClientApiService::GetFavoritePlaylists_args
- Inherits:
-
Object
- Object
- WiMP::Gen::ClientApiService::GetFavoritePlaylists_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
2048 |
# File 'lib/gen/client_api_service.rb', line 2048 def struct_fields; FIELDS; end |
#validate ⇒ Object
2050 2051 2052 2053 2054 |
# File 'lib/gen/client_api_service.rb', line 2050 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 |