Class: Track

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

Constant Summary collapse

ID =
1
UID =
2
ISPUBLIC =
3
USERSOURCE =
4
CATEGORYID =
5
TAGS =
6
TITLE =
7
INTRO =
8
COVERPATH =
9
DURATION =
10
DOWNLOADPATH =
11
PLAYPATH =
12
PLAYPATH128 =
13
PLAYPATH64 =
14
PLAYPATH32 =
15
SINGER =
16
SINGERCATEGORY =
17
AUTHOR =
18
COMPOSER =
19
ARRANGEMENT =
20
POSTPRODUCTION =
21
LYRICPATH =
22
LANGUAGE =
23
RESINGER =
24
ANNOUNCER =
25
ISCRAWLER =
26
ALBUMID =
27
TRANSCODESTATE =
28
CREATEDAT =
29
UPDATEDAT =
30
MUSICCATEGORY =
31
IGNORETAGS =
32
EXTRATAGS =
33
SHORTINTRO =
34
ISDELETED =
35
APPROVEDAT =
36
ORIGINSIZE =
37
MP3SIZE32 =
38
MP3SIZE64 =
39
WAVEFORM =
40
UPLOADID =
41
STATUS =
42
EXPLOREHEIGHT =
43
DOWNLOADSIZE =
44
MP3SIZE128 =
45
ACTIVITYID =
46
UPLOADSOURCE =
47
ALBUMTITLE =
48
ALBUMCOVERPATH =
49
DIGSTATUS =
50
RICHINTRO =
51
FIELDS =
{
  ID => {:type => ::Thrift::Types::I64, :name => 'id'},
  UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
  ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic'},
  USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource'},
  CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId'},
  TAGS => {:type => ::Thrift::Types::STRING, :name => 'tags', :optional => true},
  TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
  INTRO => {:type => ::Thrift::Types::STRING, :name => 'intro', :optional => true},
  COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
  DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration'},
  DOWNLOADPATH => {:type => ::Thrift::Types::STRING, :name => 'downloadPath', :optional => true},
  PLAYPATH => {:type => ::Thrift::Types::STRING, :name => 'playPath', :optional => true},
  PLAYPATH128 => {:type => ::Thrift::Types::STRING, :name => 'playPath128', :optional => true},
  PLAYPATH64 => {:type => ::Thrift::Types::STRING, :name => 'playPath64', :optional => true},
  PLAYPATH32 => {:type => ::Thrift::Types::STRING, :name => 'playPath32', :optional => true},
  SINGER => {:type => ::Thrift::Types::STRING, :name => 'singer', :optional => true},
  SINGERCATEGORY => {:type => ::Thrift::Types::STRING, :name => 'singerCategory', :optional => true},
  AUTHOR => {:type => ::Thrift::Types::STRING, :name => 'author', :optional => true},
  COMPOSER => {:type => ::Thrift::Types::STRING, :name => 'composer', :optional => true},
  ARRANGEMENT => {:type => ::Thrift::Types::STRING, :name => 'arrangement', :optional => true},
  POSTPRODUCTION => {:type => ::Thrift::Types::STRING, :name => 'postProduction', :optional => true},
  LYRICPATH => {:type => ::Thrift::Types::STRING, :name => 'lyricPath', :optional => true},
  LANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'language', :optional => true},
  RESINGER => {:type => ::Thrift::Types::STRING, :name => 'resinger', :optional => true},
  ANNOUNCER => {:type => ::Thrift::Types::STRING, :name => 'announcer', :optional => true},
  ISCRAWLER => {:type => ::Thrift::Types::BOOL, :name => 'isCrawler'},
  ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'},
  TRANSCODESTATE => {:type => ::Thrift::Types::I32, :name => 'transcodeState'},
  CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt'},
  UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt'},
  MUSICCATEGORY => {:type => ::Thrift::Types::STRING, :name => 'musicCategory', :optional => true},
  IGNORETAGS => {:type => ::Thrift::Types::STRING, :name => 'ignoreTags', :optional => true},
  EXTRATAGS => {:type => ::Thrift::Types::STRING, :name => 'extraTags', :optional => true},
  SHORTINTRO => {:type => ::Thrift::Types::STRING, :name => 'shortIntro', :optional => true},
  ISDELETED => {:type => ::Thrift::Types::BOOL, :name => 'isDeleted'},
  APPROVEDAT => {:type => ::Thrift::Types::I64, :name => 'approvedAt'},
  ORIGINSIZE => {:type => ::Thrift::Types::I32, :name => 'originSize'},
  MP3SIZE32 => {:type => ::Thrift::Types::I32, :name => 'mp3size32'},
  MP3SIZE64 => {:type => ::Thrift::Types::I32, :name => 'mp3size64'},
  WAVEFORM => {:type => ::Thrift::Types::STRING, :name => 'waveform', :optional => true},
  UPLOADID => {:type => ::Thrift::Types::STRING, :name => 'uploadId', :optional => true},
  STATUS => {:type => ::Thrift::Types::I32, :name => 'status'},
  EXPLOREHEIGHT => {:type => ::Thrift::Types::I32, :name => 'exploreHeight'},
  DOWNLOADSIZE => {:type => ::Thrift::Types::I32, :name => 'downloadSize'},
  MP3SIZE128 => {:type => ::Thrift::Types::I32, :name => 'mp3size128'},
  ACTIVITYID => {:type => ::Thrift::Types::I32, :name => 'activityId'},
  UPLOADSOURCE => {:type => ::Thrift::Types::I32, :name => 'uploadSource'},
  ALBUMTITLE => {:type => ::Thrift::Types::STRING, :name => 'albumTitle', :optional => true},
  ALBUMCOVERPATH => {:type => ::Thrift::Types::STRING, :name => 'albumCoverPath', :optional => true},
  DIGSTATUS => {:type => ::Thrift::Types::I32, :name => 'digStatus'},
  RICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'richIntro', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



117
# File 'lib/content_types.rb', line 117

def struct_fields; FIELDS; end

#validateObject



119
120
# File 'lib/content_types.rb', line 119

def validate
end