anime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlternativeTitle

type AlternativeTitle struct {
	English  string `json:"english"`
	Synonym  string `json:"synonym"`
	Japanese string `json:"japanese"`
}

AlternativeTitle represents alternative english, synonym, and japanese title of anime.

type Anime

type Anime struct {
	ID                int                   `json:"id"`
	Cover             string                `json:"cover"`
	Title             string                `json:"title"`
	AlternativeTitles AlternativeTitle      `json:"alternativeTitles"`
	Video             string                `json:"video"`
	Synopsis          string                `json:"synopsis"`
	Score             float64               `json:"score"`
	Voter             int                   `json:"voter"`
	Rank              int                   `json:"rank"`
	Popularity        int                   `json:"popularity"`
	Member            int                   `json:"member"`
	Favorite          int                   `json:"favorite"`
	Type              string                `json:"type"`
	Episode           int                   `json:"episode"`
	Status            string                `json:"status"`
	StartDate         StartEndDate          `json:"startDate"`
	Premiered         string                `json:"premiered"`
	Broadcast         string                `json:"broadcast"`
	Producers         []common.IDName       `json:"producers"`
	Licensors         []common.IDName       `json:"licensors"`
	Studios           []common.IDName       `json:"studios"`
	Source            string                `json:"source"`
	Genres            []common.IDName       `json:"genres"`
	Duration          string                `json:"duration"`
	Rating            string                `json:"rating"`
	Related           map[string][]Related  `json:"related"`
	Characters        []AnimeCharacter      `json:"characters"`
	Staff             []Staff               `json:"staff"`
	Song              Song                  `json:"song"`
	Reviews           []Review              `json:"reviews"`
	Recommendations   []AnimeRecommendation `json:"recommendations"`
}

Anime represent the main model for MyAnimeList anime information.

type AnimeCharacter

type AnimeCharacter struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Role    string `json:"role"`
	Image   string `json:"image"`
	VaId    int    `json:"vaId"`
	VaName  string `json:"vaName"`
	VaImage string `json:"vaImage"`
	VaRole  string `json:"vaRole"`
}

AnimeCharacter represents simple character model with its voice actor information.

type AnimeRecommendation

type AnimeRecommendation struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Image string `json:"image"`
	Count int    `json:"count"`
}

AnimeRecommendation represents simple anime recommendation.

type Character

type Character struct {
	ID          int          `json:"id"`
	Name        string       `json:"name"`
	Image       string       `json:"image"`
	Role        string       `json:"role"`
	VoiceActors []VoiceActor `json:"voiceActors"`
}

Character represents the main model for MyAnimeList anime character.

type Episode

type Episode struct {
	Episode       int    `json:"episode"`
	Title         string `json:"title"`
	JapaneseTitle string `json:"japaneseTitle"`
	AiredDate     string `json:"airedDate"`
	Link          string `json:"link"`
	Tag           string `json:"tag"`
}

Episode represents the main model for MyAnimeList anime episode information.

type Promotion

type Promotion struct {
	Title string `json:"title"`
	Link  string `json:"link"`
}

Promotion represents promotion video model.

type Recommendation

type Recommendation struct {
	ID    int       `json:"id"`
	Title string    `json:"title"`
	Image string    `json:"image"`
	Users []UserRec `json:"users"`
}

Recommendation represents the main model for MyAnimeList anime recommendation.

type Related struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Type  string `json:"type"`
}

Related represents related anime & manga model.

type Review

type Review struct {
	ID       int             `json:"id"`
	Username string          `json:"username"`
	Image    string          `json:"image"`
	Helpful  int             `json:"helpful"`
	Date     common.DateTime `json:"date"`
	Episode  string          `json:"episode"`
	Score    map[string]int  `json:"score"`
	Review   string          `json:"review"`
}

Review represents the main model for MyAnimeList anime review.

type Score

type Score struct {
	Type    int     `json:"type"`
	Vote    int     `json:"vote"`
	Percent float64 `json:"percent"`
}

Score represents detail score model and its count.

type SimpleEpisode

type SimpleEpisode struct {
	Episode int    `json:"episode"`
	Title   string `json:"title"`
	Link    string `json:"link"`
}

SimpleEpisode represents anime episode simple model.

type Song

type Song struct {
	Opening []string `json:"opening"`
	Closing []string `json:"closing"`
}

Song represents list of opening and ending anime songs.

type Staff

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

Staff represents the main model for MyAnimeList anime staff.

type StartEndDate

type StartEndDate struct {
	Start string `json:"start"`
	End   string `json:"end"`
}

StartEndDate represents anime start and end of airing date.

type Stats

type Stats struct {
	Summary map[string]int `json:"summary"`
	Score   []Score        `json:"score"`
	Users   []UserStats    `json:"users"`
}

Stats represents the main model for MyAnimeList anime stats information.

type UserRec

type UserRec struct {
	Username string `json:"username"`
	Content  string `json:"content"`
}

UserRec represents user recommendation simple model.

type UserStats

type UserStats struct {
	Username string `json:"username"`
	Image    string `json:"image"`
	Score    int    `json:"score"`
	Status   string `json:"status"`
	Episode  string `json:"episode"`
	Date     string `json:"date"`
}

UserStats represents simple user's stats model.

type Video

type Video struct {
	Episodes   []SimpleEpisode `json:"episodes"`
	Promotions []Promotion     `json:"promotions"`
}

Video represents the main model for MyAnimeList anime video information.

type VoiceActor

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

VoiceActor represents simple model of character's voice actor.

Jump to

Keyboard shortcuts

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