using System; namespace RocPush { public readonly struct NotificationId : IEquatable { public readonly int Value; public NotificationId(int value) { Value = value; } #region Equality public bool Equals(NotificationId other) { return Value == other.Value; } public override bool Equals(object obj) { return obj is NotificationId other && Equals(other); } public override int GetHashCode() { return Value; } #endregion #region Operators public static bool operator ==(NotificationId lhs, NotificationId rhs) { return lhs.Equals(rhs); } public static bool operator !=(NotificationId lhs, NotificationId rhs) { return !lhs.Equals(rhs); } #endregion } }