Class: WiMP::Gen::ClientApiService::GetFavoriteTracks_args
- Inherits:
-
Object
- Object
- WiMP::Gen::ClientApiService::GetFavoriteTracks_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/client_api_service.rb
Constant Summary collapse
- ORDER =
1
- SESSONID =
2
- FIELDS =
{ ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy}, SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
2129 |
# File 'lib/gen/client_api_service.rb', line 2129 def struct_fields; FIELDS; end |
#validate ⇒ Object
2131 2132 2133 2134 2135 |
# File 'lib/gen/client_api_service.rb', line 2131 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 |