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

        unchecked {
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.type)
            {
                hashcode = (hashcode * 397) + Type.GetHashCode();
            }
            if (__isset.payload)
            {
                hashcode = (hashcode * 397) + Payload.GetHashCode();
            }
            if (__isset.syncToken)
            {
                hashcode = (hashcode * 397) + SyncToken.GetHashCode();
            }
            if (__isset.eventStatus)
            {
                hashcode = (hashcode * 397) + EventStatus.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.modifiedTime)
            {
                hashcode = (hashcode * 397) + ModifiedTime.GetHashCode();
            }
            if (__isset.status)
            {
                hashcode = (hashcode * 397) + Status.GetHashCode();
            }
            if (__isset.settings)
            {
                hashcode = (hashcode * 397) + Settings.GetHashCode();
            }
            if (__isset.displayNameOverridden)
            {
                hashcode = (hashcode * 397) + DisplayNameOverridden.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 (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Kind != null)
         {
             hashCode = hashCode * 59 + Kind.GetHashCode();
         }
         if (CreatedTime != null)
         {
             hashCode = hashCode * 59 + CreatedTime.GetHashCode();
         }
         if (ModifiedTime != null)
         {
             hashCode = hashCode * 59 + ModifiedTime.GetHashCode();
         }
         if (Author != null)
         {
             hashCode = hashCode * 59 + Author.GetHashCode();
         }
         if (Comments != null)
         {
             hashCode = hashCode * 59 + Comments.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 4
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.key)
            {
                hashcode = (hashcode * 397) + Key.GetHashCode();
            }
            if (__isset.targets)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Targets);
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.data)
            {
                hashcode = (hashcode * 397) + Data.GetHashCode();
            }
            if (__isset.maxDelay)
            {
                hashcode = (hashcode * 397) + MaxDelay.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 5
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.contacts)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Contacts);
            }
            if (__isset.notificationDisabled)
            {
                hashcode = (hashcode * 397) + NotificationDisabled.GetHashCode();
            }
            if (__isset.memberMids)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(MemberMids);
            }
        }
        return(hashcode);
    }
Ejemplo n.º 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (CreatedTime.Length != 0)
            {
                hash ^= CreatedTime.GetHashCode();
            }
            if (Author.Length != 0)
            {
                hash ^= Author.GetHashCode();
            }
            if (Office.Length != 0)
            {
                hash ^= Office.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 7
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((CreatedTime.GetHashCode() * 397) ^ (Name != null ? Name.GetHashCode() : 0));
     }
 }
Ejemplo n.º 8
0
 /// <summary>
 ///     Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>A hash code for the current <see cref="T:System.Object" />.</returns>
 public override int GetHashCode()
 {
     return(CreatedTime.GetHashCode()
            ^ DirectoryCount.GetHashCode()
            ^ FileCount.GetHashCode()
            ^ ModifiedTime.GetHashCode()
            ^ Size.GetHashCode());
 }
Ejemplo n.º 9
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ CreatorUserId;
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CreatedTime.GetHashCode();
         hashCode = (hashCode * 397) ^ Softdelete.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ RelativePosition.GetHashCode();
         hashCode = (hashCode * 397) ^ RelativeRotationEuler.GetHashCode();
         hashCode = (hashCode * 397) ^ ObjectScale.GetHashCode();
         hashCode = (hashCode * 397) ^ CreatedTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LastUpdatedTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LastUsedTime.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 11
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset.to)
            {
                hashcode = (hashcode * 397) + To.GetHashCode();
            }
            if (__isset.from_)
            {
                hashcode = (hashcode * 397) + From_.GetHashCode();
            }
            if (__isset.toChannel)
            {
                hashcode = (hashcode * 397) + ToChannel.GetHashCode();
            }
            if (__isset.fromChannel)
            {
                hashcode = (hashcode * 397) + FromChannel.GetHashCode();
            }
            if (__isset.eventType)
            {
                hashcode = (hashcode * 397) + EventType.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.operationRevision)
            {
                hashcode = (hashcode * 397) + OperationRevision.GetHashCode();
            }
            if (__isset.content)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Content);
            }
            if (__isset.push)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Push);
            }
        }
        return(hashcode);
    }
Ejemplo n.º 12
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.name)
            {
                hashcode = (hashcode * 397) + Name.GetHashCode();
            }
            if (__isset.pictureStatus)
            {
                hashcode = (hashcode * 397) + PictureStatus.GetHashCode();
            }
            if (__isset.preventedJoinByTicket)
            {
                hashcode = (hashcode * 397) + PreventedJoinByTicket.GetHashCode();
            }
            if (__isset.groupPreference)
            {
                hashcode = (hashcode * 397) + GroupPreference.GetHashCode();
            }
            if (__isset.members)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Members);
            }
            if (__isset.creator)
            {
                hashcode = (hashcode * 397) + Creator.GetHashCode();
            }
            if (__isset.invitee)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Invitee);
            }
            if (__isset.notificationDisabled)
            {
                hashcode = (hashcode * 397) + NotificationDisabled.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 13
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.revision)
            {
                hashcode = (hashcode * 397) + Revision.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.type)
            {
                hashcode = (hashcode * 397) + Type.GetHashCode();
            }
            if (__isset.reqSeq)
            {
                hashcode = (hashcode * 397) + ReqSeq.GetHashCode();
            }
            if (__isset.checksum)
            {
                hashcode = (hashcode * 397) + Checksum.GetHashCode();
            }
            if (__isset.status)
            {
                hashcode = (hashcode * 397) + Status.GetHashCode();
            }
            if (__isset.param1)
            {
                hashcode = (hashcode * 397) + Param1.GetHashCode();
            }
            if (__isset.param2)
            {
                hashcode = (hashcode * 397) + Param2.GetHashCode();
            }
            if (__isset.param3)
            {
                hashcode = (hashcode * 397) + Param3.GetHashCode();
            }
            if (__isset.message)
            {
                hashcode = (hashcode * 397) + Message.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 14
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset._from)
            {
                hashcode = (hashcode * 397) + _from.GetHashCode();
            }
            if (__isset.to)
            {
                hashcode = (hashcode * 397) + To.GetHashCode();
            }
            if (__isset.fromChannel)
            {
                hashcode = (hashcode * 397) + FromChannel.GetHashCode();
            }
            if (__isset.toChannel)
            {
                hashcode = (hashcode * 397) + ToChannel.GetHashCode();
            }
            if (__isset.revision)
            {
                hashcode = (hashcode * 397) + Revision.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.content)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Content);
            }
        }
        return(hashcode);
    }
Ejemplo n.º 15
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.index)
            {
                hashcode = (hashcode * 397) + Index.GetHashCode();
            }
            if (__isset.forceUpdate)
            {
                hashcode = (hashcode * 397) + ForceUpdate.GetHashCode();
            }
            if (__isset.title)
            {
                hashcode = (hashcode * 397) + Title.GetHashCode();
            }
            if (__isset.text)
            {
                hashcode = (hashcode * 397) + Text.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.pictureUrl)
            {
                hashcode = (hashcode * 397) + PictureUrl.GetHashCode();
            }
            if (__isset.thumbnailUrl)
            {
                hashcode = (hashcode * 397) + ThumbnailUrl.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 16
0
 /// <summary>
 ///     用作特定类型的哈希函数。
 /// </summary>
 /// <returns>
 ///     当前 <see cref="T:System.Object" /> 的哈希代码。
 /// </returns>
 public override int GetHashCode()
 {
     return(CodeUtils.GetHashCode(CreatedTime.GetHashCode(), Id.GetHashCode()));
 }
Ejemplo n.º 17
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset._from)
            {
                hashcode = (hashcode * 397) + _from.GetHashCode();
            }
            if (__isset.to)
            {
                hashcode = (hashcode * 397) + To.GetHashCode();
            }
            if (__isset.toType)
            {
                hashcode = (hashcode * 397) + ToType.GetHashCode();
            }
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.deliveredTime)
            {
                hashcode = (hashcode * 397) + DeliveredTime.GetHashCode();
            }
            if (__isset.text)
            {
                hashcode = (hashcode * 397) + Text.GetHashCode();
            }
            if (__isset.location)
            {
                hashcode = (hashcode * 397) + Location.GetHashCode();
            }
            if (__isset.hasContent)
            {
                hashcode = (hashcode * 397) + HasContent.GetHashCode();
            }
            if (__isset.contentType)
            {
                hashcode = (hashcode * 397) + ContentType.GetHashCode();
            }
            if (__isset.contentPreview)
            {
                hashcode = (hashcode * 397) + ContentPreview.GetHashCode();
            }
            if (__isset.contentMetadata)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(ContentMetadata);
            }
            if (__isset.sessionId)
            {
                hashcode = (hashcode * 397) + SessionId.GetHashCode();
            }
            if (__isset.chunks)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Chunks);
            }
            if (__isset.relatedMessageId)
            {
                hashcode = (hashcode * 397) + RelatedMessageId.GetHashCode();
            }
            if (__isset.messageRelationType)
            {
                hashcode = (hashcode * 397) + MessageRelationType.GetHashCode();
            }
            if (__isset.readCount)
            {
                hashcode = (hashcode * 397) + ReadCount.GetHashCode();
            }
            if (__isset.relatedMessageServiceCode)
            {
                hashcode = (hashcode * 397) + RelatedMessageServiceCode.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 18
0
 /// <summary>
 /// 用作特定类型的哈希函数。
 /// </summary>
 /// <returns>
 /// 当前 <see cref="T:System.Object"/> 的哈希代码。
 /// </returns>
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^ CreatedTime.GetHashCode());
 }
Ejemplo n.º 19
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.type)
            {
                hashcode = (hashcode * 397) + Type.GetHashCode();
            }
            if (__isset.status)
            {
                hashcode = (hashcode * 397) + Status.GetHashCode();
            }
            if (__isset.relation)
            {
                hashcode = (hashcode * 397) + Relation.GetHashCode();
            }
            if (__isset.displayName)
            {
                hashcode = (hashcode * 397) + DisplayName.GetHashCode();
            }
            if (__isset.phoneticName)
            {
                hashcode = (hashcode * 397) + PhoneticName.GetHashCode();
            }
            if (__isset.pictureStatus)
            {
                hashcode = (hashcode * 397) + PictureStatus.GetHashCode();
            }
            if (__isset.thumbnailUrl)
            {
                hashcode = (hashcode * 397) + ThumbnailUrl.GetHashCode();
            }
            if (__isset.statusMessage)
            {
                hashcode = (hashcode * 397) + StatusMessage.GetHashCode();
            }
            if (__isset.displayNameOverridden)
            {
                hashcode = (hashcode * 397) + DisplayNameOverridden.GetHashCode();
            }
            if (__isset.favoriteTime)
            {
                hashcode = (hashcode * 397) + FavoriteTime.GetHashCode();
            }
            if (__isset.capableVoiceCall)
            {
                hashcode = (hashcode * 397) + CapableVoiceCall.GetHashCode();
            }
            if (__isset.capableVideoCall)
            {
                hashcode = (hashcode * 397) + CapableVideoCall.GetHashCode();
            }
            if (__isset.capableMyhome)
            {
                hashcode = (hashcode * 397) + CapableMyhome.GetHashCode();
            }
            if (__isset.capableBuddy)
            {
                hashcode = (hashcode * 397) + CapableBuddy.GetHashCode();
            }
            if (__isset.attributes)
            {
                hashcode = (hashcode * 397) + Attributes.GetHashCode();
            }
            if (__isset.settings)
            {
                hashcode = (hashcode * 397) + Settings.GetHashCode();
            }
            if (__isset.picturePath)
            {
                hashcode = (hashcode * 397) + PicturePath.GetHashCode();
            }
            if (__isset.recommendParams)
            {
                hashcode = (hashcode * 397) + RecommendParams.GetHashCode();
            }
            if (__isset.friendRequestStatus)
            {
                hashcode = (hashcode * 397) + FriendRequestStatus.GetHashCode();
            }
            if (__isset.musicProfile)
            {
                hashcode = (hashcode * 397) + MusicProfile.GetHashCode();
            }
            if (__isset.videoProfile)
            {
                hashcode = (hashcode * 397) + VideoProfile.GetHashCode();
            }
        }
        return(hashcode);
    }