public override int GetHashCode()
        {
            var hashCode = Cause.GetHashCode();

            hashCode = (hashCode * 397) ^ Effect.GetHashCode();
            hashCode = (hashCode * 397) ^ HeaderText.GetHashCode();
            hashCode = (hashCode * 397) ^ DescriptionText.GetHashCode();
            hashCode = (hashCode * 397) ^ Url.GetHashCode();

            return(hashCode);
        }
示例#2
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);
    }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Priority != 0)
            {
                hash ^= Priority.GetHashCode();
            }
            if (SubcategoryId.Length != 0)
            {
                hash ^= SubcategoryId.GetHashCode();
            }
            if (IconPath.Length != 0)
            {
                hash ^= IconPath.GetHashCode();
            }
            if (ShowQuantityBanner != false)
            {
                hash ^= ShowQuantityBanner.GetHashCode();
            }
            if (QuantityOverride.Length != 0)
            {
                hash ^= QuantityOverride.GetHashCode();
            }
            if (PrefabPath.Length != 0)
            {
                hash ^= PrefabPath.GetHashCode();
            }
            if (MarketingText.Length != 0)
            {
                hash ^= MarketingText.GetHashCode();
            }
            if (DescriptionText.Length != 0)
            {
                hash ^= DescriptionText.GetHashCode();
            }
            if (ShowBadge != false)
            {
                hash ^= ShowBadge.GetHashCode();
            }
            if (BonusValue != 0)
            {
                hash ^= BonusValue.GetHashCode();
            }
            if (RarityId.Length != 0)
            {
                hash ^= RarityId.GetHashCode();
            }
            if (PackSize != 0)
            {
                hash ^= PackSize.GetHashCode();
            }
            if (ShowInHud != false)
            {
                hash ^= ShowInHud.GetHashCode();
            }
            if (HudPriority != 0)
            {
                hash ^= HudPriority.GetHashCode();
            }
            if (HudIconPath.Length != 0)
            {
                hash ^= HudIconPath.GetHashCode();
            }
            if (Icon2Path.Length != 0)
            {
                hash ^= Icon2Path.GetHashCode();
            }
            if (PopupImageOverride.Length != 0)
            {
                hash ^= PopupImageOverride.GetHashCode();
            }
            if (HidePackOnSoldOut != false)
            {
                hash ^= HidePackOnSoldOut.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }