Пример #1
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("AFActivity(");
            bool          __first = true;

            if (Id != null && __isset.id)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Id: ");
                __sb.Append(Id);
            }
            if (Content != null && __isset.content)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Content: ");
                __sb.Append(Content.ToDebugString());
            }
            if (ContentType != null && __isset.contentType)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ContentType: ");
                __sb.Append(ContentType);
            }
            if (Reactions != null && __isset.reactions)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Reactions: ");
                __sb.Append(Reactions == null ? "<null>" : Reactions.ToString());
            }
            if (Properties != null && __isset.properties)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Properties: ");
                __sb.Append(Properties.ToDebugString());
            }
            if (Author != null && __isset.author)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Author: ");
                __sb.Append(Author == null ? "<null>" : Author.ToString());
            }
            if (__isset.createdAt)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("CreatedAt: ");
                __sb.Append(CreatedAt);
            }
            if (__isset.isAnnouncement)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsAnnouncement: ");
                __sb.Append(IsAnnouncement);
            }
            if (Mentions != null && __isset.mentions)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Mentions: ");
                __sb.Append(Mentions.ToDebugString());
            }
            if (Source != null && __isset.source)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Source: ");
                __sb.Append(Source);
            }
            if (Status != null && __isset.status)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Status: ");
                __sb.Append(Status);
            }
            if (__isset.statusUpdatedAt)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("StatusUpdatedAt: ");
                __sb.Append(StatusUpdatedAt);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
Пример #2
0
 public override string ToString()
 {
     return($"Id: {Id}, Text: {Text}, Author: {Author}, MediaAttachments: {MediaAttachments.ToDebugString()}, Type: {Type}, Announcement: {Announcement}, CommentsCount: {CommentsCount}, ReactionsCount: {ReactionsCount.ToDebugString()}, MyReactions: {MyReactionsList.ToDebugString()},  ViewCount: {ViewCount}, Properties: {Properties.ToDebugString()}, CreatedAt: {CreatedAt}, Mentions: {Mentions.ToDebugString()}, Button: {Button}, Source: {Source}, Status: {Status}");
 }
        public override string ToString()
        {
#pragma warning disable 0618
            return(string.Format(
                       "Id: {0}, Text: {1}, HasText: {2}, ImageUrl: {3}, HasImage: {4}, CreatedAt: {5}, ButtonTitle: {6}, ButtonAction: {7}, Action: {8}, HasButton: {9}, Author: {10}, CommentsCount: {11}, LikesCount: {12}, IsLikedByMe: {13}, StickyStart: {14}, StickyEnd: {15}, FeedId: {16}, Mentions: {17}",
                       Id, Text, HasText, ImageUrl, HasImage, CreatedAt, ButtonTitle, ButtonAction, Action, HasButton, Author,
                       CommentsCount, LikesCount, IsLikedByMe, StickyStart, StickyEnd, FeedId, Mentions.ToDebugString()));

#pragma warning restore 0618
        }