-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjira_xs.h
More file actions
139 lines (121 loc) · 3.65 KB
/
Copy pathjira_xs.h
File metadata and controls
139 lines (121 loc) · 3.65 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#ifndef JIRA_XS_H
#define JIRA_XS_H
BEGIN_EASYSOAP_NAMESPACE
template<>
class SOAPTypeTraits<JIRA::RemoteWorklog>
{
public:
static void GetType(SOAPQName& qname)
{
qname.Set("RemoteWorklog", "tns1:RemoteWorklog");
}
static SOAPParameter& Serialize(SOAPParameter& p, const JIRA::RemoteWorklog& v)
{
if(v.author.length() > 0)
{
p.AddParameter("author") << v.author;
}
else
{
p.AddParameter("author").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.comment.length() > 0)
{
p.AddParameter("comment") << v.comment;
}
else
{
p.AddParameter("comment").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.created.length() > 0)
{
(p.AddParameter("created") << v.created).SetType("dateTime", XMLSchema2001::xsd);
}
else
{
p.AddParameter("created").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.groupLevel.length() > 0)
{
p.AddParameter("groupLevel") << v.groupLevel;
}
else
{
p.AddParameter("groupLevel").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.id.length() > 0)
{
p.AddParameter("id") << v.id;
}
else
{
p.AddParameter("id").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.roleLevelId.length() > 0)
{
p.AddParameter("roleLevelId") << v.roleLevelId;
}
else
{
p.AddParameter("roleLevelId").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.startDate.length() > 0)
{
(p.AddParameter("startDate") << v.startDate).SetType("dateTime", XMLSchema2001::xsd);
}
else
{
p.AddParameter("startDate").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.timeSpent.length() > 0)
{
p.AddParameter("timeSpent") << v.timeSpent;
}
else
{
p.AddParameter("timeSpent").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.timeSpentInSeconds > 0)
{
p.AddParameter("timeSpentInSeconds") << v.timeSpentInSeconds;
}
else
{
p.AddParameter("timeSpentInSeconds").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.updateAuthor.length() > 0)
{
p.AddParameter("updateAuthor") << v.updateAuthor;
}
else
{
p.AddParameter("updateAuthor").AddAttribute(XMLSchema2001::nil) = "true";
}
if(v.updated.length() > 0)
{
(p.AddParameter("updated") << v.updated).SetType("dateTime", XMLSchema2001::xsd);
}
else
{
p.AddParameter("updated").AddAttribute(XMLSchema2001::nil) = "true";
}
return p;
}
static const SOAPParameter& Deserialize(const SOAPParameter& p, JIRA::RemoteWorklog& v)
{
p.GetParameter("author") >> v.author;
p.GetParameter("comment") >> v.comment;
p.GetParameter("created") >> v.created;
p.GetParameter("groupLevel") >> v.groupLevel;
p.GetParameter("id") >> v.id;
p.GetParameter("roleLevelId") >> v.roleLevelId;
p.GetParameter("startDate") >> v.startDate;
p.GetParameter("timeSpent") >> v.timeSpent;
p.GetParameter("timeSpentInSeconds") >> v.timeSpentInSeconds;
p.GetParameter("updateAuthor") >> v.updateAuthor;
p.GetParameter("updated") >> v.updated;
return p;
}
};
END_EASYSOAP_NAMESPACE
#endif // JIRA_XS_H