/// <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 (AccountId != null)
         {
             hashCode = hashCode * 59 + AccountId.GetHashCode();
         }
         if (AuthorisedEntity != null)
         {
             hashCode = hashCode * 59 + AuthorisedEntity.GetHashCode();
         }
         if (LastDebitDateTime != null)
         {
             hashCode = hashCode * 59 + LastDebitDateTime.GetHashCode();
         }
         if (LastDebitAmount != null)
         {
             hashCode = hashCode * 59 + LastDebitAmount.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #2
0
파일: Login.cs 프로젝트: sybrenw/l2-lattice
        public override int GetHashCode()
        {
            int hash = 1;

            if (Server != 0)
            {
                hash ^= Server.GetHashCode();
            }
            if (AccountId != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (LoginAuthKey != 0)
            {
                hash ^= LoginAuthKey.GetHashCode();
            }
            if (GameAuthKey != 0)
            {
                hash ^= GameAuthKey.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #3
0
파일: Api.cs 프로젝트: linxscc/LoveGame
        public override int GetHashCode()
        {
            int hash = 1;

            if (AppId.Length != 0)
            {
                hash ^= AppId.GetHashCode();
            }
            if (AppKey.Length != 0)
            {
                hash ^= AppKey.GetHashCode();
            }
            if (AccountId.Length != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (Token.Length != 0)
            {
                hash ^= Token.GetHashCode();
            }
            if (GameType != 0)
            {
                hash ^= GameType.GetHashCode();
            }
            return(hash);
        }
예제 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AccountId.Length != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Mobilephone.Length != 0)
            {
                hash ^= Mobilephone.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (Sex != 0)
            {
                hash ^= Sex.GetHashCode();
            }
            if (Pwd.Length != 0)
            {
                hash ^= Pwd.GetHashCode();
            }
            return(hash);
        }
예제 #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = LearnerUln.GetHashCode();
         hashCode = (hashCode * 397) ^ (PriceEpisodeIdentifierForComparison != null ? PriceEpisodeIdentifierForComparison.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Ukprn.GetHashCode();
         hashCode = (hashCode * 397) ^ ContractType;
         hashCode = (hashCode * 397) ^ TransactionType;
         hashCode = (hashCode * 397) ^ SfaContributionPercentageToCompare.GetHashCode();
         hashCode = (hashCode * 397) ^ AmountToCompare.GetHashCode();
         hashCode = (hashCode * 397) ^ CollectionPeriod;
         hashCode = (hashCode * 397) ^ AcademicYear;
         hashCode = (hashCode * 397) ^ DeliveryPeriod;
         hashCode = (hashCode * 397) ^ (LearnerReferenceNumber != null ? LearnerReferenceNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LearningAimReference != null ? LearningAimReference.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ProgrammeType.GetHashCode();
         hashCode = (hashCode * 397) ^ StandardCode.GetHashCode();
         hashCode = (hashCode * 397) ^ FrameworkCode.GetHashCode();
         hashCode = (hashCode * 397) ^ PathwayCode.GetHashCode();
         hashCode = (hashCode * 397) ^ (LearningAimFundingLineType != null ? LearningAimFundingLineType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AccountId.GetHashCode();
         return(hashCode);
     }
 }
예제 #6
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 (AccountId != null)
         {
             hashCode = hashCode * 59 + AccountId.GetHashCode();
         }
         if (BalanceUType != null)
         {
             hashCode = hashCode * 59 + BalanceUType.GetHashCode();
         }
         if (Deposit != null)
         {
             hashCode = hashCode * 59 + Deposit.GetHashCode();
         }
         if (Lending != null)
         {
             hashCode = hashCode * 59 + Lending.GetHashCode();
         }
         if (Purses != null)
         {
             hashCode = hashCode * 59 + Purses.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AccountId.Length != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (AccountType != 0)
            {
                hash ^= AccountType.GetHashCode();
            }
            if (AccountActivityType != 0)
            {
                hash ^= AccountActivityType.GetHashCode();
            }
            if (Otherdata.Length != 0)
            {
                hash ^= Otherdata.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return((AccountId.GetHashCode() * 397) ^ SecondaryId.GetHashCode());
     }
 }
예제 #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (accountId_ != null)
            {
                hash ^= AccountId.GetHashCode();
            }
            hash ^= attribute_.GetHashCode();
            hash ^= role_.GetHashCode();
            if (Privileges != 0UL)
            {
                hash ^= Privileges.GetHashCode();
            }
            if (AttributesEpoch != 0UL)
            {
                hash ^= AttributesEpoch.GetHashCode();
            }
            if (FullName.Length != 0)
            {
                hash ^= FullName.GetHashCode();
            }
            if (BattleTag.Length != 0)
            {
                hash ^= BattleTag.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return((AccountId.GetHashCode() * 397) ^ (Message != null ? Message.GetHashCode() : 0));
     }
 }
예제 #11
0
        public override int GetHashCode()
        {
            int hashType      = Type == null ? 0 : Type.GetHashCode();
            int hashBankCode  = BankCode.GetHashCode();
            int hashAccountId = AccountId.GetHashCode();

            return(hashType ^ hashBankCode ^ hashAccountId);
        }
예제 #12
0
 public override int GetHashCode()
 {
     return
         (AccountId == null
             ? ResourceName.GetHashCode()
             : AccountId.GetHashCode() ^
          ResourceName.TypeName.GetHashCode());
 }
예제 #13
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked             // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + ContactId.GetHashCode();

                if (GivenName != null)
                {
                    hash = hash * 59 + GivenName.GetHashCode();
                }

                if (Surname != null)
                {
                    hash = hash * 59 + Surname.GetHashCode();
                }

                hash = hash * 59 + Active.GetHashCode();

                if (Initials != null)
                {
                    hash = hash * 59 + Initials.GetHashCode();
                }

                if (Email != null)
                {
                    hash = hash * 59 + Email.GetHashCode();
                }

                if (SmUserId != null)
                {
                    hash = hash * 59 + SmUserId.GetHashCode();
                }

                if (AccountId != null)
                {
                    hash = hash * 59 + AccountId.GetHashCode();
                }

                if (UserType != null)
                {
                    hash = hash * 59 + UserType.GetHashCode();
                }

                if (UserRoles != null)
                {
                    hash = hash * 59 + UserRoles.GetHashCode();
                }


                return(hash);
            }
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AccountId.GetHashCode();
         hashCode = (hashCode * 397) ^ SecondaryId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Message != null ? Message.GetHashCode() : 0);
         return(hashCode);
     }
 }
예제 #15
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PartitionId.GetHashCode();
         hashCode = (hashCode * 397) ^ AccountId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Message != null ? Message.GetHashCode() : 0);
         return(hashCode);
     }
 }
예제 #16
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AccountId != 0UL)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (PlayerId != 0UL)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (Diamonds != 0)
            {
                hash ^= Diamonds.GetHashCode();
            }
            if (OldLevel != 0)
            {
                hash ^= OldLevel.GetHashCode();
            }
            if (OldExp != 0)
            {
                hash ^= OldExp.GetHashCode();
            }
            if (AddedExp != 0)
            {
                hash ^= AddedExp.GetHashCode();
            }
            if (Hp != 0)
            {
                hash ^= Hp.GetHashCode();
            }
            if (Mp != 0)
            {
                hash ^= Mp.GetHashCode();
            }
            if (Food != 0)
            {
                hash ^= Food.GetHashCode();
            }
            if (Gold != 0)
            {
                hash ^= Gold.GetHashCode();
            }
            hash ^= cards_.GetHashCode();
            hash ^= cardTemps_.GetHashCode();
            hash ^= items_.GetHashCode();
            hash ^= itemTemps_.GetHashCode();
            hash ^= buffs_.GetHashCode();
            hash ^= buffTemps_.GetHashCode();
            hash ^= equips_.GetHashCode();
            hash ^= equipTemps_.GetHashCode();
            return(hash);
        }
예제 #17
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Primary != false)
            {
                hash ^= Primary.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Uid != 0L)
            {
                hash ^= Uid.GetHashCode();
            }
            if (Gid != 0L)
            {
                hash ^= Gid.GetHashCode();
            }
            if (HomeDirectory.Length != 0)
            {
                hash ^= HomeDirectory.GetHashCode();
            }
            if (Shell.Length != 0)
            {
                hash ^= Shell.GetHashCode();
            }
            if (Gecos.Length != 0)
            {
                hash ^= Gecos.GetHashCode();
            }
            if (SystemId.Length != 0)
            {
                hash ^= SystemId.GetHashCode();
            }
            if (AccountId.Length != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (OperatingSystemType != global::Google.Cloud.OsLogin.Common.OperatingSystemType.Unspecified)
            {
                hash ^= OperatingSystemType.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <summary>
 /// Compute hash of this object based on his properties
 /// </summary>
 /// <returns>This object hashcode</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AccountId.GetHashCode();
         hashCode = (hashCode * 397) ^ (AccountName != null ? AccountName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ BadgeId.GetHashCode();
         hashCode = (hashCode * 397) ^ (BadgeDescription != null ? BadgeDescription.GetHashCode() : 0);
         return(hashCode);
     }
 }
예제 #19
0
 /// <summary>
 /// Compute hash of this object based on his properties
 /// </summary>
 /// <returns>This object hashcode</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AccountId.GetHashCode();
         hashCode = (hashCode * 397) ^ (AccountName != null ? AccountName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AccessType.GetHashCode();
         return(hashCode);
     }
 }
예제 #20
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TimeStamp != 0L)
            {
                hash ^= TimeStamp.GetHashCode();
            }
            if (HostName.Length != 0)
            {
                hash ^= HostName.GetHashCode();
            }
            if (ServiceType != 0)
            {
                hash ^= ServiceType.GetHashCode();
            }
            if (Developer != 0)
            {
                hash ^= Developer.GetHashCode();
            }
            if (ClientIp.Length != 0)
            {
                hash ^= ClientIp.GetHashCode();
            }
            if (Stack.Length != 0)
            {
                hash ^= Stack.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (Action.Length != 0)
            {
                hash ^= Action.GetHashCode();
            }
            if (AccountId.Length != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (ProjectId.Length != 0)
            {
                hash ^= ProjectId.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            hash ^= Extras.GetHashCode();
            return(hash);
        }
예제 #21
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AccountId != 0UL)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (PlayerId != 0UL)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (Reason != 0)
            {
                hash ^= Reason.GetHashCode();
            }
            if (Diamonds != 0)
            {
                hash ^= Diamonds.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Exp != 0)
            {
                hash ^= Exp.GetHashCode();
            }
            if (Hp != 0)
            {
                hash ^= Hp.GetHashCode();
            }
            if (Mp != 0)
            {
                hash ^= Mp.GetHashCode();
            }
            if (Food != 0)
            {
                hash ^= Food.GetHashCode();
            }
            if (Gold != 0)
            {
                hash ^= Gold.GetHashCode();
            }
            hash ^= cards_.GetHashCode();
            hash ^= items_.GetHashCode();
            hash ^= buffs_.GetHashCode();
            hash ^= equips_.GetHashCode();
            return(hash);
        }
예제 #22
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (accountId_ != null)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (gameAccountId_ != null)
            {
                hash ^= GameAccountId.GetHashCode();
            }
            return(hash);
        }
예제 #23
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AccountId.Length != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            return(hash);
        }
예제 #24
0
 /// <summary>
 /// Compute hash of this object based on his properties
 /// </summary>
 /// <returns>This object hashcode</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AccountId.GetHashCode();
         hashCode = (hashCode * 397) ^ (AccountName != null ? AccountName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PlanType.GetHashCode();
         hashCode = (hashCode * 397) ^ PlannedMoney.GetHashCode();
         hashCode = (hashCode * 397) ^ PlannedTypeId.GetHashCode();
         hashCode = (hashCode * 397) ^ (PlannedTypeName != null ? PlannedTypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Deadline.GetHashCode();
         hashCode = (hashCode * 397) ^ IsCompleted.GetHashCode();
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hashCode = -1939833591;

            if (AccountId != null)
            {
                hashCode += AccountId.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            return(hashCode);
        }
예제 #26
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ret != 0)
            {
                hash ^= Ret.GetHashCode();
            }
            if (AccountId.Length != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (ChannelAccountId.Length != 0)
            {
                hash ^= ChannelAccountId.GetHashCode();
            }
            if (Channel.Length != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (ChannelInfo.Length != 0)
            {
                hash ^= ChannelInfo.GetHashCode();
            }
            if (TimeStamp != 0L)
            {
                hash ^= TimeStamp.GetHashCode();
            }
            hash ^= users_.GetHashCode();
            if (Addication != 0)
            {
                hash ^= Addication.GetHashCode();
            }
            if (IsAdult != 0)
            {
                hash ^= IsAdult.GetHashCode();
            }
            if (Token.Length != 0)
            {
                hash ^= Token.GetHashCode();
            }
            if (PayLink.Length != 0)
            {
                hash ^= PayLink.GetHashCode();
            }
            return(hash);
        }
예제 #27
0
 /// <summary>
 /// Compute hash of this object based on his properties
 /// </summary>
 /// <returns>This object hashcode</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsIncome.GetHashCode();
         hashCode = (hashCode * 397) ^ Money.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AccountId.GetHashCode();
         hashCode = (hashCode * 397) ^ (AccountName != null ? AccountName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ TypeId.GetHashCode();
         hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Periodicity;
         hashCode = (hashCode * 397) ^ PeriodicMultiplicity;
         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 (AccountId != null)
         {
             hashCode = hashCode * 59 + AccountId.GetHashCode();
         }
         if (BillingAgreementId != null)
         {
             hashCode = hashCode * 59 + BillingAgreementId.GetHashCode();
         }
         if (CompanyName != null)
         {
             hashCode = hashCode * 59 + CompanyName.GetHashCode();
         }
         if (CountryCode != null)
         {
             hashCode = hashCode * 59 + CountryCode.GetHashCode();
         }
         if (CustomerAccountStatus != null)
         {
             hashCode = hashCode * 59 + CustomerAccountStatus.GetHashCode();
         }
         if (CustomerAddressStatus != null)
         {
             hashCode = hashCode * 59 + CustomerAddressStatus.GetHashCode();
         }
         if (FirstName != null)
         {
             hashCode = hashCode * 59 + FirstName.GetHashCode();
         }
         if (PayerId != null)
         {
             hashCode = hashCode * 59 + PayerId.GetHashCode();
         }
         if (Surname != null)
         {
             hashCode = hashCode * 59 + Surname.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #29
0
파일: Login.cs 프로젝트: sybrenw/l2-lattice
        public override int GetHashCode()
        {
            int hash = 1;

            if (AccountId != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #30
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasAccountId)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (HasUniqueId)
            {
                hash ^= UniqueId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }