Documentation ¶
Index ¶
- type AnimeStats
- type AnimeStatsCount
- type Club
- type FavAnimeManga
- type FavCharacter
- type FavPeople
- type Favorite
- type Friend
- type History
- type MangaStats
- type MangaStatsCount
- type Recommendation
- type RecommendationSource
- type Review
- type SimpleFriend
- type Source
- type User
- type UserFriend
- type UserHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 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 string `json:"lastOnline"` FriendSince string `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 string `json:"date"` }
History represents user's anime/manga watched/read history.
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 Recommendation ¶
type Recommendation struct { Source RecommendationSource `json:"source"` Date string `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 common.DateTime `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 SimpleFriend ¶
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 string `json:"lastOnline"` Gender string `json:"gender"` Birthday string `json:"birthday"` Location string `json:"location"` JoinedDate string `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.