Exemple #1
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);
            }
        }
Exemple #2
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = AccountName != null?AccountName.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (IdentitySecret != null ? IdentitySecret.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (RevocationCode != null ? RevocationCode.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Secret1 != null ? Secret1.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ ServerTime.GetHashCode();
                hashCode = (hashCode * 397) ^ (SharedSecret != null ? SharedSecret.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (int)Status;
                hashCode = (hashCode * 397) ^ (SteamGuardScheme != null ? SteamGuardScheme.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ SteamId.GetHashCode();
                hashCode = (hashCode * 397) ^ (TokenGID != null ? TokenGID.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Uri != null ? Uri.GetHashCode() : 0);

                return(hashCode);
            }
        }
 public override int GetHashCode()
 {
     return(SteamId.GetHashCode());
 }
Exemple #4
0
 public override int GetHashCode()
 {
     return(Address.GetHashCode() + SteamId.GetHashCode() + ConnectionPort.GetHashCode() + QueryPort.GetHashCode());
 }