Class: WiMP::Gen::ClientApiService::GetUserPlaylistsByType_args
- Inherits:
-
Object
- Object
- WiMP::Gen::ClientApiService::GetUserPlaylistsByType_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/client_api_service.rb
Constant Summary collapse
- TYPE =
1
- STARTINDEX =
2
- LIMIT =
3
- SESSONID =
4
- FIELDS =
{ TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::WiMP::Gen::PlaylistType}, STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'}, LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}, SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
2736 |
# File 'lib/gen/client_api_service.rb', line 2736 def struct_fields; FIELDS; end |
#validate ⇒ Object
2738 2739 2740 2741 2742 |
# File 'lib/gen/client_api_service.rb', line 2738 def validate unless @type.nil? || ::WiMP::Gen::PlaylistType::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |