34 lines
776 B
Go
Raw Normal View History

2018-03-09 04:12:22 +00:00
package animediff
// JapaneseTitle describes differing Japanese titles.
type JapaneseTitle struct {
2018-03-09 13:48:00 +00:00
TitleA string
TitleB string
NumericHash uint64
2018-03-09 04:12:22 +00:00
}
2018-03-09 12:42:45 +00:00
// Type returns the diff type.
func (diff *JapaneseTitle) Type() string {
return "JapaneseTitle"
}
// Explanation returns the description.
func (diff *JapaneseTitle) Explanation() string {
2018-03-09 04:12:22 +00:00
return "Japanese titles are different"
}
// DetailsA shows the details for the first anime.
func (diff *JapaneseTitle) DetailsA() string {
return diff.TitleA
}
// DetailsB shows the details for the second anime.
func (diff *JapaneseTitle) DetailsB() string {
return diff.TitleB
}
2018-03-09 13:48:00 +00:00
// Hash returns the hash for the suggested value (from anime B).
func (diff *JapaneseTitle) Hash() uint64 {
return diff.NumericHash
}