mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-23 15:50:13 +01:00
Added override Manga.Equals
This commit is contained in:
parent
7c09deb143
commit
45c0f19a9d
@ -72,6 +72,19 @@ public struct Manga
|
|||||||
this.releaseStatus = releaseStatus;
|
this.releaseStatus = releaseStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override bool Equals(object? obj)
|
||||||
|
{
|
||||||
|
if (obj is not Manga compareManga)
|
||||||
|
return false;
|
||||||
|
return this.description == compareManga.description &&
|
||||||
|
this.year == compareManga.year &&
|
||||||
|
this.status == compareManga.status &&
|
||||||
|
this.releaseStatus == compareManga.releaseStatus &&
|
||||||
|
this.sortName == compareManga.sortName &&
|
||||||
|
this.latestChapterAvailable.Equals(compareManga.latestChapterAvailable) &&
|
||||||
|
this.tags.Equals(compareManga.tags);
|
||||||
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return $"Publication {sortName} {internalId}";
|
return $"Publication {sortName} {internalId}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user