2019-06-03 09:32:43 +00:00
|
|
|
package arn
|
|
|
|
|
|
|
|
import (
|
2019-11-02 16:56:42 +00:00
|
|
|
"encoding/json"
|
|
|
|
|
2019-06-03 09:32:43 +00:00
|
|
|
"github.com/animenotifier/anilist"
|
|
|
|
)
|
|
|
|
|
|
|
|
// AniListMatch ...
|
|
|
|
type AniListMatch struct {
|
|
|
|
AniListItem *anilist.AnimeListItem `json:"anilistItem"`
|
|
|
|
ARNAnime *Anime `json:"arnAnime"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// JSON ...
|
|
|
|
func (match *AniListMatch) JSON() string {
|
2019-11-02 16:56:42 +00:00
|
|
|
b, err := json.Marshal(match)
|
2019-06-03 09:32:43 +00:00
|
|
|
PanicOnError(err)
|
|
|
|
return string(b)
|
|
|
|
}
|