-
Notifications
You must be signed in to change notification settings - Fork 0
/
mwPost.cs
66 lines (51 loc) · 1.77 KB
/
mwPost.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// PostXING.MetaWeblogProxy.mwPost
using System;
using CookComputing.XmlRpc;
[XmlRpcMissingMapping(MappingAction.Ignore)]
public struct mwPost {
[XmlRpcMember(Description = "Required when posting.")]
[XmlRpcMissingMapping(MappingAction.Error)]
public DateTime dateCreated;
[XmlRpcMember(Description = "Required when posting.")]
[XmlRpcMissingMapping(MappingAction.Error)]
public string description;
[XmlRpcMember(Description = "Required when posting.")]
[XmlRpcMissingMapping(MappingAction.Error)]
public string title;
[XmlRpcMember]
[XmlRpcMissingMapping(MappingAction.Ignore)]
public string[] categories;
[XmlRpcMember]
[XmlRpcMissingMapping(MappingAction.Ignore)]
public mwEnclosure enclosure;
[XmlRpcMissingMapping(MappingAction.Ignore)]
[XmlRpcMember]
public string link;
[XmlRpcMember]
[XmlRpcMissingMapping(MappingAction.Ignore)]
public string permalink;
[XmlRpcMissingMapping(MappingAction.Ignore)]
[XmlRpcMember(Description = "Not required when posting. Depending on server may be either string or integer. Use Convert.ToInt32(postid) to treat as integer or Convert.ToString(postid) to treat as string")]
public string postid;
[XmlRpcMember]
[XmlRpcMissingMapping(MappingAction.Ignore)]
public mwSource source;
[XmlRpcMember]
[XmlRpcMissingMapping(MappingAction.Ignore)]
public string userid;
[XmlRpcMissingMapping(MappingAction.Ignore)]
[XmlRpcMember]
public int mt_allow_comments;
[XmlRpcMember]
[XmlRpcMissingMapping(MappingAction.Ignore)]
public int mt_allow_pings;
[XmlRpcMember]
[XmlRpcMissingMapping(MappingAction.Ignore)]
public int mt_convert_breaks;
[XmlRpcMember]
[XmlRpcMissingMapping(MappingAction.Ignore)]
public string mt_text_more;
[XmlRpcMissingMapping(MappingAction.Ignore)]
[XmlRpcMember]
public string mt_excerpt;
}