resource

package
v0.0.0-...-ba8c1e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Dashboard.ProtoReflect.Descriptor instead.

func (*Dashboard) GetProfile

func (x *Dashboard) GetProfile() *Profile

func (*Dashboard) GetWatchedWorks

func (x *Dashboard) GetWatchedWorks() []*Work

func (*Dashboard) GetWatchingWorks

func (x *Dashboard) GetWatchingWorks() []*Work

func (*Dashboard) ProtoMessage

func (*Dashboard) ProtoMessage()

func (*Dashboard) ProtoReflect

func (x *Dashboard) ProtoReflect() protoreflect.Message

func (*Dashboard) Reset

func (x *Dashboard) Reset()

func (*Dashboard) String

func (x *Dashboard) String() string

type Episode

type Episode struct {
	WorkTitle  string
	Title      string
	NumberText string
}

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) Descriptor() ([]byte, []int)

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAvatarUrl

func (x *Profile) GetAvatarUrl() string

func (*Profile) GetRecordsCount

func (x *Profile) GetRecordsCount() int32

func (*Profile) GetWannaWatchCount

func (x *Profile) GetWannaWatchCount() int32

func (*Profile) GetWatchedCount

func (x *Profile) GetWatchedCount() int32

func (*Profile) GetWatchingCount

func (x *Profile) GetWatchingCount() int32

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

func (x *Profile) ProtoReflect() protoreflect.Message

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Work.ProtoReflect.Descriptor instead.

func (*Work) GetAnnictWorkId

func (x *Work) GetAnnictWorkId() string

func (*Work) GetBeginTime

func (x *Work) GetBeginTime() *timestamp.Timestamp

func (*Work) GetEpisodesCount

func (x *Work) GetEpisodesCount() int32

func (*Work) GetFinishTime

func (x *Work) GetFinishTime() *timestamp.Timestamp

func (*Work) GetId

func (x *Work) GetId() int32

func (*Work) GetImageUrl

func (x *Work) GetImageUrl() string

func (*Work) GetOfficialSiteUrl

func (x *Work) GetOfficialSiteUrl() string

func (*Work) GetReleasedOn

func (x *Work) GetReleasedOn() string

func (*Work) GetStatus

func (x *Work) GetStatus() Work_Status

func (*Work) GetTitle

func (x *Work) GetTitle() string

func (*Work) GetWikipediaUrl

func (x *Work) GetWikipediaUrl() string

func (*Work) ProtoMessage

func (*Work) ProtoMessage()

func (*Work) ProtoReflect

func (x *Work) ProtoReflect() protoreflect.Message

func (*Work) Reset

func (x *Work) Reset()

func (*Work) String

func (x *Work) String() string

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) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL