34 lines
733 B
Go
Raw Normal View History

2018-03-09 12:42:45 +00:00
package animediff
// Synopsis describes differing synopsis.
type Synopsis struct {
2018-03-09 13:48:00 +00:00
SynopsisA string
SynopsisB string
NumericHash uint64
2018-03-09 12:42:45 +00:00
}
2018-11-15 11:19:40 +00:00
// TypeName returns the diff type.
func (diff *Synopsis) TypeName() string {
2018-03-09 12:42:45 +00:00
return "Synopsis"
}
// Explanation returns the description.
func (diff *Synopsis) Explanation() string {
return "Synopsis is shorter"
}
// DetailsA shows the details for the first anime.
func (diff *Synopsis) DetailsA() string {
return diff.SynopsisA
}
// DetailsB shows the details for the second anime.
func (diff *Synopsis) DetailsB() string {
return diff.SynopsisB
}
2018-03-09 13:48:00 +00:00
// Hash returns the hash for the suggested value (from anime B).
func (diff *Synopsis) Hash() uint64 {
return diff.NumericHash
}