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