public override int GetHashCode()
        {
            int hash = 1;

            if (ContextId.Length != 0)
            {
                hash ^= ContextId.GetHashCode();
            }
            if (Current != 0L)
            {
                hash ^= Current.GetHashCode();
            }
            if (Total != 0L)
            {
                hash ^= Total.GetHashCode();
            }
            if (TotalSize != 0L)
            {
                hash ^= TotalSize.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = AppId;
         hashCode = (hashCode * 397) ^ ContextId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #3
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Amount.GetHashCode();
                hashCode = (hashCode * 397) ^ AppId.GetHashCode();
                hashCode = (hashCode * 397) ^ CurrencyId.GetHashCode();
                hashCode = (hashCode * 397) ^ ContextId.GetHashCode();

                return(hashCode);
            }
        }
Exemple #4
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = (int)Action;
                hashCode = (hashCode * 397) ^ AppId;
                hashCode = (hashCode * 397) ^ AssetId.GetHashCode();
                hashCode = (hashCode * 397) ^ CurrencyId.GetHashCode();
                hashCode = (hashCode * 397) ^ ContextId.GetHashCode();
                hashCode = (hashCode * 397) ^ SteamId.GetHashCode();
                hashCode = (hashCode * 397) ^ (Text != null ? Text.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();

                return(hashCode);
            }
        }
 public override int GetHashCode()
 {
     return ContextId.GetHashCode() ^ Generation.GetHashCode();
 }
Exemple #6
0
 public override int GetHashCode()
 {
     return(ContextId.GetHashCode() ^ AssetId.GetHashCode() ^ AppId.GetHashCode() ^ Amount.GetHashCode());
 }