コード例 #1
0
        public bool Equals(GroupUserBase input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     GroupId == input.GroupId ||
                     (GroupId.Equals(input.GroupId))
                     ) &&
                 (
                     DestinyUserInfo == input.DestinyUserInfo ||
                     (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo))
                 ) &&
                 (
                     BungieNetUserInfo == input.BungieNetUserInfo ||
                     (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo))
                 ) &&
                 (
                     JoinDate == input.JoinDate ||
                     (JoinDate != null && JoinDate.Equals(input.JoinDate))
                 ));
        }
コード例 #2
0
        public bool Equals(GroupPotentialMember input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PotentialStatus == input.PotentialStatus ||
                     (PotentialStatus != null && PotentialStatus.Equals(input.PotentialStatus))
                     ) &&
                 (
                     GroupId == input.GroupId ||
                     (GroupId.Equals(input.GroupId))
                 ) &&
                 (
                     DestinyUserInfo == input.DestinyUserInfo ||
                     (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo))
                 ) &&
                 (
                     BungieNetUserInfo == input.BungieNetUserInfo ||
                     (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo))
                 ) &&
                 (
                     JoinDate == input.JoinDate ||
                     (JoinDate != null && JoinDate.Equals(input.JoinDate))
                 ));
        }
コード例 #3
0
        public bool Equals(DestinyPlayer input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DestinyUserInfo == input.DestinyUserInfo ||
                     (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo))
                     ) &&
                 (
                     CharacterClass == input.CharacterClass ||
                     (CharacterClass != null && CharacterClass.Equals(input.CharacterClass))
                 ) &&
                 (
                     ClassHash == input.ClassHash ||
                     (ClassHash.Equals(input.ClassHash))
                 ) &&
                 (
                     RaceHash == input.RaceHash ||
                     (RaceHash.Equals(input.RaceHash))
                 ) &&
                 (
                     GenderHash == input.GenderHash ||
                     (GenderHash.Equals(input.GenderHash))
                 ) &&
                 (
                     CharacterLevel == input.CharacterLevel ||
                     (CharacterLevel.Equals(input.CharacterLevel))
                 ) &&
                 (
                     LightLevel == input.LightLevel ||
                     (LightLevel.Equals(input.LightLevel))
                 ) &&
                 (
                     BungieNetUserInfo == input.BungieNetUserInfo ||
                     (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo))
                 ) &&
                 (
                     ClanName == input.ClanName ||
                     (ClanName != null && ClanName.Equals(input.ClanName))
                 ) &&
                 (
                     ClanTag == input.ClanTag ||
                     (ClanTag != null && ClanTag.Equals(input.ClanTag))
                 ) &&
                 (
                     EmblemHash == input.EmblemHash ||
                     (EmblemHash.Equals(input.EmblemHash))
                 ));
        }
コード例 #4
0
        public bool Equals(GroupBan input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     GroupId == input.GroupId ||
                     (GroupId.Equals(input.GroupId))
                     ) &&
                 (
                     LastModifiedBy == input.LastModifiedBy ||
                     (LastModifiedBy != null && LastModifiedBy.Equals(input.LastModifiedBy))
                 ) &&
                 (
                     CreatedBy == input.CreatedBy ||
                     (CreatedBy != null && CreatedBy.Equals(input.CreatedBy))
                 ) &&
                 (
                     DateBanned == input.DateBanned ||
                     (DateBanned != null && DateBanned.Equals(input.DateBanned))
                 ) &&
                 (
                     DateExpires == input.DateExpires ||
                     (DateExpires != null && DateExpires.Equals(input.DateExpires))
                 ) &&
                 (
                     Comment == input.Comment ||
                     (Comment != null && Comment.Equals(input.Comment))
                 ) &&
                 (
                     BungieNetUserInfo == input.BungieNetUserInfo ||
                     (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo))
                 ) &&
                 (
                     DestinyUserInfo == input.DestinyUserInfo ||
                     (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo))
                 ));
        }
コード例 #5
0
ファイル: GroupMember.cs プロジェクト: joshhunt/GhostSharper
        public bool Equals(GroupMember input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     MemberType == input.MemberType ||
                     (MemberType != null && MemberType.Equals(input.MemberType))
                     ) &&
                 (
                     IsOnline == input.IsOnline ||
                     (IsOnline != null && IsOnline.Equals(input.IsOnline))
                 ) &&
                 (
                     LastOnlineStatusChange == input.LastOnlineStatusChange ||
                     (LastOnlineStatusChange.Equals(input.LastOnlineStatusChange))
                 ) &&
                 (
                     GroupId == input.GroupId ||
                     (GroupId.Equals(input.GroupId))
                 ) &&
                 (
                     DestinyUserInfo == input.DestinyUserInfo ||
                     (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo))
                 ) &&
                 (
                     BungieNetUserInfo == input.BungieNetUserInfo ||
                     (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo))
                 ) &&
                 (
                     JoinDate == input.JoinDate ||
                     (JoinDate != null && JoinDate.Equals(input.JoinDate))
                 ));
        }
コード例 #6
0
        public bool Equals(FireteamMember input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DestinyUserInfo == input.DestinyUserInfo ||
                     (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo))
                     ) &&
                 (
                     BungieNetUserInfo == input.BungieNetUserInfo ||
                     (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo))
                 ) &&
                 (
                     CharacterId == input.CharacterId ||
                     (CharacterId.Equals(input.CharacterId))
                 ) &&
                 (
                     DateJoined == input.DateJoined ||
                     (DateJoined != null && DateJoined.Equals(input.DateJoined))
                 ) &&
                 (
                     HasMicrophone == input.HasMicrophone ||
                     (HasMicrophone != null && HasMicrophone.Equals(input.HasMicrophone))
                 ) &&
                 (
                     LastPlatformInviteAttemptDate == input.LastPlatformInviteAttemptDate ||
                     (LastPlatformInviteAttemptDate != null && LastPlatformInviteAttemptDate.Equals(input.LastPlatformInviteAttemptDate))
                 ) &&
                 (
                     LastPlatformInviteAttemptResult == input.LastPlatformInviteAttemptResult ||
                     (LastPlatformInviteAttemptResult != null && LastPlatformInviteAttemptResult.Equals(input.LastPlatformInviteAttemptResult))
                 ));
        }