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

        unchecked {
            if (__isset.year)
            {
                hashcode = (hashcode * 397) + Year.GetHashCode();
            }
            if (__isset.yearPrivacyLevelType)
            {
                hashcode = (hashcode * 397) + YearPrivacyLevelType.GetHashCode();
            }
            if (__isset.yearEnabled)
            {
                hashcode = (hashcode * 397) + YearEnabled.GetHashCode();
            }
            if (__isset.day)
            {
                hashcode = (hashcode * 397) + Day.GetHashCode();
            }
            if (__isset.dayPrivacyLevelType)
            {
                hashcode = (hashcode * 397) + DayPrivacyLevelType.GetHashCode();
            }
            if (__isset.dayEnabled)
            {
                hashcode = (hashcode * 397) + DayEnabled.GetHashCode();
            }
        }
        return(hashcode);
    }
Example #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("ExtendedProfileBirthday(");
        bool __first = true;

        if (Year != null && __isset.year)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Year: ");
            Year.ToString(sb);
        }
        if (__isset.yearPrivacyLevelType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("YearPrivacyLevelType: ");
            YearPrivacyLevelType.ToString(sb);
        }
        if (__isset.yearEnabled)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("YearEnabled: ");
            YearEnabled.ToString(sb);
        }
        if (Day != null && __isset.day)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Day: ");
            Day.ToString(sb);
        }
        if (__isset.dayPrivacyLevelType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DayPrivacyLevelType: ");
            DayPrivacyLevelType.ToString(sb);
        }
        if (__isset.dayEnabled)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DayEnabled: ");
            DayEnabled.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }