コード例 #1
0
 public string ToPrettyString()
 {
     return("Conversation {" +
            ($"\n{nameof(Id)}: {Id}," +
             $"\n{nameof(Subject)}: {Subject}," +
             $"\n{nameof(ReadState)}: {ReadState}," +
             $"\n{nameof(LastMessage)}: {LastMessage}," +
             $"\n{nameof(LastMessageAt)}: {LastMessageAt}," +
             $"\n{nameof(MessageCount)}: {MessageCount}," +
             $"\n{nameof(Subscribed)}: {Subscribed}," +
             $"\n{nameof(Private)}: {Private}," +
             $"\n{nameof(Starred)}: {Starred}," +
             $"\n{nameof(Properties)}: {Properties.ToPrettyString()}," +
             $"\n{nameof(Audience)}: {Audience.ToPrettyString()}," +
             $"\n{nameof(AudienceContexts)}: {AudienceContexts.ToPrettyString()}," +
             $"\n{nameof(AvatarUrl)}: {AvatarUrl}," +
             $"\n{nameof(Participants)}: {Participants.ToPrettyString()}," +
             $"\n{nameof(Visible)}: {Visible}," +
             $"\n{nameof(ContextName)}: {ContextName}").Indent(4) +
            "\n}");
 }