Class: WiMP::Gen::ClientApiService::GetFavoriteAlbumsByProfileId_args
- Inherits:
-
Object
- Object
- WiMP::Gen::ClientApiService::GetFavoriteAlbumsByProfileId_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/client_api_service.rb
Constant Summary collapse
- PROFILEID =
1
- PARAMPRIVACYLEVEL =
2
- ORDER =
3
- SESSIONID =
4
- FIELDS =
{ PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'}, PARAMPRIVACYLEVEL => {:type => ::Thrift::Types::I32, :name => 'paramPrivacyLevel', :enum_class => ::WiMP::Gen::PrivacyLevel}, 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
1927 |
# File 'lib/gen/client_api_service.rb', line 1927 def struct_fields; FIELDS; end |
#validate ⇒ Object
1929 1930 1931 1932 1933 1934 1935 1936 |
# File 'lib/gen/client_api_service.rb', line 1929 def validate unless @paramPrivacyLevel.nil? || ::WiMP::Gen::PrivacyLevel::VALID_VALUES.include?(@paramPrivacyLevel) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field paramPrivacyLevel!') end unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!') end end |