Exemple #1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.channelId)
            {
                hashcode = (hashcode * 397) + ChannelId.GetHashCode();
            }
            if (__isset.shopOrderId)
            {
                hashcode = (hashcode * 397) + ShopOrderId.GetHashCode();
            }
            if (__isset.appStoreCode)
            {
                hashcode = (hashcode * 397) + AppStoreCode.GetHashCode();
            }
            if (__isset.items)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Items);
            }
            if (__isset.country)
            {
                hashcode = (hashcode * 397) + Country.GetHashCode();
            }
        }
        return(hashcode);
    }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (channelId_ != null)
            {
                hash ^= ChannelId.GetHashCode();
            }
            if (durationMillis_ != null)
            {
                hash ^= DurationMillis.GetHashCode();
            }
            if (title_ != null)
            {
                hash ^= Title.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #3
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.channelId)
            {
                hashcode = (hashcode * 397) + ChannelId.GetHashCode();
            }
            if (__isset.name)
            {
                hashcode = (hashcode * 397) + Name.GetHashCode();
            }
            if (__isset.notificationReceivable)
            {
                hashcode = (hashcode * 397) + NotificationReceivable.GetHashCode();
            }
            if (__isset.messageReceivable)
            {
                hashcode = (hashcode * 397) + MessageReceivable.GetHashCode();
            }
            if (__isset.showDefault)
            {
                hashcode = (hashcode * 397) + ShowDefault.GetHashCode();
            }
        }
        return(hashcode);
    }
 /// <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 (ActivityId != null)
         {
             hashCode = hashCode * 59 + ActivityId.GetHashCode();
         }
         if (User != null)
         {
             hashCode = hashCode * 59 + User.GetHashCode();
         }
         if (Bot != null)
         {
             hashCode = hashCode * 59 + Bot.GetHashCode();
         }
         if (Conversation != null)
         {
             hashCode = hashCode * 59 + Conversation.GetHashCode();
         }
         if (ChannelId != null)
         {
             hashCode = hashCode * 59 + ChannelId.GetHashCode();
         }
         if (ServiceUrl != null)
         {
             hashCode = hashCode * 59 + ServiceUrl.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OpenId.Length != 0)
            {
                hash ^= OpenId.GetHashCode();
            }
            if (ProductId.Length != 0)
            {
                hash ^= ProductId.GetHashCode();
            }
            if (Pf.Length != 0)
            {
                hash ^= Pf.GetHashCode();
            }
            if (Channel.Length != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (ChannelUid.Length != 0)
            {
                hash ^= ChannelUid.GetHashCode();
            }
            if (AccessToken.Length != 0)
            {
                hash ^= AccessToken.GetHashCode();
            }
            if (ChannelId.Length != 0)
            {
                hash ^= ChannelId.GetHashCode();
            }
            if (Version.Length != 0)
            {
                hash ^= Version.GetHashCode();
            }
            if (PhoneType.Length != 0)
            {
                hash ^= PhoneType.GetHashCode();
            }
            if (Idfa.Length != 0)
            {
                hash ^= Idfa.GetHashCode();
            }
            if (Idfv.Length != 0)
            {
                hash ^= Idfv.GetHashCode();
            }
            if (Imei.Length != 0)
            {
                hash ^= Imei.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        /// <summary>
        /// Gets the hash code for this <see cref="CommandCooldownBucket"/>.
        /// </summary>
        /// <returns>The hash code for this <see cref="CommandCooldownBucket"/>.</returns>
        public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + UserId.GetHashCode();
            hash = (hash * 7) + ChannelId.GetHashCode();
            hash = (hash * 7) + GuildId.GetHashCode();

            return(hash);
        }
Exemple #7
0
        public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + StreamerId.GetHashCode();
            hash = (hash * 7) + ServiceName.GetHashCode();
            hash = (hash * 7) + ChannelId.GetHashCode();

            return(hash);
        }
Exemple #8
0
 public int GetHashCodeWithMembers()
 {
     unchecked
     {
         var hashCode = 397;
         hashCode = (hashCode * 397) ^ (ChannelId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (UserId?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemple #9
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ChannelId != null ? ChannelId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ChannelName != null ? ChannelName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Type;
         return(hashCode);
     }
 }
Exemple #10
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ChannelId.GetHashCode();
                hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();
                hashCode = (hashCode * 397) ^ EqualityComparer <T> .Default.GetHashCode(Payload);

                return(hashCode);
            }
        }
Exemple #11
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ChannelId != null ? ChannelId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Message != null ? Message.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RootId != null ? RootId.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ServiceUrl != null?ServiceUrl.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (ChannelId != null ? ChannelId.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (ConversationId != null ? ConversationId.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (BotId != null ? BotId.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (UserId != null ? UserId.GetHashCode() : 0);
                return(hashCode);
            }
        }
Exemple #13
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.channelId)
            {
                hashcode = (hashcode * 397) + ChannelId.GetHashCode();
            }
            if (__isset.lastUpdated)
            {
                hashcode = (hashcode * 397) + LastUpdated.GetHashCode();
            }
        }
        return(hashcode);
    }
Exemple #14
0
        public override int GetHashCode()
        {
            // Overflow is fine, just wrap
            unchecked
            {
                int hash = 17;

                hash = hash * 29 + ScriptId.GetHashCode();
                hash = hash * 29 + Id.GetHashCode();
                hash = hash * 29 + ChannelId.GetHashCode();
                hash = hash * 29 + ActorHandle.GetHashCode();
                hash = hash * 29 + EntityHandle.GetHashCode();

                return(hash);
            }
        }
 public override int GetHashCode() {
   int hash = 1;
   if (HostName.Length != 0) hash ^= HostName.GetHashCode();
   if (HostIp.Length != 0) hash ^= HostIp.GetHashCode();
   if (ProcessId != 0) hash ^= ProcessId.GetHashCode();
   if (NodeName.Length != 0) hash ^= NodeName.GetHashCode();
   if (NodeId != 0UL) hash ^= NodeId.GetHashCode();
   if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode();
   if (ChannelId != 0UL) hash ^= ChannelId.GetHashCode();
   if (MessageType.Length != 0) hash ^= MessageType.GetHashCode();
   if (ProtoDesc.Length != 0) hash ^= ProtoDesc.GetHashCode();
   if (Id != 0UL) hash ^= Id.GetHashCode();
   if (qosProfile_ != null) hash ^= QosProfile.GetHashCode();
   if (socketAddr_ != null) hash ^= SocketAddr.GetHashCode();
   if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode();
   if (ServiceId != 0UL) hash ^= ServiceId.GetHashCode();
   return hash;
 }
Exemple #16
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset.channelId)
            {
                hashcode = (hashcode * 397) + ChannelId.GetHashCode();
            }
            if (__isset.lastSeq)
            {
                hashcode = (hashcode * 397) + LastSeq.GetHashCode();
            }
            if (__isset.unreadCount)
            {
                hashcode = (hashcode * 397) + UnreadCount.GetHashCode();
            }
            if (__isset.lastModifiedTime)
            {
                hashcode = (hashcode * 397) + LastModifiedTime.GetHashCode();
            }
            if (__isset.status)
            {
                hashcode = (hashcode * 397) + Status.GetHashCode();
            }
            if (__isset.midType)
            {
                hashcode = (hashcode * 397) + MidType.GetHashCode();
            }
            if (__isset.lastMessages)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(LastMessages);
            }
        }
        return(hashcode);
    }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Gid != 0UL)
            {
                hash ^= Gid.GetHashCode();
            }
            if (ChannelId != 0)
            {
                hash ^= ChannelId.GetHashCode();
            }
            if (SText.Length != 0)
            {
                hash ^= SText.GetHashCode();
            }
            if (Time != 0UL)
            {
                hash ^= Time.GetHashCode();
            }
            return(hash);
        }
Exemple #18
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.channelId)
            {
                hashcode = (hashcode * 397) + ChannelId.GetHashCode();
            }
            if (__isset.representMid)
            {
                hashcode = (hashcode * 397) + RepresentMid.GetHashCode();
            }
            if (__isset.count)
            {
                hashcode = (hashcode * 397) + Count.GetHashCode();
            }
            if (__isset.point)
            {
                hashcode = (hashcode * 397) + Point.GetHashCode();
            }
        }
        return(hashcode);
    }
Exemple #19
0
 public override int GetHashCode()
 {
     return((ChannelId.GetHashCode() * 17) + (StartDate.GetHashCode() * 17) + (EndDate.GetHashCode() * 17));
 }
 public override int GetHashCode() =>
 ChannelId.GetHashCode() ^
 Username.ToUpperInvariant().GetHashCode(System.StringComparison.InvariantCulture) ^
 Type.GetHashCode();
 /// <inheritdoc />
 public override int GetHashCode()
 => (ChannelId.GetHashCode(StringComparison.Ordinal) * 17) + (StartDate.GetHashCode() * 17) + (EndDate.GetHashCode() * 17);
Exemple #22
0
 public override int GetHashCode()
 {
     return(ChannelId.GetHashCode());
 }
Exemple #23
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.channelId)
            {
                hashcode = (hashcode * 397) + ChannelId.GetHashCode();
            }
            if (__isset.name)
            {
                hashcode = (hashcode * 397) + Name.GetHashCode();
            }
            if (__isset.entryPageUrl)
            {
                hashcode = (hashcode * 397) + EntryPageUrl.GetHashCode();
            }
            if (__isset.descriptionText)
            {
                hashcode = (hashcode * 397) + DescriptionText.GetHashCode();
            }
            if (__isset.provider)
            {
                hashcode = (hashcode * 397) + Provider.GetHashCode();
            }
            if (__isset.publicType)
            {
                hashcode = (hashcode * 397) + PublicType.GetHashCode();
            }
            if (__isset.iconImage)
            {
                hashcode = (hashcode * 397) + IconImage.GetHashCode();
            }
            if (__isset.permissions)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Permissions);
            }
            if (__isset.iconThumbnailImage)
            {
                hashcode = (hashcode * 397) + IconThumbnailImage.GetHashCode();
            }
            if (__isset.channelConfigurations)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(ChannelConfigurations);
            }
            if (__isset.lcsAllApiUsable)
            {
                hashcode = (hashcode * 397) + LcsAllApiUsable.GetHashCode();
            }
            if (__isset.allowedPermissions)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(AllowedPermissions);
            }
            if (__isset.channelDomains)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(ChannelDomains);
            }
            if (__isset.updatedTimestamp)
            {
                hashcode = (hashcode * 397) + UpdatedTimestamp.GetHashCode();
            }
        }
        return(hashcode);
    }
Exemple #24
0
 public override int GetHashCode() =>
 ChannelId.GetHashCode() ^
 Username.GetHashCode() ^
 Type.GetHashCode();
Exemple #25
0
 public override int GetHashCode()
 {
     return(-1492472495 + ChannelId.GetHashCode());
 }
Exemple #26
0
 /// <inheritdoc />
 public override int GetHashCode()
 => (ChannelId.GetHashCode() * 17) + (StartDate.GetHashCode() * 17) + (EndDate.GetHashCode() * 17);
 protected override int GetHashCodeCore()
 {
     return(ChannelId.GetHashCode());
 }
Exemple #28
0
 public override int GetHashCode() =>
 ChannelId.GetHashCode() ^
 Username.ToLowerInvariant().GetHashCode() ^
 Type.GetHashCode();
Exemple #29
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 (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Timestamp != null)
         {
             hashCode = hashCode * 59 + Timestamp.GetHashCode();
         }
         if (LocalTimestamp != null)
         {
             hashCode = hashCode * 59 + LocalTimestamp.GetHashCode();
         }
         if (ServiceUrl != null)
         {
             hashCode = hashCode * 59 + ServiceUrl.GetHashCode();
         }
         if (ChannelId != null)
         {
             hashCode = hashCode * 59 + ChannelId.GetHashCode();
         }
         if (From != null)
         {
             hashCode = hashCode * 59 + From.GetHashCode();
         }
         if (Conversation != null)
         {
             hashCode = hashCode * 59 + Conversation.GetHashCode();
         }
         if (Recipient != null)
         {
             hashCode = hashCode * 59 + Recipient.GetHashCode();
         }
         if (TextFormat != null)
         {
             hashCode = hashCode * 59 + TextFormat.GetHashCode();
         }
         if (AttachmentLayout != null)
         {
             hashCode = hashCode * 59 + AttachmentLayout.GetHashCode();
         }
         if (MembersAdded != null)
         {
             hashCode = hashCode * 59 + MembersAdded.GetHashCode();
         }
         if (MembersRemoved != null)
         {
             hashCode = hashCode * 59 + MembersRemoved.GetHashCode();
         }
         if (TopicName != null)
         {
             hashCode = hashCode * 59 + TopicName.GetHashCode();
         }
         if (HistoryDisclosed != null)
         {
             hashCode = hashCode * 59 + HistoryDisclosed.GetHashCode();
         }
         if (Locale != null)
         {
             hashCode = hashCode * 59 + Locale.GetHashCode();
         }
         if (Text != null)
         {
             hashCode = hashCode * 59 + Text.GetHashCode();
         }
         if (Speak != null)
         {
             hashCode = hashCode * 59 + Speak.GetHashCode();
         }
         if (InputHint != null)
         {
             hashCode = hashCode * 59 + InputHint.GetHashCode();
         }
         if (Summary != null)
         {
             hashCode = hashCode * 59 + Summary.GetHashCode();
         }
         if (SuggestedActions != null)
         {
             hashCode = hashCode * 59 + SuggestedActions.GetHashCode();
         }
         if (Attachments != null)
         {
             hashCode = hashCode * 59 + Attachments.GetHashCode();
         }
         if (Entities != null)
         {
             hashCode = hashCode * 59 + Entities.GetHashCode();
         }
         if (ChannelData != null)
         {
             hashCode = hashCode * 59 + ChannelData.GetHashCode();
         }
         if (Action != null)
         {
             hashCode = hashCode * 59 + Action.GetHashCode();
         }
         if (ReplyToId != null)
         {
             hashCode = hashCode * 59 + ReplyToId.GetHashCode();
         }
         if (Value != null)
         {
             hashCode = hashCode * 59 + Value.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (RelatesTo != null)
         {
             hashCode = hashCode * 59 + RelatesTo.GetHashCode();
         }
         if (Code != null)
         {
             hashCode = hashCode * 59 + Code.GetHashCode();
         }
         return(hashCode);
     }
 }