Added arn to the main repository
This commit is contained in:
19
arn/AniListMatch.go
Normal file
19
arn/AniListMatch.go
Normal file
@ -0,0 +1,19 @@
|
||||
package arn
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/anilist"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
// AniListMatch ...
|
||||
type AniListMatch struct {
|
||||
AniListItem *anilist.AnimeListItem `json:"anilistItem"`
|
||||
ARNAnime *Anime `json:"arnAnime"`
|
||||
}
|
||||
|
||||
// JSON ...
|
||||
func (match *AniListMatch) JSON() string {
|
||||
b, err := jsoniter.Marshal(match)
|
||||
PanicOnError(err)
|
||||
return string(b)
|
||||
}
|
Reference in New Issue
Block a user