Skip to content

Commit

Permalink
add ranking to comparer
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-mh committed Apr 15, 2023
1 parent 2e28639 commit 371cb82
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public bool Equals(WearAuthenticator x, WearAuthenticator y)

var isEqual = !differentCategories && x.Type == y.Type && x.Secret == y.Secret && x.Icon == y.Icon &&
x.Issuer == y.Issuer && x.Username == y.Username && x.Period == y.Period &&
x.Digits == y.Digits && x.Algorithm == y.Algorithm && x.Pin == y.Pin && x.CopyCount == y.CopyCount;
x.Digits == y.Digits && x.Algorithm == y.Algorithm && x.Pin == y.Pin &&
x.Ranking == y.Ranking && x.CopyCount == y.CopyCount;

return isEqual;
}
Expand All @@ -73,6 +74,7 @@ public int GetHashCode(WearAuthenticator obj)
hash.Add(obj.Digits);
hash.Add(obj.Algorithm);
hash.Add(obj.Categories);
hash.Add(obj.Ranking);
hash.Add(obj.CopyCount);

return hash.ToHashCode();
Expand Down

0 comments on commit 371cb82

Please sign in to comment.