예제 #1
0
        public string BaseToStringWithNoVote()
        {
            var sb = new StringBuilder();

            sb.Append((IsForwarded ? "//@" + OwnerName + ":" : "") + (Content != null ? Content.BaseToString() : ""));
            if (Video != null)
            {
                sb.AppendLine();
                sb.AppendLine("[]> 发布了视频:");
                sb.Append(Video.BaseToString());
            }
            if (Article != null)
            {
                sb.AppendLine();
                sb.AppendLine("[]> 发布了专栏:");
                sb.Append(Article.ToString());
            }
            if (Audio != null)
            {
                sb.AppendLine();
                sb.AppendLine("[]> 发布了音频:");
                sb.Append(Audio.BaseToString());
            }
            return(sb.ToString());
        }