old

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnimeListStatusWatching  = "1"
	AnimeListStatusCompleted = "2"
	AnimeListStatusPlanned   = "6"
	AnimeListStatusHold      = "3"
	AnimeListStatusDropped   = "4"
)

AnimeListStatus values for anime list items

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimeList

type AnimeList struct {
	Myinfo *User            `json:"myinfo" xml:"myinfo"`
	Items  []*AnimeListItem `json:"anime" xml:"anime"`
}

AnimeList ...

func GetAnimeList

func GetAnimeList(userName string) (*AnimeList, error)

GetAnimeList returns the user's anime list.

type AnimeListItem

type AnimeListItem struct {
	AnimeID           string        `json:"series_animedb_id" xml:"series_animedb_id"`
	AnimeTitle        string        `json:"series_title" xml:"series_title"`
	AnimeSynonyms     string        `json:"series_synonyms" xml:"series_synonyms"`
	AnimeType         string        `json:"series_type" xml:"series_type"`
	AnimeEpisodes     string        `json:"series_episodes" xml:"series_episodes"`
	AnimeStatus       string        `json:"series_status" xml:"series_status"`
	AnimeStart        string        `json:"series_start" xml:"series_start"`
	AnimeEnd          string        `json:"series_end" xml:"series_end"`
	AnimeImage        string        `json:"series_image" xml:"series_image"`
	MyID              string        `json:"my_id" xml:"my_id"`
	MyWatchedEpisodes string        `json:"my_watched_episodes" xml:"my_watched_episodes"`
	MyStartDate       string        `json:"my_start_date" xml:"my_start_date"`
	MyFinishDate      string        `json:"my_finish_date" xml:"my_finish_date"`
	MyScore           string        `json:"my_score" xml:"my_score"`
	MyStatus          string        `json:"my_status" xml:"my_status"`
	MyRewatching      string        `json:"my_rewatching" xml:"my_rewatching"`
	MyRewatchingEp    string        `json:"my_rewatching_ep" xml:"my_rewatching_ep"`
	MyLastUpdated     string        `json:"my_last_updated" xml:"my_last_updated"`
	MyTags            []interface{} `json:"my_tags" xml:"my_tags"`
}

AnimeListItem ...

func (item *AnimeListItem) AnimeLink() string

AnimeLink ...

type User

type User struct {
	ID                string `json:"user_id" xml:"user_id"`
	Name              string `json:"user_name" xml:"user_name"`
	Watching          string `json:"user_watching" xml:"user_watching"`
	Completed         string `json:"user_completed" xml:"user_completed"`
	Onhold            string `json:"user_onhold" xml:"user_onhold"`
	Dropped           string `json:"user_dropped" xml:"user_dropped"`
	Plantowatch       string `json:"user_plantowatch" xml:"user_plantowatch"`
	DaysSpentWatching string `json:"user_days_spent_watching" xml:"user_days_spent_watching"`
}

User ...

Jump to

Keyboard shortcuts

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