Пример #1
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);
    }
Пример #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("Group(");
        bool __first = true;

        if (Id != null && __isset.id)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Id: ");
            Id.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (Name != null && __isset.name)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Name: ");
            Name.ToString(sb);
        }
        if (PictureStatus != null && __isset.pictureStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PictureStatus: ");
            PictureStatus.ToString(sb);
        }
        if (__isset.preventedJoinByTicket)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PreventedJoinByTicket: ");
            PreventedJoinByTicket.ToString(sb);
        }
        if (GroupPreference != null && __isset.groupPreference)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("GroupPreference: ");
            GroupPreference.ToString(sb);
        }
        if (Members != null && __isset.members)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Members: ");
            Members.ToString(sb);
        }
        if (Creator != null && __isset.creator)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Creator: ");
            Creator.ToString(sb);
        }
        if (Invitee != null && __isset.invitee)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Invitee: ");
            Invitee.ToString(sb);
        }
        if (__isset.notificationDisabled)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("NotificationDisabled: ");
            NotificationDisabled.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }