21 lines
369 B
Go
Raw Normal View History

2019-06-03 18:32:43 +09:00
package arn
import (
2019-11-03 01:56:42 +09:00
"encoding/json"
2019-06-03 18:32:43 +09:00
"github.com/animenotifier/mal"
)
// MyAnimeListMatch ...
type MyAnimeListMatch struct {
MyAnimeListItem *mal.AnimeListItem `json:"malItem"`
ARNAnime *Anime `json:"arnAnime"`
}
// JSON ...
func (match *MyAnimeListMatch) JSON() string {
2019-11-03 01:56:42 +09:00
b, err := json.Marshal(match)
2019-06-03 18:32:43 +09:00
PanicOnError(err)
return string(b)
}