Exemplo n.º 1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.tokenKey)
            {
                hashcode = (hashcode * 397) + TokenKey.GetHashCode();
            }
            if (__isset.expirationTime)
            {
                hashcode = (hashcode * 397) + ExpirationTime.GetHashCode();
            }
            if (__isset.applicationType)
            {
                hashcode = (hashcode * 397) + ApplicationType.GetHashCode();
            }
            if (__isset.systemName)
            {
                hashcode = (hashcode * 397) + SystemName.GetHashCode();
            }
            if (__isset.accessLocation)
            {
                hashcode = (hashcode * 397) + AccessLocation.GetHashCode();
            }
        }
        return(hashcode);
    }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Enabled.GetHashCode();
         hashCode = (hashCode * 397) ^ RefreshTime.GetHashCode();
         hashCode = (hashCode * 397) ^ ExpirationTime.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     if (ID == 0)
     {
         var hashCode = 420877175;
         hashCode = hashCode * -1521134295 + Name.GetHashCode();
         hashCode = hashCode * -1521134295 + ExpirationTime.GetHashCode();
         return(hashCode);
     }
     return(ID.GetHashCode());
 }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasInviterIdentity)
            {
                hash ^= InviterIdentity.GetHashCode();
            }
            if (HasInviteeIdentity)
            {
                hash ^= InviteeIdentity.GetHashCode();
            }
            if (HasInviterName)
            {
                hash ^= InviterName.GetHashCode();
            }
            if (HasInviteeName)
            {
                hash ^= InviteeName.GetHashCode();
            }
            if (HasInvitationMessage)
            {
                hash ^= InvitationMessage.GetHashCode();
            }
            if (HasCreationTime)
            {
                hash ^= CreationTime.GetHashCode();
            }
            if (HasExpirationTime)
            {
                hash ^= ExpirationTime.GetHashCode();
            }
            if (_extensions != null)
            {
                hash ^= _extensions.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (InputAddress != null)
         {
             hashCode = hashCode * 59 + InputAddress.GetHashCode();
         }
         if (InputCoinType != null)
         {
             hashCode = hashCode * 59 + InputCoinType.GetHashCode();
         }
         if (InputAmount != null)
         {
             hashCode = hashCode * 59 + InputAmount.GetHashCode();
         }
         if (OutputAddress != null)
         {
             hashCode = hashCode * 59 + OutputAddress.GetHashCode();
         }
         if (OutputCoinType != null)
         {
             hashCode = hashCode * 59 + OutputCoinType.GetHashCode();
         }
         if (OutputAmount != null)
         {
             hashCode = hashCode * 59 + OutputAmount.GetHashCode();
         }
         if (RefundAddress != null)
         {
             hashCode = hashCode * 59 + RefundAddress.GetHashCode();
         }
         if (ExpirationTime != null)
         {
             hashCode = hashCode * 59 + ExpirationTime.GetHashCode();
         }
         if (FlatTransactionFeeInInputCoinType != null)
         {
             hashCode = hashCode * 59 + FlatTransactionFeeInInputCoinType.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Token.Length != 0)
            {
                hash ^= Token.GetHashCode();
            }
            if (ExpirationTime != 0L)
            {
                hash ^= ExpirationTime.GetHashCode();
            }
            if (Iv.Length != 0)
            {
                hash ^= Iv.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Enabled.GetHashCode();
         hashCode = (hashCode * 397) ^ ResponseKindsToCache.GetHashCode();
         hashCode = (hashCode * 397) ^ ResponseKindsToIgnore.GetHashCode();
         hashCode = (hashCode * 397) ^ RefreshMode.GetHashCode();
         hashCode = (hashCode * 397) ^ RefreshTime.GetHashCode();
         hashCode = (hashCode * 397) ^ ExpirationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ FailedRefreshDelay.GetHashCode();
         hashCode = (hashCode * 397) ^ RequestGroupingBehavior.GetHashCode();
         hashCode = (hashCode * 397) ^ RefreshBehavior.GetHashCode();
         hashCode = (hashCode * 397) ^ RevokedResponseBehavior.GetHashCode();
         hashCode = (hashCode * 397) ^ ExpirationBehavior.GetHashCode();
         hashCode = (hashCode * 397) ^ CacheResponsesWhenSupressedBehavior.GetHashCode();
         hashCode = (hashCode * 397) ^ NotIgnoredResponseBehavior.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 8
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset.expirationTime)
            {
                hashcode = (hashcode * 397) + ExpirationTime.GetHashCode();
            }
            if (__isset.maxUseCount)
            {
                hashcode = (hashcode * 397) + MaxUseCount.GetHashCode();
            }
        }
        return(hashcode);
    }
Exemplo n.º 9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasInvitationMessage)
            {
                hash ^= InvitationMessage.GetHashCode();
            }
            if (HasExpirationTime)
            {
                hash ^= ExpirationTime.GetHashCode();
            }
            if (_extensions != null)
            {
                hash ^= _extensions.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 10
0
 /// <summary>
 /// Returns the hash code for this object.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     return(Key.GetHashCode() ^ Queue.GetHashCode() ^ EnqueueTime.GetHashCode() ^ LeasedUntil.GetHashCode() ^ LeaseDuration.GetHashCode() ^ ExpirationTime.GetHashCode() ^ DequeueCount.GetHashCode() ^ Item.GetHashCode());
 }
Exemplo n.º 11
0
 /// <summary>
 /// override
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(UniqueName.GetHashCode() ^ UpdatedTime.GetHashCode() ^ ExpirationTime.GetHashCode() ^ IsOptimized.GetHashCode());
 }