Created animediff package

This commit is contained in:
2018-03-09 05:12:22 +01:00
parent 3ac77b889b
commit 1910b3c2d8
8 changed files with 93 additions and 59 deletions

View File

@ -3,18 +3,12 @@ package utils
import (
"github.com/animenotifier/arn"
"github.com/animenotifier/mal"
"github.com/animenotifier/notify.moe/utils/animediff"
)
// AnimeDiff describes a difference between two anime.
type AnimeDiff interface {
String() string
DetailsA() string
DetailsB() string
}
// MALComparison encapsulates the difference between an ARN anime and a MAL anime.
type MALComparison struct {
Anime *arn.Anime
MALAnime *mal.Anime
Differences []AnimeDiff
Differences []animediff.Difference
}