File: Contributions.cs

package info (click to toggle)
mono-tools 4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 13,868 kB
  • sloc: cs: 100,909; sh: 3,845; makefile: 2,040; xml: 126
file content (238 lines) | stat: -rw-r--r-- 10,257 bytes parent folder | download | duplicates (9)
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
// ------------------------------------------------------------------------------
//  <autogenerated>
//      This code was generated by a tool.
//      Mono Runtime Version: 1.1.4322.2032
// 
//      Changes to this file may cause incorrect behavior and will be lost if 
//      the code is regenerated.
//  </autogenerated>
// ------------------------------------------------------------------------------

// 
// This source code was auto-generated by Mono Web Services Description Language Utility
//


/// <remarks/>
/// <remarks>
///Web service for the MonoDoc contribution system
///</remarks>
[System.Web.Services.WebServiceBinding(Name="ContributionsSoap", Namespace="http://tempuri.org/")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public class Contributions : System.Web.Services.Protocols.SoapHttpClientProtocol {
    
    public Contributions() {
        this.Url = "http://www.go-mono.com/docs/server.asmx";
    }
    
    /// <remarks>
///Check the client/server version;  0 means that the server can consume your data
///</remarks>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CheckVersion", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
    public int CheckVersion(int version) {
        object[] results = this.Invoke("CheckVersion", new object[] {
            version});
        return ((int)(results[0]));
    }
    
    public System.IAsyncResult BeginCheckVersion(int version, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("CheckVersion", new object[] {
            version}, callback, asyncState);
    }
    
    public int EndCheckVersion(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((int)(results[0]));
    }
    
    /// <remarks>
///Requests a registration for a login
///</remarks>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Register", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
    public int Register(string login) {
        object[] results = this.Invoke("Register", new object[] {
            login});
        return ((int)(results[0]));
    }
    
    public System.IAsyncResult BeginRegister(string login, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("Register", new object[] {
            login}, callback, asyncState);
    }
    
    public int EndRegister(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((int)(results[0]));
    }
    
    /// <remarks>
///Returns the latest serial number used for a change on the server
///</remarks>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSerial", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
    public int GetSerial(string login, string password) {
        object[] results = this.Invoke("GetSerial", new object[] {
            login,
            password});
        return ((int)(results[0]));
    }
    
    public System.IAsyncResult BeginGetSerial(string login, string password, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("GetSerial", new object[] {
            login,
            password}, callback, asyncState);
    }
    
    public int EndGetSerial(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((int)(results[0]));
    }
    
    /// <remarks>
///Submits a GlobalChangeSet as a contribution
///</remarks>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Submit", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
    public int Submit(string login, string password, System.Xml.XmlNode node) {
        object[] results = this.Invoke("Submit", new object[] {
            login,
            password,
            node});
        return ((int)(results[0]));
    }
    
    public System.IAsyncResult BeginSubmit(string login, string password, System.Xml.XmlNode node, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("Submit", new object[] {
            login,
            password,
            node}, callback, asyncState);
    }
    
    public int EndSubmit(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((int)(results[0]));
    }
    
    /// <remarks>
///Obtains the list of pending contributions
///</remarks>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetPendingChanges", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
    public PendingChange[] GetPendingChanges(string login, string password) {
        object[] results = this.Invoke("GetPendingChanges", new object[] {
            login,
            password});
        return ((PendingChange[])(results[0]));
    }
    
    public System.IAsyncResult BeginGetPendingChanges(string login, string password, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("GetPendingChanges", new object[] {
            login,
            password}, callback, asyncState);
    }
    
    public PendingChange[] EndGetPendingChanges(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((PendingChange[])(results[0]));
    }
    
    /// <remarks>
///Obtains a change set for a user
///</remarks>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/FetchContribution", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
    public System.Xml.XmlNode FetchContribution(string login, string password, int person_id, int serial) {
        object[] results = this.Invoke("FetchContribution", new object[] {
            login,
            password,
            person_id,
            serial});
        return ((System.Xml.XmlNode)(results[0]));
    }
    
    public System.IAsyncResult BeginFetchContribution(string login, string password, int person_id, int serial, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("FetchContribution", new object[] {
            login,
            password,
            person_id,
            serial}, callback, asyncState);
    }
    
    public System.Xml.XmlNode EndFetchContribution(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((System.Xml.XmlNode)(results[0]));
    }
    
    /// <remarks>
///ADMIN: Obtains the number of pending commits
///</remarks>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetStatus", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
    public Status GetStatus(string login, string password) {
        object[] results = this.Invoke("GetStatus", new object[] {
            login,
            password});
        return ((Status)(results[0]));
    }
    
    public System.IAsyncResult BeginGetStatus(string login, string password, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("GetStatus", new object[] {
            login,
            password}, callback, asyncState);
    }
    
    public Status EndGetStatus(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((Status)(results[0]));
    }
    
    /// <remarks>
///ADMIN: Updates the status of a contribution
///</remarks>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UpdateStatus", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
    public void UpdateStatus(string login, string password, int person_id, int contrib_id, int status) {
        this.Invoke("UpdateStatus", new object[] {
            login,
            password,
            person_id,
            contrib_id,
            status});
    }
    
    public System.IAsyncResult BeginUpdateStatus(string login, string password, int person_id, int contrib_id, int status, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("UpdateStatus", new object[] {
            login,
            password,
            person_id,
            contrib_id,
            status}, callback, asyncState);
    }
    
    public void EndUpdateStatus(System.IAsyncResult asyncResult) {
        this.EndInvoke(asyncResult);
    }
}

/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
public class PendingChange {
    
    /// <remarks/>
    public string Login;
    
    /// <remarks/>
    public int ID;
    
    /// <remarks/>
    public int Serial;
}

/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
public class Status {
    
    /// <remarks/>
    public int Contributions;
    
    /// <remarks/>
    public int Commited;
    
    /// <remarks/>
    public int Pending;
}