user

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anime added in v0.7.3

type Anime struct {
	ID           int             `json:"id"`
	Title        string          `json:"title"`
	Image        string          `json:"image"`
	Score        int             `json:"score"`
	Status       int             `json:"status"`
	Type         string          `json:"type"`
	Season       Season          `json:"season"`
	Progress     int             `json:"progress"`
	Episode      int             `json:"episode"`
	Studios      []common.IDName `json:"studios"`
	Licensors    []common.IDName `json:"licensors"`
	Tag          string          `json:"tag"`
	Rating       string          `json:"rating"`
	AiringStatus int             `json:"airingStatus"`
	AiringStart  time.Time       `json:"airingStart"`
	AiringEnd    time.Time       `json:"airingEnd"`
	WatchStart   time.Time       `json:"watchStart"`
	WatchEnd     time.Time       `json:"watchEnd"`
	IsRewatching bool            `json:"isRewatching"`
	Days         int             `json:"days"`
	Storage      string          `json:"storage"`
	Priority     string          `json:"priority"`
}

Anime represents the main model for MyAnimeList user's anime list.

type AnimeStats

type AnimeStats struct {
	Days      float64         `json:"days"`
	MeanScore float64         `json:"meanScore"`
	Status    AnimeStatsCount `json:"status"`
	History   []History       `json:"history"`
}

AnimeStats represents detail anime stats model.

type AnimeStatsCount

type AnimeStatsCount struct {
	Watching    int `json:"watching"`
	Completed   int `json:"completed"`
	OnHold      int `json:"onHold"`
	Dropped     int `json:"dropped"`
	PlanToWatch int `json:"planToWatch"`
	Total       int `json:"total"`
	Rewatched   int `json:"rewatched"`
	Episode     int `json:"episode"`
}

AnimeStatsCount represents anime status and its count.

type Club added in v0.5.0

type Club struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Club represents the main model for MyAnimeList user's club list.

type FavAnimeManga

type FavAnimeManga struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Image string `json:"image"`
	Type  string `json:"type"`
	Year  int    `json:"year"`
}

FavAnimeManga represents user's favorite anime and manga detail information.

type FavCharacter

type FavCharacter struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	Image       string `json:"image"`
	SourceID    int    `json:"sourceId"`
	SourceTitle string `json:"sourceTitle"`
	SourceType  string `json:"sourceType"`
}

FavCharacter represents user's favorite character detail information.

type FavPeople

type FavPeople struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	Image string `json:"image"`
}

FavPeople represents user's favorite people detail information.

type Favorite

type Favorite struct {
	Anime     []FavAnimeManga `json:"anime"`
	Manga     []FavAnimeManga `json:"manga"`
	Character []FavCharacter  `json:"character"`
	People    []FavPeople     `json:"people"`
}

Favorite represents user's favorite anime, manga, character, and people.

type Friend

type Friend struct {
	Name        string    `json:"name"`
	Image       string    `json:"image"`
	LastOnline  time.Time `json:"lastOnline"`
	FriendSince time.Time `json:"friendSince"`
}

Friend represents the main model for MyAnimeList user's friend list.

type History

type History struct {
	ID       int       `json:"id"`
	Title    string    `json:"title"`
	Image    string    `json:"image"`
	Progress string    `json:"progress"`
	Score    int       `json:"score"`
	Status   string    `json:"status"`
	Date     time.Time `json:"date"`
}

History represents user's anime/manga watched/read history.

type Manga added in v0.7.3

type Manga struct {
	ID               int             `json:"id"`
	Title            string          `json:"title"`
	Image            string          `json:"image"`
	Score            int             `json:"score"`
	Status           int             `json:"status"`
	Type             string          `json:"type"`
	ChapterProgress  int             `json:"chapterProgress"`
	VolumeProgress   int             `json:"volumeProgress"`
	Chapter          int             `json:"chapter"`
	Volume           int             `json:"volume"`
	Magazines        []common.IDName `json:"magazines"`
	Tag              string          `json:"tag"`
	PublishingStatus int             `json:"publishingStatus"`
	PublishingStart  time.Time       `json:"publishingStart"`
	PublishingEnd    time.Time       `json:"publishingEnd"`
	ReadStart        time.Time       `json:"readStart"`
	ReadEnd          time.Time       `json:"readEnd"`
	IsRereading      bool            `json:"isRereading"`
	Days             int             `json:"days"`
	Priority         string          `json:"priority"`
}

Manga represents the main model for MyAnimeList user's manga list.

type MangaStats

type MangaStats struct {
	Days      float64         `json:"days"`
	MeanScore float64         `json:"meanScore"`
	Status    MangaStatsCount `json:"status"`
	History   []History       `json:"history"`
}

MangaStats represents detail manga stats model.

type MangaStatsCount

type MangaStatsCount struct {
	Reading    int `json:"reading"`
	Completed  int `json:"completed"`
	OnHold     int `json:"onHold"`
	Dropped    int `json:"dropped"`
	PlanToRead int `json:"planToRead"`
	Total      int `json:"total"`
	Reread     int `json:"reread"`
	Chapter    int `json:"chapter"`
	Volume     int `json:"volume"`
}

MangaStatsCount represents manga status and its count.

type RawAnime added in v0.7.3

type RawAnime struct {
	Status            int             `json:"status"`
	Score             int             `json:"score"`
	Tags              interface{}     `json:"tags"`
	IsRewatching      interface{}     `json:"is_rewatching"`
	WatchedEpisode    int             `json:"num_watched_episodes"`
	AnimeTitle        interface{}     `json:"anime_title"`
	AnimeEpisode      int             `json:"anime_num_episodes"`
	AnimeAiringStatus int             `json:"anime_airing_status"`
	AnimeID           int             `json:"anime_id"`
	AnimeStudio       []common.IDName `json:"anime_studios"`
	AnimeLicensor     []common.IDName `json:"anime_licensors"`
	AnimeSeason       Season          `json:"anime_season"`
	HasEpisodeVideo   bool            `json:"has_episode_video"`
	HasPromotionVideo bool            `json:"has_promotion_video"`
	HasVideo          bool            `json:"has_video"`
	VideoURL          string          `json:"video_url"`
	AnimeURL          string          `json:"anime_url"`
	AnimeImage        string          `json:"anime_image_path"`
	AnimeType         string          `json:"anime_media_type_string"`
	AnimeRating       string          `json:"anime_mpaa_rating_string"`
	AnimeStartDate    string          `json:"anime_start_date_string"`
	AnimeEndDate      string          `json:"anime_end_date_string"`
	IsAddedToList     bool            `json:"is_added_to_list"`
	StartDate         string          `json:"start_date_string"`
	FinishDate        string          `json:"finish_date_string"`
	Day               int             `json:"days_string"`
	Storage           string          `json:"storage_string"`
	Priority          string          `json:"priority_string"`
}

RawAnime represents MyAnimeList raw JSON anime list response.

type RawManga added in v0.7.3

type RawManga struct {
	Status         int             `json:"status"`
	Score          int             `json:"score"`
	Tags           interface{}     `json:"tags"`
	IsRereading    interface{}     `json:"is_rereading"`
	ReadChapter    int             `json:"num_read_chapters"`
	ReadVolume     int             `json:"num_read_volumes"`
	MangaTitle     interface{}     `json:"manga_title"`
	MangaChapter   int             `json:"manga_num_chapters"`
	MangaVolume    int             `json:"manga_num_volume"`
	MangaStatus    int             `json:"manga_publishing_status"`
	MangaID        int             `json:"manga_id"`
	MangaMagazine  []common.IDName `json:"manga_magazines"`
	MangaURL       string          `json:"manga_url"`
	MangaImage     string          `json:"manga_image_path"`
	IsAddedToList  bool            `json:"is_added_to_list"`
	MangaType      string          `json:"manga_media_type_string"`
	MangaStartDate string          `json:"manga_start_date_string"`
	MangaEndDate   string          `json:"manga_end_date_string"`
	Retail         string          `json:"retail_string"`
	Day            int             `json:"days_string"`
	StartDate      string          `json:"start_date_string"`
	FinishDate     string          `json:"finish_date_string"`
	Priority       string          `json:"priority_string"`
}

RawManga represents MyAnimeList raw JSON manga list response.

type Recommendation

type Recommendation struct {
	Source  RecommendationSource `json:"source"`
	Date    time.Time            `json:"date"`
	Content string               `json:"content"`
}

Recommendation represent the main model for MyAnimeList user recommendation list.

type RecommendationSource

type RecommendationSource struct {
	Liked       Source `json:"liked"`
	Recommended Source `json:"recommended"`
}

RecommendationSource represents recommendation source (anime/manga) model.

type Review

type Review struct {
	ID      int            `json:"id"`
	Source  Source         `json:"source"`
	Helpful int            `json:"helpful"`
	Date    time.Time      `json:"date"`
	Episode string         `json:"episode"`
	Chapter string         `json:"chapter"` // manga
	Score   map[string]int `json:"score"`
	Review  string         `json:"review"`
}

Review represents the main model for MyAnimeList user review.

type Season added in v0.7.3

type Season struct {
	Year   int    `json:"year"`
	Season string `json:"season"`
}

Season represents anime season model.

type SimpleFriend

type SimpleFriend struct {
	Name  string `json:"name"`
	Image string `json:"image"`
}

SimpleFriend represents a simple friend model.

type Source

type Source struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Type  string `json:"type"`
	Image string `json:"image"`
}

Source represents simple source (anime/manga) review model.

type User

type User struct {
	Username       string     `json:"username"`
	Image          string     `json:"image"`
	LastOnline     time.Time  `json:"lastOnline"`
	Gender         string     `json:"gender"`
	Birthday       time.Time  `json:"birthday"`
	Location       string     `json:"location"`
	JoinedDate     time.Time  `json:"joinedDate"`
	ForumPost      int        `json:"forumPost"`
	Review         int        `json:"review"`
	Recommendation int        `json:"recommendation"`
	BlogPost       int        `json:"blogPost"`
	Club           int        `json:"club"`
	Sns            []string   `json:"sns"`
	Friend         UserFriend `json:"friend"`
	About          string     `json:"about"`
	AnimeStats     AnimeStats `json:"animeStats"`
	MangaStats     MangaStats `json:"mangaStats"`
	Favorite       Favorite   `json:"favorite"`
}

User represents the main model for MyAnimeList user profile.

type UserFriend

type UserFriend struct {
	Count   int            `json:"count"`
	Friends []SimpleFriend `json:"friends"`
}

UserFriend represents a simple user's friends list.

type UserHistory

type UserHistory struct {
	ID       int       `json:"id"`
	Title    string    `json:"title"`
	Type     string    `json:"type"`
	Progress int       `json:"progress"`
	Date     time.Time `json:"date"`
}

UserHistory represents the main model for MyAnimelist user's history list.

Jump to

Keyboard shortcuts

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