1: /// <summary>
2: /// Represents a post that is sent or received by a MetaWeblog service.
3: /// </summary>
4: [Serializable]
5: [SuppressMessage("Microsoft.Design", "CA1035", 6: Justification = "Supports XML-RPC.NET")]
7: [SuppressMessage("Microsoft.Naming", "CA1710", 8: Justification = "Supports XML-RPC.NET")]
9: [SuppressMessage("Microsoft.Usage", "CA2229", 10: Justification = "Supports XML-RPC.NET")]
11: public class Post : XmlRpcStruct { 12: /// <summary>
13: /// The name of the <see cref="AllowComments"/> field.
14: /// </summary>
15: public const string AllowCommentsName = "mt_allow_comments";
16:
17: /// <summary>
18: /// The name of the <see cref="AllowPings"/> field.
19: /// </summary>
20: public const string AllowPingsName = "mt_allow_pings";
21:
22: /// <summary>
23: /// The name of the <see cref="Author"/> field.
24: /// </summary>
25: public const string AuthorName = "author";
26:
27: /// <summary>
28: /// The name of the <see cref="BaseName"/> field.
29: /// </summary>
30: public const string BaseNameName = "mt_base_name";
31:
32: /// <summary>
33: /// The name of the <see cref="Body"/> field.
34: /// </summary>
35: public const string BodyName = "mt_text_more";
36:
37: /// <summary>
38: /// The name of the <see cref="Categories"/> field.
39: /// </summary>
40: public const string CategoriesName = "categories";
41:
42: /// <summary>
43: /// The name of the <see cref="Comments"/> field.
44: /// </summary>
45: public const string CommentsName = "comments";
46:
47: /// <summary>
48: /// The name of the <see cref="DateCreated"/> field.
49: /// </summary>
50: public const string DateCreatedName = "dateCreated";
51:
52: /// <summary>
53: /// The name of the <see cref="Description"/> field.
54: /// </summary>
55: public const string DescriptionName = "description";
56:
57: /// <summary>
58: /// The name of the <see cref="Enclosure"/> field.
59: /// </summary>
60: public const string EnclosureName = "enclosure";
61:
62: /// <summary>
63: /// The name of the <see cref="Excerpt"/> field.
64: /// </summary>
65: public const string ExcerptName = "excerpt";
66:
67: /// <summary>
68: /// The name of the <see cref="Guid"/> field.
69: /// </summary>
70: public const string GuidName = "guid";
71:
72: /// <summary>
73: /// The name of the <see cref="Keywords"/> field.
74: /// </summary>
75: public const string KeywordsName = "keywords";
76:
77: /// <summary>
78: /// The name of the <see cref="Link"/> field.
79: /// </summary>
80: public const string LinkName = "link";
81:
82: /// <summary>
83: /// The name of the <see cref="Password"/> field.
84: /// </summary>
85: public const string PasswordName = "password";
86:
87: /// <summary>
88: /// The name of the <see cref="PublicationDate"/> field.
89: /// </summary>
90: public const string PublicationDateName = "publicationDate";
91:
92: /// <summary>
93: /// The name of the <see cref="Publish"/> field.
94: /// </summary>
95: public const string PublishName = "publish";
96:
97: /// <summary>
98: /// The name of the <see cref="Slug"/> field.
99: /// </summary>
100: public const string SlugName = "wp_slug";
101:
102: /// <summary>
103: /// The name of the <see cref="Source"/> field.
104: /// </summary>
105: public const string SourceName = "source";
106:
107: /// <summary>
108: /// The name of the <see cref="Title"/> field.
109: /// </summary>
110: public const string TitleName = "title";
111:
112: /// <summary>
113: /// The name of the <see cref="TrackbackPingUrls"/> field.
114: /// </summary>
115: public const string TrackbackPingUrlsName = "mt_tb_ping_urls";
116:
117: /// <summary>
118: /// The name of the <see cref="WPAuthor"/> field.
119: /// </summary>
120: public const string WPAuthorName = "wp_author";
121:
122: /// <summary>
123: /// Gets or sets whether comments are allowed for the post.
124: /// </summary>
125: /// <remarks>
126: /// <para>
127: /// This field corresponds to the <c>mt_allow_comments</c> field
128: /// of the post structure.
129: /// </para>
130: /// <para>
131: /// <list>
132: /// <listheader>
133: /// <term>Value</term>
134: /// <description>Description</description>
135: /// </listheader>
136: /// <item>
137: /// <term>0</term>
138: /// <description>No comments are allowed.</description>
139: /// </item>
140: /// <item>
141: /// <term>1</term>