Finished adding user support and ability to update specific novels or set your last read chapter
This commit is contained in:
@@ -10,5 +10,23 @@ namespace Treestar.Shared.Models.DBDomain
|
||||
[JsonIgnore]
|
||||
public User User { get; set; }
|
||||
public int LastChapterRead { get; set; }
|
||||
|
||||
protected bool Equals(UserNovel other)
|
||||
{
|
||||
return UserId == other.UserId && NovelUrl == other.NovelUrl;
|
||||
}
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (ReferenceEquals(null, obj)) return false;
|
||||
if (ReferenceEquals(this, obj)) return true;
|
||||
if (obj.GetType() != this.GetType()) return false;
|
||||
return Equals((UserNovel) obj);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(UserId, NovelUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user