Documentation ¶
Index ¶
- Variables
- type Dashboard
- func (*Dashboard) Descriptor() ([]byte, []int)deprecated
- func (x *Dashboard) GetProfile() *Profile
- func (x *Dashboard) GetWatchedWorks() []*Work
- func (x *Dashboard) GetWatchingWorks() []*Work
- func (*Dashboard) ProtoMessage()
- func (x *Dashboard) ProtoReflect() protoreflect.Message
- func (x *Dashboard) Reset()
- func (x *Dashboard) String() string
- type Episode
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetAvatarUrl() string
- func (x *Profile) GetRecordsCount() int32
- func (x *Profile) GetWannaWatchCount() int32
- func (x *Profile) GetWatchedCount() int32
- func (x *Profile) GetWatchingCount() int32
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type Work
- func (*Work) Descriptor() ([]byte, []int)deprecated
- func (x *Work) GetAnnictWorkId() string
- func (x *Work) GetBeginTime() *timestamp.Timestamp
- func (x *Work) GetEpisodesCount() int32
- func (x *Work) GetFinishTime() *timestamp.Timestamp
- func (x *Work) GetId() int32
- func (x *Work) GetImageUrl() string
- func (x *Work) GetOfficialSiteUrl() string
- func (x *Work) GetReleasedOn() string
- func (x *Work) GetStatus() Work_Status
- func (x *Work) GetTitle() string
- func (x *Work) GetWikipediaUrl() string
- func (*Work) ProtoMessage()
- func (x *Work) ProtoReflect() protoreflect.Message
- func (x *Work) Reset()
- func (x *Work) String() string
- type Work_Status
- func (Work_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Work_Status) Enum() *Work_Status
- func (Work_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Work_Status) Number() protoreflect.EnumNumber
- func (x Work_Status) String() string
- func (Work_Status) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Work_Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "WATCHING", 2: "WATCHED", } Work_Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "WATCHING": 1, "WATCHED": 2, } )
Enum value maps for Work_Status.
View Source
var File_resource_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Dashboard ¶
type Dashboard struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` WatchingWorks []*Work `protobuf:"bytes,2,rep,name=watching_works,json=watchingWorks,proto3" json:"watching_works,omitempty"` WatchedWorks []*Work `protobuf:"bytes,3,rep,name=watched_works,json=watchedWorks,proto3" json:"watched_works,omitempty"` // contains filtered or unexported fields }
func (*Dashboard) Descriptor
deprecated
func (*Dashboard) GetProfile ¶
func (*Dashboard) GetWatchedWorks ¶
func (*Dashboard) GetWatchingWorks ¶
func (*Dashboard) ProtoMessage ¶
func (*Dashboard) ProtoMessage()
func (*Dashboard) ProtoReflect ¶
func (x *Dashboard) ProtoReflect() protoreflect.Message
type Profile ¶
type Profile struct { // The avatar URL of animekai account. AvatarUrl string `protobuf:"bytes,1,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // Total number of records. RecordsCount int32 `protobuf:"varint,2,opt,name=records_count,json=recordsCount,proto3" json:"records_count,omitempty"` // Number of works which want to watch. WannaWatchCount int32 `protobuf:"varint,3,opt,name=wanna_watch_count,json=wannaWatchCount,proto3" json:"wanna_watch_count,omitempty"` // Number of watching works. WatchingCount int32 `protobuf:"varint,4,opt,name=watching_count,json=watchingCount,proto3" json:"watching_count,omitempty"` // Number of watched works. WatchedCount int32 `protobuf:"varint,5,opt,name=watched_count,json=watchedCount,proto3" json:"watched_count,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetAvatarUrl ¶
func (*Profile) GetRecordsCount ¶
func (*Profile) GetWannaWatchCount ¶
func (*Profile) GetWatchedCount ¶
func (*Profile) GetWatchingCount ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type Work ¶
type Work struct { // Work's identifier. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Work's title. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Image URL for the work. ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` // When the work is released on. ReleasedOn string `protobuf:"bytes,4,opt,name=released_on,json=releasedOn,proto3" json:"released_on,omitempty"` // How number of episodes the work has. EpisodesCount int32 `protobuf:"varint,5,opt,name=episodes_count,json=episodesCount,proto3" json:"episodes_count,omitempty"` // Work's identifier for Annict. AnnictWorkId string `protobuf:"bytes,6,opt,name=annict_work_id,json=annictWorkId,proto3" json:"annict_work_id,omitempty"` // URL which the work is provided. OfficialSiteUrl string `protobuf:"bytes,7,opt,name=official_site_url,json=officialSiteUrl,proto3" json:"official_site_url,omitempty"` // Wikipedia URL which the work is provided. WikipediaUrl string `protobuf:"bytes,8,opt,name=wikipedia_url,json=wikipediaUrl,proto3" json:"wikipedia_url,omitempty"` // Time when began watching the work. BeginTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=begin_time,json=beginTime,proto3" json:"begin_time,omitempty"` // Time when finished watching the work. Empty if status is WATCHING. FinishTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"` // Status which indicates that the work is watched/watching. Status Work_Status `protobuf:"varint,11,opt,name=status,proto3,enum=resource.Work_Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Work) Descriptor
deprecated
func (*Work) GetAnnictWorkId ¶
func (*Work) GetBeginTime ¶
func (*Work) GetEpisodesCount ¶
func (*Work) GetFinishTime ¶
func (*Work) GetImageUrl ¶
func (*Work) GetOfficialSiteUrl ¶
func (*Work) GetReleasedOn ¶
func (*Work) GetStatus ¶
func (x *Work) GetStatus() Work_Status
func (*Work) GetWikipediaUrl ¶
func (*Work) ProtoMessage ¶
func (*Work) ProtoMessage()
func (*Work) ProtoReflect ¶
func (x *Work) ProtoReflect() protoreflect.Message
type Work_Status ¶
type Work_Status int32
const ( Work_STATUS_UNSPECIFIED Work_Status = 0 Work_WATCHING Work_Status = 1 Work_WATCHED Work_Status = 2 )
func (Work_Status) Descriptor ¶
func (Work_Status) Descriptor() protoreflect.EnumDescriptor
func (Work_Status) Enum ¶
func (x Work_Status) Enum() *Work_Status
func (Work_Status) EnumDescriptor
deprecated
func (Work_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Work_Status.Descriptor instead.
func (Work_Status) Number ¶
func (x Work_Status) Number() protoreflect.EnumNumber
func (Work_Status) String ¶
func (x Work_Status) String() string
func (Work_Status) Type ¶
func (Work_Status) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.