Class: Sfeed::RecommendInfo

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/sfeed_types.rb

Constant Summary collapse

UID =
1
ALBUMID =
2
ALBUMCOVER =
3
ALBUMTITLE =
4
TRACKTITLE =
5
NICKNAME =
6
PERSONALSIGNATURE =
7
AVATAR =
8
TRACKID =
9
PLAYPATH32 =
10
PLAYPATH64 =
11
TRACKTYPE =
12
FIELDS =
{
  UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
  ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'},
  ALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'albumCover', :optional => true},
  ALBUMTITLE => {:type => ::Thrift::Types::STRING, :name => 'albumTitle', :optional => true},
  TRACKTITLE => {:type => ::Thrift::Types::STRING, :name => 'trackTitle', :optional => true},
  NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname', :optional => true},
  PERSONALSIGNATURE => {:type => ::Thrift::Types::STRING, :name => 'personalSignature', :optional => true},
  AVATAR => {:type => ::Thrift::Types::STRING, :name => 'avatar', :optional => true},
  TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId', :optional => true},
  PLAYPATH32 => {:type => ::Thrift::Types::STRING, :name => 'playPath32', :optional => true},
  PLAYPATH64 => {:type => ::Thrift::Types::STRING, :name => 'playPath64', :optional => true},
  TRACKTYPE => {:type => ::Thrift::Types::I32, :name => 'trackType', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



299
# File 'lib/sfeed_types.rb', line 299

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


301
302
303
304
# File 'lib/sfeed_types.rb', line 301

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uid is unset!') unless @uid
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albumId is unset!') unless @albumId
end