Ejemplo n.º 1
0
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(JsonHelper.BeginObject());
            builder.Append(JsonHelper.PropertyToJson("Id", Id));
            builder.Append(JsonHelper.PropertyToJson("Title", Title));
            builder.Append(JsonHelper.PropertyToJson("Description", Description));
            builder.Append(JsonHelper.PropertyToJson("BeginDate", BeginDate));
            builder.Append(JsonHelper.PropertyToJson("EndDate", EndDate));
            builder.Append(JsonHelper.PropertyToJson("HasChildren", HasChildren));
            builder.Append(JsonHelper.PropertyToJson("ParentId", ParentId));
            builder.Append(JsonHelper.PropertyToJson("SourceURL", SourceURL));
            builder.Append(JsonHelper.ArrayToJson("PictureURLs", PictureURLs, false));
            builder.Append(JsonHelper.PropertyToJson("SourceRef", SourceRef, true));
            builder.Append(JsonHelper.EndObject());
            return(builder.ToString());
        }