Class: Sfeed::BlockAlbum

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

Constant Summary collapse

CURSOR =
1
ALBUMUID =
2
ALBUMID =
3
ALBUMTITLE =
4
ALBUMCOVER =
5
FIELDS =
{
  CURSOR => {:type => ::Thrift::Types::I64, :name => 'cursor'},
  ALBUMUID => {:type => ::Thrift::Types::I64, :name => 'albumUid'},
  ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'},
  ALBUMTITLE => {:type => ::Thrift::Types::STRING, :name => 'albumTitle'},
  ALBUMCOVER => {:type => ::Thrift::Types::STRING, :name => 'albumCover'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


191
192
193
194
195
196
# File 'lib/sfeed_types.rb', line 191

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