Class: WiMP::Gen::Friend

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

Constant Summary collapse

ID =
1
LASTUPDATEDFAVOURITES =
2
FACEBOOKUID =
3
MADEFRIENDDATE =
4
LASTVISITEDFRIENDDATE =
5
BLOCKED =
6
FRIENDTYPE =
7
NICK =
8
FRIENDPROFILEID =
9
NROFSHAREDALBUMS =
10
NROFSHAREDTRACKS =
11
NROFSHAREDPLAYLISTS =
12
NROFSHAREDARTISTS =
13
FIELDS =
{
  ID => {:type => ::Thrift::Types::I32, :name => 'id'},
  LASTUPDATEDFAVOURITES => {:type => ::Thrift::Types::I64, :name => 'lastUpdatedFavourites'},
  FACEBOOKUID => {:type => ::Thrift::Types::I64, :name => 'facebookUid'},
  MADEFRIENDDATE => {:type => ::Thrift::Types::I64, :name => 'madeFriendDate'},
  LASTVISITEDFRIENDDATE => {:type => ::Thrift::Types::I64, :name => 'lastVisitedFriendDate'},
  BLOCKED => {:type => ::Thrift::Types::BOOL, :name => 'blocked'},
  FRIENDTYPE => {:type => ::Thrift::Types::STRING, :name => 'friendType'},
  NICK => {:type => ::Thrift::Types::STRING, :name => 'nick'},
  FRIENDPROFILEID => {:type => ::Thrift::Types::I32, :name => 'friendProfileId'},
  NROFSHAREDALBUMS => {:type => ::Thrift::Types::I32, :name => 'nrOfSharedAlbums'},
  NROFSHAREDTRACKS => {:type => ::Thrift::Types::I32, :name => 'nrOfSharedTracks'},
  NROFSHAREDPLAYLISTS => {:type => ::Thrift::Types::I32, :name => 'nrOfSharedPlayLists'},
  NROFSHAREDARTISTS => {:type => ::Thrift::Types::I32, :name => 'nrOfSharedArtists'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



1013
# File 'lib/gen/services_types.rb', line 1013

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
# File 'lib/gen/services_types.rb', line 1015

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field lastUpdatedFavourites is unset!') unless @lastUpdatedFavourites
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field facebookUid is unset!') unless @facebookUid
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field madeFriendDate is unset!') unless @madeFriendDate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field lastVisitedFriendDate is unset!') unless @lastVisitedFriendDate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field blocked is unset!') if @blocked.nil?
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field friendType is unset!') unless @friendType
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nick is unset!') unless @nick
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field friendProfileId is unset!') unless @friendProfileId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nrOfSharedAlbums is unset!') unless @nrOfSharedAlbums
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nrOfSharedTracks is unset!') unless @nrOfSharedTracks
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nrOfSharedPlayLists is unset!') unless @nrOfSharedPlayLists
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nrOfSharedArtists is unset!') unless @nrOfSharedArtists
end