Merge lp:~mandel/ubuntuone-windows-installer/update_wadl_generation into lp:ubuntuone-windows-installer/beta

Proposed by Manuel de la Peña
Status: Merged
Approved by: Rick McBride
Approved revision: 63
Merged at revision: 86
Proposed branch: lp:~mandel/ubuntuone-windows-installer/update_wadl_generation
Merge into: lp:ubuntuone-windows-installer/beta
Prerequisite: lp:~mandel/ubuntuone-windows-installer/add_ubuntu_login_wadl
Diff against target: 5409 lines (+2932/-2269)
38 files modified
main.build (+8/-1)
src/Canonical.Ubuntu.SSO/Canonical.Ubuntu.SSO.csproj (+35/-1)
src/Canonical.Ubuntu.SSO/Login.cs (+0/-2267)
src/Canonical.Ubuntu.SSO/Service/Account.cs (+58/-0)
src/Canonical.Ubuntu.SSO/Service/AccountDiff.cs (+90/-0)
src/Canonical.Ubuntu.SSO/Service/AccountFull.cs (+142/-0)
src/Canonical.Ubuntu.SSO/Service/AccountPage.cs (+123/-0)
src/Canonical.Ubuntu.SSO/Service/AccountPageResource.cs (+44/-0)
src/Canonical.Ubuntu.SSO/Service/Accounts.cs (+72/-0)
src/Canonical.Ubuntu.SSO/Service/Authentication.cs (+58/-0)
src/Canonical.Ubuntu.SSO/Service/AuthenticationDiff.cs (+90/-0)
src/Canonical.Ubuntu.SSO/Service/AuthenticationFull.cs (+142/-0)
src/Canonical.Ubuntu.SSO/Service/AuthenticationPage.cs (+123/-0)
src/Canonical.Ubuntu.SSO/Service/AuthenticationPageResource.cs (+44/-0)
src/Canonical.Ubuntu.SSO/Service/Authentications.cs (+128/-0)
src/Canonical.Ubuntu.SSO/Service/Captcha.cs (+58/-0)
src/Canonical.Ubuntu.SSO/Service/CaptchaDiff.cs (+56/-0)
src/Canonical.Ubuntu.SSO/Service/CaptchaFull.cs (+108/-0)
src/Canonical.Ubuntu.SSO/Service/CaptchaPage.cs (+123/-0)
src/Canonical.Ubuntu.SSO/Service/CaptchaPageResource.cs (+44/-0)
src/Canonical.Ubuntu.SSO/Service/Captchas.cs (+52/-0)
src/Canonical.Ubuntu.SSO/Service/EnumDescription.cs (+30/-0)
src/Canonical.Ubuntu.SSO/Service/HostedFile.cs (+56/-0)
src/Canonical.Ubuntu.SSO/Service/HttpMethodType.cs (+32/-0)
src/Canonical.Ubuntu.SSO/Service/ICustomize.cs (+29/-0)
src/Canonical.Ubuntu.SSO/Service/Registration.cs (+58/-0)
src/Canonical.Ubuntu.SSO/Service/RegistrationDiff.cs (+90/-0)
src/Canonical.Ubuntu.SSO/Service/RegistrationFull.cs (+142/-0)
src/Canonical.Ubuntu.SSO/Service/RegistrationPage.cs (+123/-0)
src/Canonical.Ubuntu.SSO/Service/RegistrationPageResource.cs (+44/-0)
src/Canonical.Ubuntu.SSO/Service/Registrations.cs (+112/-0)
src/Canonical.Ubuntu.SSO/Service/ServiceRoot.cs (+47/-0)
src/Canonical.Ubuntu.SSO/Service/ServiceRootJson.cs (+114/-0)
src/Canonical.Ubuntu.SSO/Service/Validation.cs (+58/-0)
src/Canonical.Ubuntu.SSO/Service/ValidationDiff.cs (+90/-0)
src/Canonical.Ubuntu.SSO/Service/ValidationFull.cs (+142/-0)
src/Canonical.Ubuntu.SSO/Service/ValidationPage.cs (+123/-0)
src/Canonical.Ubuntu.SSO/Service/ValidationPageResource.cs (+44/-0)
To merge this branch: bzr merge lp:~mandel/ubuntuone-windows-installer/update_wadl_generation
Reviewer Review Type Date Requested Status
Rick McBride (community) Approve
Rodrigo Moya (community) Approve
Review via email: mp+36289@code.launchpad.net

Description of the change

Followig the patches I sent to wadl-sharp this branch updates the code generated to follows C#
standards as well as to divided the generated code in a collection of files."

To post a comment you must log in.
Revision history for this message
Rodrigo Moya (rodrigo-moya) :
review: Approve
Revision history for this message
Rick McBride (rmcbride) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/Wadlsharp/LpNet.WadlSharp.Common.dll'
2Binary files lib/Wadlsharp/LpNet.WadlSharp.Common.dll 2010-09-22 12:41:14 +0000 and lib/Wadlsharp/LpNet.WadlSharp.Common.dll 2010-09-22 12:41:15 +0000 differ
3=== modified file 'lib/Wadlsharp/wadl-sharp.exe'
4Binary files lib/Wadlsharp/wadl-sharp.exe 2010-09-22 12:41:14 +0000 and lib/Wadlsharp/wadl-sharp.exe 2010-09-22 12:41:15 +0000 differ
5=== modified file 'main.build'
6--- main.build 2010-09-22 12:41:14 +0000
7+++ main.build 2010-09-22 12:41:15 +0000
8@@ -133,7 +133,14 @@
9 managed="true"
10 workingdir="lib/Wadlsharp"
11 program="wadl-sharp.exe"
12- commandline="-i ../../data/login.wadl -o ../../src/Canonical.Ubuntu.SSO/Login.cs -n Canonical.Ubuntu.SSO --fixCase"/>
13+ commandline="-i ../../data/login.wadl -n Canonical.Ubuntu.SSO.Service --fixCase"/>
14+
15+ <!-- move the generated code to its correct location -->
16+ <move todir="src/Canonical.Ubuntu.SSO/Service" overwrite="true">
17+ <fileset basedir="lib/Wadlsharp">
18+ <include name="*.cs" />
19+ </fileset>
20+ </move>
21
22 </target>
23
24
25=== modified file 'src/Canonical.Ubuntu.SSO/Canonical.Ubuntu.SSO.csproj'
26--- src/Canonical.Ubuntu.SSO/Canonical.Ubuntu.SSO.csproj 2010-09-22 12:41:14 +0000
27+++ src/Canonical.Ubuntu.SSO/Canonical.Ubuntu.SSO.csproj 2010-09-22 12:41:15 +0000
28@@ -63,9 +63,43 @@
29 <Compile Include="IRegistryKey.cs" />
30 <Compile Include="ISSOLoginProcessor.cs" />
31 <Compile Include="Keyring.cs" />
32- <Compile Include="Login.cs" />
33 <Compile Include="LoginCredentialsEventArgs.cs" />
34 <Compile Include="RegistryKeyWrapper.cs" />
35+ <Compile Include="Service\Account.cs" />
36+ <Compile Include="Service\AccountDiff.cs" />
37+ <Compile Include="Service\AccountFull.cs" />
38+ <Compile Include="Service\AccountPage.cs" />
39+ <Compile Include="Service\AccountPageResource.cs" />
40+ <Compile Include="Service\Accounts.cs" />
41+ <Compile Include="Service\Authentication.cs" />
42+ <Compile Include="Service\AuthenticationDiff.cs" />
43+ <Compile Include="Service\AuthenticationFull.cs" />
44+ <Compile Include="Service\AuthenticationPage.cs" />
45+ <Compile Include="Service\AuthenticationPageResource.cs" />
46+ <Compile Include="Service\Authentications.cs" />
47+ <Compile Include="Service\Captcha.cs" />
48+ <Compile Include="Service\CaptchaDiff.cs" />
49+ <Compile Include="Service\CaptchaFull.cs" />
50+ <Compile Include="Service\CaptchaPage.cs" />
51+ <Compile Include="Service\CaptchaPageResource.cs" />
52+ <Compile Include="Service\Captchas.cs" />
53+ <Compile Include="Service\EnumDescription.cs" />
54+ <Compile Include="Service\HostedFile.cs" />
55+ <Compile Include="Service\HttpMethodType.cs" />
56+ <Compile Include="Service\ICustomize.cs" />
57+ <Compile Include="Service\Registration.cs" />
58+ <Compile Include="Service\RegistrationDiff.cs" />
59+ <Compile Include="Service\RegistrationFull.cs" />
60+ <Compile Include="Service\RegistrationPage.cs" />
61+ <Compile Include="Service\RegistrationPageResource.cs" />
62+ <Compile Include="Service\Registrations.cs" />
63+ <Compile Include="Service\ServiceRoot.cs" />
64+ <Compile Include="Service\ServiceRootJson.cs" />
65+ <Compile Include="Service\Validation.cs" />
66+ <Compile Include="Service\ValidationDiff.cs" />
67+ <Compile Include="Service\ValidationFull.cs" />
68+ <Compile Include="Service\ValidationPage.cs" />
69+ <Compile Include="Service\ValidationPageResource.cs" />
70 <Compile Include="SSOCredentialsProvider.cs" />
71 <Compile Include="IKeyring.cs" />
72 <Compile Include="ISSOCredentialsProvider.cs" />
73
74=== removed file 'src/Canonical.Ubuntu.SSO/Login.cs'
75--- src/Canonical.Ubuntu.SSO/Login.cs 2010-09-22 12:41:14 +0000
76+++ src/Canonical.Ubuntu.SSO/Login.cs 1970-01-01 00:00:00 +0000
77@@ -1,2267 +0,0 @@
78-namespace Canonical.Ubuntu.SSO
79-{
80- using System.Collections.Generic;
81- using System.Reflection;
82- using System.ComponentModel;
83- using System;
84-
85-
86- /// <summary>
87- /// The root of the web service.
88- /// </summary>
89- public partial class ServiceRoot
90- {
91-
92- private string _uri;
93-
94- private Dictionary<string,string> _httpHeaders;
95-
96- private ICustomize _customizeInterface;
97-
98- public ServiceRoot(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
99- {
100- this._uri = uri;
101- this._httpHeaders = httpHeaders;
102- this._customizeInterface = customizeInterface;
103- }
104-
105- public ServiceRootJson ServiceRootGet()
106- {
107- Dictionary<string,string> keyValue = new Dictionary<string, string>();
108- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
109- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
110- ServiceRootJson parsedData = _customizeInterface.Parse<ServiceRootJson>(fetchedData);
111- return parsedData;
112- }
113- }
114-
115- public partial class ServiceRootJson
116- {
117-
118- private string _registrationsCollectionLink;
119-
120- private string _authenticationsCollectionLink;
121-
122- private string _captchasCollectionLink;
123-
124- private string _accountsCollectionLink;
125-
126- private string _validationsCollectionLink;
127-
128- private string _resourceTypeLink;
129-
130- [Description("registrations")]
131- public string RegistrationsCollectionLink
132- {
133- get
134- {
135- return this._registrationsCollectionLink;
136- }
137- set
138- {
139- this._registrationsCollectionLink = value;
140- }
141- }
142-
143- [Description("authentications")]
144- public string AuthenticationsCollectionLink
145- {
146- get
147- {
148- return this._authenticationsCollectionLink;
149- }
150- set
151- {
152- this._authenticationsCollectionLink = value;
153- }
154- }
155-
156- [Description("captchas")]
157- public string CaptchasCollectionLink
158- {
159- get
160- {
161- return this._captchasCollectionLink;
162- }
163- set
164- {
165- this._captchasCollectionLink = value;
166- }
167- }
168-
169- [Description("accounts")]
170- public string AccountsCollectionLink
171- {
172- get
173- {
174- return this._accountsCollectionLink;
175- }
176- set
177- {
178- this._accountsCollectionLink = value;
179- }
180- }
181-
182- [Description("accounts")]
183- public string ValidationsCollectionLink
184- {
185- get
186- {
187- return this._validationsCollectionLink;
188- }
189- set
190- {
191- this._validationsCollectionLink = value;
192- }
193- }
194-
195- /// <summary>
196- /// The link to the WADL description of this resource.
197- /// </summary>
198- public string ResourceTypeLink
199- {
200- get
201- {
202- return this._resourceTypeLink;
203- }
204- set
205- {
206- this._resourceTypeLink = value;
207- }
208- }
209- }
210-
211- public partial class Accounts
212- {
213-
214- private string _uri;
215-
216- private Dictionary<string,string> _httpHeaders;
217-
218- private ICustomize _customizeInterface;
219-
220- public Accounts(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
221- {
222- this._uri = uri;
223- this._httpHeaders = httpHeaders;
224- this._customizeInterface = customizeInterface;
225- }
226-
227- public AccountPage AccountsGet()
228- {
229- Dictionary<string,string> keyValue = new Dictionary<string, string>();
230- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
231- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
232- AccountPage parsedData = _customizeInterface.Parse<AccountPage>(fetchedData);
233- return parsedData;
234- }
235-
236- public void AccountsMe()
237- {
238- Dictionary<string,string> keyValue = new Dictionary<string, string>();
239- keyValue.Add("ws.op", "me");
240- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
241- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
242- }
243-
244- /// <param name="team_names">List of team names to check</param>
245- public void AccountsTeamMemberships(string team_names)
246- {
247- Dictionary<string,string> keyValue = new Dictionary<string, string>();
248- keyValue.Add("ws.op", "team_memberships");
249- keyValue.Add("team_names", team_names);
250- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
251- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
252- }
253-
254- /// <param name="email_token">Email validation token.</param>
255- public void AccountsValidateEmail(string email_token)
256- {
257- Dictionary<string,string> keyValue = new Dictionary<string, string>();
258- keyValue.Add("ws.op", "validate_email");
259- keyValue.Add("email_token", email_token);
260- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
261- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
262- }
263- }
264-
265- public partial class Authentications
266- {
267-
268- private string _uri;
269-
270- private Dictionary<string,string> _httpHeaders;
271-
272- private ICustomize _customizeInterface;
273-
274- public Authentications(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
275- {
276- this._uri = uri;
277- this._httpHeaders = httpHeaders;
278- this._customizeInterface = customizeInterface;
279- }
280-
281- public AuthenticationPage AuthenticationsGet()
282- {
283- Dictionary<string,string> keyValue = new Dictionary<string, string>();
284- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
285- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
286- AuthenticationPage parsedData = _customizeInterface.Parse<AuthenticationPage>(fetchedData);
287- return parsedData;
288- }
289-
290- public void AuthenticationsMe()
291- {
292- Dictionary<string,string> keyValue = new Dictionary<string, string>();
293- keyValue.Add("ws.op", "me");
294- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
295- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
296- }
297-
298- /// <param name="token_name">Token name.</param>
299- public void AuthenticationsAuthenticate(string token_name)
300- {
301- Dictionary<string,string> keyValue = new Dictionary<string, string>();
302- keyValue.Add("ws.op", "authenticate");
303- keyValue.Add("token_name", token_name);
304- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
305- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
306- }
307-
308- /// <param name="team_names">List of team names to check</param>
309- /// <param name="openid_identifier">OpenID Identifier used for asking forteam memberships on behalf of other user.</param>
310- public void AuthenticationsTeamMemberships(string team_names, string openid_identifier)
311- {
312- Dictionary<string,string> keyValue = new Dictionary<string, string>();
313- keyValue.Add("ws.op", "team_memberships");
314- keyValue.Add("team_names", team_names);
315- keyValue.Add("openid_identifier", openid_identifier);
316- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
317- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
318- }
319-
320- /// <param name="email">Email address of the account</param>
321- public void AuthenticationsAccountByEmail(string email)
322- {
323- Dictionary<string,string> keyValue = new Dictionary<string, string>();
324- keyValue.Add("ws.op", "account_by_email");
325- keyValue.Add("email", email);
326- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
327- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
328- }
329-
330- /// <param name="email_token">Email validation token.</param>
331- public void AuthenticationsValidateEmail(string email_token)
332- {
333- Dictionary<string,string> keyValue = new Dictionary<string, string>();
334- keyValue.Add("ws.op", "validate_email");
335- keyValue.Add("email_token", email_token);
336- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
337- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
338- }
339-
340- /// <param name="token">The token you want to validate</param>
341- /// <param name="consumer_key">The consumer key (openid identifier)</param>
342- public void AuthenticationsValidateToken(string token, string consumer_key)
343- {
344- Dictionary<string,string> keyValue = new Dictionary<string, string>();
345- keyValue.Add("ws.op", "validate_token");
346- keyValue.Add("token", token);
347- keyValue.Add("consumer_key", consumer_key);
348- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
349- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
350- }
351-
352- /// <param name="consumer_key">User's OpenID identifier</param>
353- public void AuthenticationsListTokens(string consumer_key)
354- {
355- Dictionary<string,string> keyValue = new Dictionary<string, string>();
356- keyValue.Add("ws.op", "list_tokens");
357- keyValue.Add("consumer_key", consumer_key);
358- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
359- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
360- }
361-
362- /// <param name="token">The token you want to invalidate</param>
363- /// <param name="consumer_key">The consumer key (openid identifier)</param>
364- public void AuthenticationsInvalidateToken(string token, string consumer_key)
365- {
366- Dictionary<string,string> keyValue = new Dictionary<string, string>();
367- keyValue.Add("ws.op", "invalidate_token");
368- keyValue.Add("token", token);
369- keyValue.Add("consumer_key", consumer_key);
370- string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
371- string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
372- }
373- }
374-
375- public partial class Captchas
376- {
377-
378- private string _uri;
379-
380- private Dictionary<string,string> _httpHeaders;
381-
382- private ICustomize _customizeInterface;
383-
384- public Captchas(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
385- {
386- this._uri = uri;
387- this._httpHeaders = httpHeaders;
388- this._customizeInterface = customizeInterface;
389- }
390-
391- public CaptchaPage CaptchasGet()
392- {
393- Dictionary<string,string> keyValue = new Dictionary<string, string>();
394- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
395- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
396- CaptchaPage parsedData = _customizeInterface.Parse<CaptchaPage>(fetchedData);
397- return parsedData;
398- }
399-
400- public void CaptchasNew()
401- {
402- Dictionary<string,string> keyValue = new Dictionary<string, string>();
403- keyValue.Add("ws.op", "new");
404- string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
405- string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
406- }
407- }
408-
409- public partial class Registrations
410- {
411-
412- private string _uri;
413-
414- private Dictionary<string,string> _httpHeaders;
415-
416- private ICustomize _customizeInterface;
417-
418- public Registrations(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
419- {
420- this._uri = uri;
421- this._httpHeaders = httpHeaders;
422- this._customizeInterface = customizeInterface;
423- }
424-
425- public RegistrationPage RegistrationsGet()
426- {
427- Dictionary<string,string> keyValue = new Dictionary<string, string>();
428- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
429- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
430- RegistrationPage parsedData = _customizeInterface.Parse<RegistrationPage>(fetchedData);
431- return parsedData;
432- }
433-
434- public void RegistrationsMe()
435- {
436- Dictionary<string,string> keyValue = new Dictionary<string, string>();
437- keyValue.Add("ws.op", "me");
438- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
439- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
440- }
441-
442- /// <param name="team_names">List of team names to check</param>
443- public void RegistrationsTeamMemberships(string team_names)
444- {
445- Dictionary<string,string> keyValue = new Dictionary<string, string>();
446- keyValue.Add("ws.op", "team_memberships");
447- keyValue.Add("team_names", team_names);
448- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
449- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
450- }
451-
452- /// <param name="email_token">Email validation token.</param>
453- public void RegistrationsValidateEmail(string email_token)
454- {
455- Dictionary<string,string> keyValue = new Dictionary<string, string>();
456- keyValue.Add("ws.op", "validate_email");
457- keyValue.Add("email_token", email_token);
458- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
459- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
460- }
461-
462- /// <param name="email">Email address.</param>
463- public void RegistrationsRequestPasswordResetToken(string email)
464- {
465- Dictionary<string,string> keyValue = new Dictionary<string, string>();
466- keyValue.Add("ws.op", "request_password_reset_token");
467- keyValue.Add("email", email);
468- string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
469- string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
470- }
471-
472- /// <param name="new_password">New password</param>
473- /// <param name="token">Password reset token.</param>
474- /// <param name="email">Email address.</param>
475- public void RegistrationsSetNewPassword(string new_password, string token, string email)
476- {
477- Dictionary<string,string> keyValue = new Dictionary<string, string>();
478- keyValue.Add("ws.op", "set_new_password");
479- keyValue.Add("new_password", new_password);
480- keyValue.Add("token", token);
481- keyValue.Add("email", email);
482- string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
483- string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
484- }
485-
486- /// <param name="captcha_solution">Solution for the generated captcha.</param>
487- /// <param name="password">Password should be at least 8 characters long and contain at least one uppercase letter and a number.</param>
488- /// <param name="captcha_id">ID for the generated captcha</param>
489- /// <param name="email">Email address.</param>
490- public void RegistrationsRegister(string captcha_solution, string password, string captcha_id, string email)
491- {
492- Dictionary<string,string> keyValue = new Dictionary<string, string>();
493- keyValue.Add("ws.op", "register");
494- keyValue.Add("captcha_solution", captcha_solution);
495- keyValue.Add("password", password);
496- keyValue.Add("captcha_id", captcha_id);
497- keyValue.Add("email", email);
498- string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
499- string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
500- }
501- }
502-
503- public partial class Account
504- {
505-
506- private string _uri;
507-
508- private Dictionary<string,string> _httpHeaders;
509-
510- private ICustomize _customizeInterface;
511-
512- public Account(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
513- {
514- this._uri = uri;
515- this._httpHeaders = httpHeaders;
516- this._customizeInterface = customizeInterface;
517- }
518-
519- public AccountFull AccountGet()
520- {
521- Dictionary<string,string> keyValue = new Dictionary<string, string>();
522- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
523- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
524- AccountFull parsedData = _customizeInterface.Parse<AccountFull>(fetchedData);
525- return parsedData;
526- }
527-
528- public void AccountPut(AccountFull AccountFull_field)
529- {
530- Dictionary<string,string> keyValue = new Dictionary<string, string>();
531- string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
532- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
533- }
534-
535- public void AccountPatch(AccountDiff AccountDiff_field)
536- {
537- Dictionary<string,string> keyValue = new Dictionary<string, string>();
538- string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
539- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
540- }
541- }
542-
543- public partial class AccountFull
544- {
545-
546- private string _selfLink;
547-
548- private string _resourceTypeLink;
549-
550- private string _httpEtag;
551-
552- private string _preferredEmail;
553-
554- private string _unverifiedEmails;
555-
556- private string _id;
557-
558- private string _verifiedEmails;
559-
560- /// <summary>
561- /// The canonical link to this resource.
562- /// </summary>
563- [Description("account")]
564- public string SelfLink
565- {
566- get
567- {
568- return this._selfLink;
569- }
570- set
571- {
572- this._selfLink = value;
573- }
574- }
575-
576- /// <summary>
577- /// The link to the WADL description of this resource.
578- /// </summary>
579- public string ResourceTypeLink
580- {
581- get
582- {
583- return this._resourceTypeLink;
584- }
585- set
586- {
587- this._resourceTypeLink = value;
588- }
589- }
590-
591- /// <summary>
592- /// The value of the HTTP ETag for this resource.
593- /// </summary>
594- public string HttpEtag
595- {
596- get
597- {
598- return this._httpEtag;
599- }
600- set
601- {
602- this._httpEtag = value;
603- }
604- }
605-
606- /// <summary>
607- /// Primary email address
608- /// </summary>
609- public string PreferredEmail
610- {
611- get
612- {
613- return this._preferredEmail;
614- }
615- set
616- {
617- this._preferredEmail = value;
618- }
619- }
620-
621- /// <summary>
622- /// List of unverified emails
623- /// </summary>
624- public string UnverifiedEmails
625- {
626- get
627- {
628- return this._unverifiedEmails;
629- }
630- set
631- {
632- this._unverifiedEmails = value;
633- }
634- }
635-
636- /// <summary>
637- /// Account ID
638- /// </summary>
639- public string Id
640- {
641- get
642- {
643- return this._id;
644- }
645- set
646- {
647- this._id = value;
648- }
649- }
650-
651- /// <summary>
652- /// List of verified emails
653- /// </summary>
654- public string VerifiedEmails
655- {
656- get
657- {
658- return this._verifiedEmails;
659- }
660- set
661- {
662- this._verifiedEmails = value;
663- }
664- }
665- }
666-
667- public partial class AccountDiff
668- {
669-
670- private string _preferredEmail;
671-
672- private string _unverifiedEmails;
673-
674- private string _id;
675-
676- private string _verifiedEmails;
677-
678- /// <summary>
679- /// Primary email address
680- /// </summary>
681- public string PreferredEmail
682- {
683- get
684- {
685- return this._preferredEmail;
686- }
687- set
688- {
689- this._preferredEmail = value;
690- }
691- }
692-
693- /// <summary>
694- /// List of unverified emails
695- /// </summary>
696- public string UnverifiedEmails
697- {
698- get
699- {
700- return this._unverifiedEmails;
701- }
702- set
703- {
704- this._unverifiedEmails = value;
705- }
706- }
707-
708- /// <summary>
709- /// Account ID
710- /// </summary>
711- public string Id
712- {
713- get
714- {
715- return this._id;
716- }
717- set
718- {
719- this._id = value;
720- }
721- }
722-
723- /// <summary>
724- /// List of verified emails
725- /// </summary>
726- public string VerifiedEmails
727- {
728- get
729- {
730- return this._verifiedEmails;
731- }
732- set
733- {
734- this._verifiedEmails = value;
735- }
736- }
737- }
738-
739- public partial class AccountPageResource
740- {
741-
742- private string _uri;
743-
744- private Dictionary<string,string> _httpHeaders;
745-
746- private ICustomize _customizeInterface;
747-
748- public AccountPageResource(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
749- {
750- this._uri = uri;
751- this._httpHeaders = httpHeaders;
752- this._customizeInterface = customizeInterface;
753- }
754-
755- public AccountPage AccountPageResourceGet()
756- {
757- Dictionary<string,string> keyValue = new Dictionary<string, string>();
758- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
759- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
760- AccountPage parsedData = _customizeInterface.Parse<AccountPage>(fetchedData);
761- return parsedData;
762- }
763- }
764-
765- public partial class AccountPage
766- {
767-
768- private string _resourceTypeLink;
769-
770- private string _totalSize;
771-
772- private string _start;
773-
774- private string _nextCollectionLink;
775-
776- private string _prevCollectionLink;
777-
778- private string _entries;
779-
780- private string _entryLinks;
781-
782- public string ResourceTypeLink
783- {
784- get
785- {
786- return this._resourceTypeLink;
787- }
788- set
789- {
790- this._resourceTypeLink = value;
791- }
792- }
793-
794- public string TotalSize
795- {
796- get
797- {
798- return this._totalSize;
799- }
800- set
801- {
802- this._totalSize = value;
803- }
804- }
805-
806- public string Start
807- {
808- get
809- {
810- return this._start;
811- }
812- set
813- {
814- this._start = value;
815- }
816- }
817-
818- [Description("account-page-resource")]
819- public string NextCollectionLink
820- {
821- get
822- {
823- return this._nextCollectionLink;
824- }
825- set
826- {
827- this._nextCollectionLink = value;
828- }
829- }
830-
831- [Description("account-page-resource")]
832- public string PrevCollectionLink
833- {
834- get
835- {
836- return this._prevCollectionLink;
837- }
838- set
839- {
840- this._prevCollectionLink = value;
841- }
842- }
843-
844- public string Entries
845- {
846- get
847- {
848- return this._entries;
849- }
850- set
851- {
852- this._entries = value;
853- }
854- }
855-
856- [Description("account")]
857- public string EntryLinks
858- {
859- get
860- {
861- return this._entryLinks;
862- }
863- set
864- {
865- this._entryLinks = value;
866- }
867- }
868- }
869-
870- public partial class Authentication
871- {
872-
873- private string _uri;
874-
875- private Dictionary<string,string> _httpHeaders;
876-
877- private ICustomize _customizeInterface;
878-
879- public Authentication(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
880- {
881- this._uri = uri;
882- this._httpHeaders = httpHeaders;
883- this._customizeInterface = customizeInterface;
884- }
885-
886- public AuthenticationFull AuthenticationGet()
887- {
888- Dictionary<string,string> keyValue = new Dictionary<string, string>();
889- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
890- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
891- AuthenticationFull parsedData = _customizeInterface.Parse<AuthenticationFull>(fetchedData);
892- return parsedData;
893- }
894-
895- public void AuthenticationPut(AuthenticationFull AuthenticationFull_field)
896- {
897- Dictionary<string,string> keyValue = new Dictionary<string, string>();
898- string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
899- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
900- }
901-
902- public void AuthenticationPatch(AuthenticationDiff AuthenticationDiff_field)
903- {
904- Dictionary<string,string> keyValue = new Dictionary<string, string>();
905- string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
906- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
907- }
908- }
909-
910- public partial class AuthenticationFull
911- {
912-
913- private string _selfLink;
914-
915- private string _resourceTypeLink;
916-
917- private string _httpEtag;
918-
919- private string _preferredEmail;
920-
921- private string _unverifiedEmails;
922-
923- private string _id;
924-
925- private string _verifiedEmails;
926-
927- /// <summary>
928- /// The canonical link to this resource.
929- /// </summary>
930- [Description("authentication")]
931- public string SelfLink
932- {
933- get
934- {
935- return this._selfLink;
936- }
937- set
938- {
939- this._selfLink = value;
940- }
941- }
942-
943- /// <summary>
944- /// The link to the WADL description of this resource.
945- /// </summary>
946- public string ResourceTypeLink
947- {
948- get
949- {
950- return this._resourceTypeLink;
951- }
952- set
953- {
954- this._resourceTypeLink = value;
955- }
956- }
957-
958- /// <summary>
959- /// The value of the HTTP ETag for this resource.
960- /// </summary>
961- public string HttpEtag
962- {
963- get
964- {
965- return this._httpEtag;
966- }
967- set
968- {
969- this._httpEtag = value;
970- }
971- }
972-
973- /// <summary>
974- /// Primary email address
975- /// </summary>
976- public string PreferredEmail
977- {
978- get
979- {
980- return this._preferredEmail;
981- }
982- set
983- {
984- this._preferredEmail = value;
985- }
986- }
987-
988- /// <summary>
989- /// List of unverified emails
990- /// </summary>
991- public string UnverifiedEmails
992- {
993- get
994- {
995- return this._unverifiedEmails;
996- }
997- set
998- {
999- this._unverifiedEmails = value;
1000- }
1001- }
1002-
1003- /// <summary>
1004- /// Account ID
1005- /// </summary>
1006- public string Id
1007- {
1008- get
1009- {
1010- return this._id;
1011- }
1012- set
1013- {
1014- this._id = value;
1015- }
1016- }
1017-
1018- /// <summary>
1019- /// List of verified emails
1020- /// </summary>
1021- public string VerifiedEmails
1022- {
1023- get
1024- {
1025- return this._verifiedEmails;
1026- }
1027- set
1028- {
1029- this._verifiedEmails = value;
1030- }
1031- }
1032- }
1033-
1034- public partial class AuthenticationDiff
1035- {
1036-
1037- private string _preferredEmail;
1038-
1039- private string _unverifiedEmails;
1040-
1041- private string _id;
1042-
1043- private string _verifiedEmails;
1044-
1045- /// <summary>
1046- /// Primary email address
1047- /// </summary>
1048- public string PreferredEmail
1049- {
1050- get
1051- {
1052- return this._preferredEmail;
1053- }
1054- set
1055- {
1056- this._preferredEmail = value;
1057- }
1058- }
1059-
1060- /// <summary>
1061- /// List of unverified emails
1062- /// </summary>
1063- public string UnverifiedEmails
1064- {
1065- get
1066- {
1067- return this._unverifiedEmails;
1068- }
1069- set
1070- {
1071- this._unverifiedEmails = value;
1072- }
1073- }
1074-
1075- /// <summary>
1076- /// Account ID
1077- /// </summary>
1078- public string Id
1079- {
1080- get
1081- {
1082- return this._id;
1083- }
1084- set
1085- {
1086- this._id = value;
1087- }
1088- }
1089-
1090- /// <summary>
1091- /// List of verified emails
1092- /// </summary>
1093- public string VerifiedEmails
1094- {
1095- get
1096- {
1097- return this._verifiedEmails;
1098- }
1099- set
1100- {
1101- this._verifiedEmails = value;
1102- }
1103- }
1104- }
1105-
1106- public partial class AuthenticationPageResource
1107- {
1108-
1109- private string _uri;
1110-
1111- private Dictionary<string,string> _httpHeaders;
1112-
1113- private ICustomize _customizeInterface;
1114-
1115- public AuthenticationPageResource(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
1116- {
1117- this._uri = uri;
1118- this._httpHeaders = httpHeaders;
1119- this._customizeInterface = customizeInterface;
1120- }
1121-
1122- public AuthenticationPage AuthenticationPageResourceGet()
1123- {
1124- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1125- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
1126- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
1127- AuthenticationPage parsedData = _customizeInterface.Parse<AuthenticationPage>(fetchedData);
1128- return parsedData;
1129- }
1130- }
1131-
1132- public partial class AuthenticationPage
1133- {
1134-
1135- private string _resourceTypeLink;
1136-
1137- private string _totalSize;
1138-
1139- private string _start;
1140-
1141- private string _nextCollectionLink;
1142-
1143- private string _prevCollectionLink;
1144-
1145- private string _entries;
1146-
1147- private string _entryLinks;
1148-
1149- public string ResourceTypeLink
1150- {
1151- get
1152- {
1153- return this._resourceTypeLink;
1154- }
1155- set
1156- {
1157- this._resourceTypeLink = value;
1158- }
1159- }
1160-
1161- public string TotalSize
1162- {
1163- get
1164- {
1165- return this._totalSize;
1166- }
1167- set
1168- {
1169- this._totalSize = value;
1170- }
1171- }
1172-
1173- public string Start
1174- {
1175- get
1176- {
1177- return this._start;
1178- }
1179- set
1180- {
1181- this._start = value;
1182- }
1183- }
1184-
1185- [Description("authentication-page-resource")]
1186- public string NextCollectionLink
1187- {
1188- get
1189- {
1190- return this._nextCollectionLink;
1191- }
1192- set
1193- {
1194- this._nextCollectionLink = value;
1195- }
1196- }
1197-
1198- [Description("authentication-page-resource")]
1199- public string PrevCollectionLink
1200- {
1201- get
1202- {
1203- return this._prevCollectionLink;
1204- }
1205- set
1206- {
1207- this._prevCollectionLink = value;
1208- }
1209- }
1210-
1211- public string Entries
1212- {
1213- get
1214- {
1215- return this._entries;
1216- }
1217- set
1218- {
1219- this._entries = value;
1220- }
1221- }
1222-
1223- [Description("authentication")]
1224- public string EntryLinks
1225- {
1226- get
1227- {
1228- return this._entryLinks;
1229- }
1230- set
1231- {
1232- this._entryLinks = value;
1233- }
1234- }
1235- }
1236-
1237- public partial class Captcha
1238- {
1239-
1240- private string _uri;
1241-
1242- private Dictionary<string,string> _httpHeaders;
1243-
1244- private ICustomize _customizeInterface;
1245-
1246- public Captcha(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
1247- {
1248- this._uri = uri;
1249- this._httpHeaders = httpHeaders;
1250- this._customizeInterface = customizeInterface;
1251- }
1252-
1253- public CaptchaFull CaptchaGet()
1254- {
1255- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1256- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
1257- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
1258- CaptchaFull parsedData = _customizeInterface.Parse<CaptchaFull>(fetchedData);
1259- return parsedData;
1260- }
1261-
1262- public void CaptchaPut(CaptchaFull CaptchaFull_field)
1263- {
1264- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1265- string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
1266- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
1267- }
1268-
1269- public void CaptchaPatch(CaptchaDiff CaptchaDiff_field)
1270- {
1271- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1272- string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
1273- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
1274- }
1275- }
1276-
1277- public partial class CaptchaFull
1278- {
1279-
1280- private string _selfLink;
1281-
1282- private string _resourceTypeLink;
1283-
1284- private string _httpEtag;
1285-
1286- private string _content;
1287-
1288- private string _id;
1289-
1290- /// <summary>
1291- /// The canonical link to this resource.
1292- /// </summary>
1293- [Description("captcha")]
1294- public string SelfLink
1295- {
1296- get
1297- {
1298- return this._selfLink;
1299- }
1300- set
1301- {
1302- this._selfLink = value;
1303- }
1304- }
1305-
1306- /// <summary>
1307- /// The link to the WADL description of this resource.
1308- /// </summary>
1309- public string ResourceTypeLink
1310- {
1311- get
1312- {
1313- return this._resourceTypeLink;
1314- }
1315- set
1316- {
1317- this._resourceTypeLink = value;
1318- }
1319- }
1320-
1321- /// <summary>
1322- /// The value of the HTTP ETag for this resource.
1323- /// </summary>
1324- public string HttpEtag
1325- {
1326- get
1327- {
1328- return this._httpEtag;
1329- }
1330- set
1331- {
1332- this._httpEtag = value;
1333- }
1334- }
1335-
1336- /// <summary>
1337- /// Captcha content
1338- /// </summary>
1339- public string Content
1340- {
1341- get
1342- {
1343- return this._content;
1344- }
1345- set
1346- {
1347- this._content = value;
1348- }
1349- }
1350-
1351- /// <summary>
1352- /// Captcha ID
1353- /// </summary>
1354- public string Id
1355- {
1356- get
1357- {
1358- return this._id;
1359- }
1360- set
1361- {
1362- this._id = value;
1363- }
1364- }
1365- }
1366-
1367- public partial class CaptchaDiff
1368- {
1369-
1370- private string _content;
1371-
1372- private string _id;
1373-
1374- /// <summary>
1375- /// Captcha content
1376- /// </summary>
1377- public string Content
1378- {
1379- get
1380- {
1381- return this._content;
1382- }
1383- set
1384- {
1385- this._content = value;
1386- }
1387- }
1388-
1389- /// <summary>
1390- /// Captcha ID
1391- /// </summary>
1392- public string Id
1393- {
1394- get
1395- {
1396- return this._id;
1397- }
1398- set
1399- {
1400- this._id = value;
1401- }
1402- }
1403- }
1404-
1405- public partial class CaptchaPageResource
1406- {
1407-
1408- private string _uri;
1409-
1410- private Dictionary<string,string> _httpHeaders;
1411-
1412- private ICustomize _customizeInterface;
1413-
1414- public CaptchaPageResource(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
1415- {
1416- this._uri = uri;
1417- this._httpHeaders = httpHeaders;
1418- this._customizeInterface = customizeInterface;
1419- }
1420-
1421- public CaptchaPage CaptchaPageResourceGet()
1422- {
1423- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1424- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
1425- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
1426- CaptchaPage parsedData = _customizeInterface.Parse<CaptchaPage>(fetchedData);
1427- return parsedData;
1428- }
1429- }
1430-
1431- public partial class CaptchaPage
1432- {
1433-
1434- private string _resourceTypeLink;
1435-
1436- private string _totalSize;
1437-
1438- private string _start;
1439-
1440- private string _nextCollectionLink;
1441-
1442- private string _prevCollectionLink;
1443-
1444- private string _entries;
1445-
1446- private string _entryLinks;
1447-
1448- public string ResourceTypeLink
1449- {
1450- get
1451- {
1452- return this._resourceTypeLink;
1453- }
1454- set
1455- {
1456- this._resourceTypeLink = value;
1457- }
1458- }
1459-
1460- public string TotalSize
1461- {
1462- get
1463- {
1464- return this._totalSize;
1465- }
1466- set
1467- {
1468- this._totalSize = value;
1469- }
1470- }
1471-
1472- public string Start
1473- {
1474- get
1475- {
1476- return this._start;
1477- }
1478- set
1479- {
1480- this._start = value;
1481- }
1482- }
1483-
1484- [Description("captcha-page-resource")]
1485- public string NextCollectionLink
1486- {
1487- get
1488- {
1489- return this._nextCollectionLink;
1490- }
1491- set
1492- {
1493- this._nextCollectionLink = value;
1494- }
1495- }
1496-
1497- [Description("captcha-page-resource")]
1498- public string PrevCollectionLink
1499- {
1500- get
1501- {
1502- return this._prevCollectionLink;
1503- }
1504- set
1505- {
1506- this._prevCollectionLink = value;
1507- }
1508- }
1509-
1510- public string Entries
1511- {
1512- get
1513- {
1514- return this._entries;
1515- }
1516- set
1517- {
1518- this._entries = value;
1519- }
1520- }
1521-
1522- [Description("captcha")]
1523- public string EntryLinks
1524- {
1525- get
1526- {
1527- return this._entryLinks;
1528- }
1529- set
1530- {
1531- this._entryLinks = value;
1532- }
1533- }
1534- }
1535-
1536- public partial class Registration
1537- {
1538-
1539- private string _uri;
1540-
1541- private Dictionary<string,string> _httpHeaders;
1542-
1543- private ICustomize _customizeInterface;
1544-
1545- public Registration(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
1546- {
1547- this._uri = uri;
1548- this._httpHeaders = httpHeaders;
1549- this._customizeInterface = customizeInterface;
1550- }
1551-
1552- public RegistrationFull RegistrationGet()
1553- {
1554- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1555- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
1556- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
1557- RegistrationFull parsedData = _customizeInterface.Parse<RegistrationFull>(fetchedData);
1558- return parsedData;
1559- }
1560-
1561- public void RegistrationPut(RegistrationFull RegistrationFull_field)
1562- {
1563- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1564- string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
1565- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
1566- }
1567-
1568- public void RegistrationPatch(RegistrationDiff RegistrationDiff_field)
1569- {
1570- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1571- string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
1572- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
1573- }
1574- }
1575-
1576- public partial class RegistrationFull
1577- {
1578-
1579- private string _selfLink;
1580-
1581- private string _resourceTypeLink;
1582-
1583- private string _httpEtag;
1584-
1585- private string _preferredEmail;
1586-
1587- private string _unverifiedEmails;
1588-
1589- private string _id;
1590-
1591- private string _verifiedEmails;
1592-
1593- /// <summary>
1594- /// The canonical link to this resource.
1595- /// </summary>
1596- [Description("registration")]
1597- public string SelfLink
1598- {
1599- get
1600- {
1601- return this._selfLink;
1602- }
1603- set
1604- {
1605- this._selfLink = value;
1606- }
1607- }
1608-
1609- /// <summary>
1610- /// The link to the WADL description of this resource.
1611- /// </summary>
1612- public string ResourceTypeLink
1613- {
1614- get
1615- {
1616- return this._resourceTypeLink;
1617- }
1618- set
1619- {
1620- this._resourceTypeLink = value;
1621- }
1622- }
1623-
1624- /// <summary>
1625- /// The value of the HTTP ETag for this resource.
1626- /// </summary>
1627- public string HttpEtag
1628- {
1629- get
1630- {
1631- return this._httpEtag;
1632- }
1633- set
1634- {
1635- this._httpEtag = value;
1636- }
1637- }
1638-
1639- /// <summary>
1640- /// Primary email address
1641- /// </summary>
1642- public string PreferredEmail
1643- {
1644- get
1645- {
1646- return this._preferredEmail;
1647- }
1648- set
1649- {
1650- this._preferredEmail = value;
1651- }
1652- }
1653-
1654- /// <summary>
1655- /// List of unverified emails
1656- /// </summary>
1657- public string UnverifiedEmails
1658- {
1659- get
1660- {
1661- return this._unverifiedEmails;
1662- }
1663- set
1664- {
1665- this._unverifiedEmails = value;
1666- }
1667- }
1668-
1669- /// <summary>
1670- /// Account ID
1671- /// </summary>
1672- public string Id
1673- {
1674- get
1675- {
1676- return this._id;
1677- }
1678- set
1679- {
1680- this._id = value;
1681- }
1682- }
1683-
1684- /// <summary>
1685- /// List of verified emails
1686- /// </summary>
1687- public string VerifiedEmails
1688- {
1689- get
1690- {
1691- return this._verifiedEmails;
1692- }
1693- set
1694- {
1695- this._verifiedEmails = value;
1696- }
1697- }
1698- }
1699-
1700- public partial class RegistrationDiff
1701- {
1702-
1703- private string _preferredEmail;
1704-
1705- private string _unverifiedEmails;
1706-
1707- private string _id;
1708-
1709- private string _verifiedEmails;
1710-
1711- /// <summary>
1712- /// Primary email address
1713- /// </summary>
1714- public string PreferredEmail
1715- {
1716- get
1717- {
1718- return this._preferredEmail;
1719- }
1720- set
1721- {
1722- this._preferredEmail = value;
1723- }
1724- }
1725-
1726- /// <summary>
1727- /// List of unverified emails
1728- /// </summary>
1729- public string UnverifiedEmails
1730- {
1731- get
1732- {
1733- return this._unverifiedEmails;
1734- }
1735- set
1736- {
1737- this._unverifiedEmails = value;
1738- }
1739- }
1740-
1741- /// <summary>
1742- /// Account ID
1743- /// </summary>
1744- public string Id
1745- {
1746- get
1747- {
1748- return this._id;
1749- }
1750- set
1751- {
1752- this._id = value;
1753- }
1754- }
1755-
1756- /// <summary>
1757- /// List of verified emails
1758- /// </summary>
1759- public string VerifiedEmails
1760- {
1761- get
1762- {
1763- return this._verifiedEmails;
1764- }
1765- set
1766- {
1767- this._verifiedEmails = value;
1768- }
1769- }
1770- }
1771-
1772- public partial class RegistrationPageResource
1773- {
1774-
1775- private string _uri;
1776-
1777- private Dictionary<string,string> _httpHeaders;
1778-
1779- private ICustomize _customizeInterface;
1780-
1781- public RegistrationPageResource(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
1782- {
1783- this._uri = uri;
1784- this._httpHeaders = httpHeaders;
1785- this._customizeInterface = customizeInterface;
1786- }
1787-
1788- public RegistrationPage RegistrationPageResourceGet()
1789- {
1790- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1791- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
1792- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
1793- RegistrationPage parsedData = _customizeInterface.Parse<RegistrationPage>(fetchedData);
1794- return parsedData;
1795- }
1796- }
1797-
1798- public partial class RegistrationPage
1799- {
1800-
1801- private string _resourceTypeLink;
1802-
1803- private string _totalSize;
1804-
1805- private string _start;
1806-
1807- private string _nextCollectionLink;
1808-
1809- private string _prevCollectionLink;
1810-
1811- private string _entries;
1812-
1813- private string _entryLinks;
1814-
1815- public string ResourceTypeLink
1816- {
1817- get
1818- {
1819- return this._resourceTypeLink;
1820- }
1821- set
1822- {
1823- this._resourceTypeLink = value;
1824- }
1825- }
1826-
1827- public string TotalSize
1828- {
1829- get
1830- {
1831- return this._totalSize;
1832- }
1833- set
1834- {
1835- this._totalSize = value;
1836- }
1837- }
1838-
1839- public string Start
1840- {
1841- get
1842- {
1843- return this._start;
1844- }
1845- set
1846- {
1847- this._start = value;
1848- }
1849- }
1850-
1851- [Description("registration-page-resource")]
1852- public string NextCollectionLink
1853- {
1854- get
1855- {
1856- return this._nextCollectionLink;
1857- }
1858- set
1859- {
1860- this._nextCollectionLink = value;
1861- }
1862- }
1863-
1864- [Description("registration-page-resource")]
1865- public string PrevCollectionLink
1866- {
1867- get
1868- {
1869- return this._prevCollectionLink;
1870- }
1871- set
1872- {
1873- this._prevCollectionLink = value;
1874- }
1875- }
1876-
1877- public string Entries
1878- {
1879- get
1880- {
1881- return this._entries;
1882- }
1883- set
1884- {
1885- this._entries = value;
1886- }
1887- }
1888-
1889- [Description("registration")]
1890- public string EntryLinks
1891- {
1892- get
1893- {
1894- return this._entryLinks;
1895- }
1896- set
1897- {
1898- this._entryLinks = value;
1899- }
1900- }
1901- }
1902-
1903- public partial class Validation
1904- {
1905-
1906- private string _uri;
1907-
1908- private Dictionary<string,string> _httpHeaders;
1909-
1910- private ICustomize _customizeInterface;
1911-
1912- public Validation(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
1913- {
1914- this._uri = uri;
1915- this._httpHeaders = httpHeaders;
1916- this._customizeInterface = customizeInterface;
1917- }
1918-
1919- public ValidationFull ValidationGet()
1920- {
1921- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1922- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
1923- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
1924- ValidationFull parsedData = _customizeInterface.Parse<ValidationFull>(fetchedData);
1925- return parsedData;
1926- }
1927-
1928- public void ValidationPut(ValidationFull ValidationFull_field)
1929- {
1930- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1931- string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
1932- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
1933- }
1934-
1935- public void ValidationPatch(ValidationDiff ValidationDiff_field)
1936- {
1937- Dictionary<string,string> keyValue = new Dictionary<string, string>();
1938- string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
1939- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
1940- }
1941- }
1942-
1943- public partial class ValidationFull
1944- {
1945-
1946- private string _selfLink;
1947-
1948- private string _resourceTypeLink;
1949-
1950- private string _httpEtag;
1951-
1952- private string _preferredEmail;
1953-
1954- private string _unverifiedEmails;
1955-
1956- private string _id;
1957-
1958- private string _verifiedEmails;
1959-
1960- /// <summary>
1961- /// The canonical link to this resource.
1962- /// </summary>
1963- [Description("validation")]
1964- public string SelfLink
1965- {
1966- get
1967- {
1968- return this._selfLink;
1969- }
1970- set
1971- {
1972- this._selfLink = value;
1973- }
1974- }
1975-
1976- /// <summary>
1977- /// The link to the WADL description of this resource.
1978- /// </summary>
1979- public string ResourceTypeLink
1980- {
1981- get
1982- {
1983- return this._resourceTypeLink;
1984- }
1985- set
1986- {
1987- this._resourceTypeLink = value;
1988- }
1989- }
1990-
1991- /// <summary>
1992- /// The value of the HTTP ETag for this resource.
1993- /// </summary>
1994- public string HttpEtag
1995- {
1996- get
1997- {
1998- return this._httpEtag;
1999- }
2000- set
2001- {
2002- this._httpEtag = value;
2003- }
2004- }
2005-
2006- /// <summary>
2007- /// Primary email address
2008- /// </summary>
2009- public string PreferredEmail
2010- {
2011- get
2012- {
2013- return this._preferredEmail;
2014- }
2015- set
2016- {
2017- this._preferredEmail = value;
2018- }
2019- }
2020-
2021- /// <summary>
2022- /// List of unverified emails
2023- /// </summary>
2024- public string UnverifiedEmails
2025- {
2026- get
2027- {
2028- return this._unverifiedEmails;
2029- }
2030- set
2031- {
2032- this._unverifiedEmails = value;
2033- }
2034- }
2035-
2036- /// <summary>
2037- /// Account ID
2038- /// </summary>
2039- public string Id
2040- {
2041- get
2042- {
2043- return this._id;
2044- }
2045- set
2046- {
2047- this._id = value;
2048- }
2049- }
2050-
2051- /// <summary>
2052- /// List of verified emails
2053- /// </summary>
2054- public string VerifiedEmails
2055- {
2056- get
2057- {
2058- return this._verifiedEmails;
2059- }
2060- set
2061- {
2062- this._verifiedEmails = value;
2063- }
2064- }
2065- }
2066-
2067- public partial class ValidationDiff
2068- {
2069-
2070- private string _preferredEmail;
2071-
2072- private string _unverifiedEmails;
2073-
2074- private string _id;
2075-
2076- private string _verifiedEmails;
2077-
2078- /// <summary>
2079- /// Primary email address
2080- /// </summary>
2081- public string PreferredEmail
2082- {
2083- get
2084- {
2085- return this._preferredEmail;
2086- }
2087- set
2088- {
2089- this._preferredEmail = value;
2090- }
2091- }
2092-
2093- /// <summary>
2094- /// List of unverified emails
2095- /// </summary>
2096- public string UnverifiedEmails
2097- {
2098- get
2099- {
2100- return this._unverifiedEmails;
2101- }
2102- set
2103- {
2104- this._unverifiedEmails = value;
2105- }
2106- }
2107-
2108- /// <summary>
2109- /// Account ID
2110- /// </summary>
2111- public string Id
2112- {
2113- get
2114- {
2115- return this._id;
2116- }
2117- set
2118- {
2119- this._id = value;
2120- }
2121- }
2122-
2123- /// <summary>
2124- /// List of verified emails
2125- /// </summary>
2126- public string VerifiedEmails
2127- {
2128- get
2129- {
2130- return this._verifiedEmails;
2131- }
2132- set
2133- {
2134- this._verifiedEmails = value;
2135- }
2136- }
2137- }
2138-
2139- public partial class ValidationPageResource
2140- {
2141-
2142- private string _uri;
2143-
2144- private Dictionary<string,string> _httpHeaders;
2145-
2146- private ICustomize _customizeInterface;
2147-
2148- public ValidationPageResource(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
2149- {
2150- this._uri = uri;
2151- this._httpHeaders = httpHeaders;
2152- this._customizeInterface = customizeInterface;
2153- }
2154-
2155- public ValidationPage ValidationPageResourceGet()
2156- {
2157- Dictionary<string,string> keyValue = new Dictionary<string, string>();
2158- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
2159- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
2160- ValidationPage parsedData = _customizeInterface.Parse<ValidationPage>(fetchedData);
2161- return parsedData;
2162- }
2163- }
2164-
2165- public partial class ValidationPage
2166- {
2167-
2168- private string _resourceTypeLink;
2169-
2170- private string _totalSize;
2171-
2172- private string _start;
2173-
2174- private string _nextCollectionLink;
2175-
2176- private string _prevCollectionLink;
2177-
2178- private string _entries;
2179-
2180- private string _entryLinks;
2181-
2182- public string ResourceTypeLink
2183- {
2184- get
2185- {
2186- return this._resourceTypeLink;
2187- }
2188- set
2189- {
2190- this._resourceTypeLink = value;
2191- }
2192- }
2193-
2194- public string TotalSize
2195- {
2196- get
2197- {
2198- return this._totalSize;
2199- }
2200- set
2201- {
2202- this._totalSize = value;
2203- }
2204- }
2205-
2206- public string Start
2207- {
2208- get
2209- {
2210- return this._start;
2211- }
2212- set
2213- {
2214- this._start = value;
2215- }
2216- }
2217-
2218- [Description("validation-page-resource")]
2219- public string NextCollectionLink
2220- {
2221- get
2222- {
2223- return this._nextCollectionLink;
2224- }
2225- set
2226- {
2227- this._nextCollectionLink = value;
2228- }
2229- }
2230-
2231- [Description("validation-page-resource")]
2232- public string PrevCollectionLink
2233- {
2234- get
2235- {
2236- return this._prevCollectionLink;
2237- }
2238- set
2239- {
2240- this._prevCollectionLink = value;
2241- }
2242- }
2243-
2244- public string Entries
2245- {
2246- get
2247- {
2248- return this._entries;
2249- }
2250- set
2251- {
2252- this._entries = value;
2253- }
2254- }
2255-
2256- [Description("validation")]
2257- public string EntryLinks
2258- {
2259- get
2260- {
2261- return this._entryLinks;
2262- }
2263- set
2264- {
2265- this._entryLinks = value;
2266- }
2267- }
2268- }
2269-
2270- public partial class HostedFile
2271- {
2272-
2273- private string _uri;
2274-
2275- private Dictionary<string,string> _httpHeaders;
2276-
2277- private ICustomize _customizeInterface;
2278-
2279- public HostedFile(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
2280- {
2281- this._uri = uri;
2282- this._httpHeaders = httpHeaders;
2283- this._customizeInterface = customizeInterface;
2284- }
2285-
2286- public void HostedFileGet()
2287- {
2288- Dictionary<string,string> keyValue = new Dictionary<string, string>();
2289- string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
2290- string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
2291- }
2292-
2293- public void HostedFilePut()
2294- {
2295- Dictionary<string,string> keyValue = new Dictionary<string, string>();
2296- string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
2297- string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
2298- }
2299-
2300- public void HostedFileDelete()
2301- {
2302- Dictionary<string,string> keyValue = new Dictionary<string, string>();
2303- string serializedData = _customizeInterface.Serialize(HttpMethodType.DELETE, keyValue);
2304- string fetchedData = _customizeInterface.Fetch(HttpMethodType.DELETE, this._uri, this._httpHeaders, serializedData);
2305- }
2306- }
2307-
2308- public interface ICustomize
2309- {
2310-
2311- T Parse<T>(string rawString)
2312- ;
2313-
2314- string Fetch(HttpMethodType methodType, string uri, System.Collections.Generic.Dictionary<string, string> httpHeadersParam, string dataParam);
2315-
2316- string Serialize(HttpMethodType methodType, Dictionary<string, string> keyvalues);
2317- }
2318-
2319- public enum HttpMethodType
2320- {
2321-
2322- GET,
2323-
2324- POST,
2325-
2326- PUT,
2327-
2328- PATCH,
2329-
2330- DELETE,
2331- }
2332-
2333- public class EnumDescription
2334- {
2335-
2336- public static string CreateString<T>(T currentEnum)
2337-
2338- {
2339- FieldInfo fi = currentEnum.GetType().GetField(currentEnum.ToString());
2340- DescriptionAttribute da = ((DescriptionAttribute)(Attribute.GetCustomAttribute(fi, typeof(DescriptionAttribute))));
2341- return (da != null) ? da.Description : currentEnum.ToString();
2342- }
2343- }
2344-}
2345
2346=== added directory 'src/Canonical.Ubuntu.SSO/Service'
2347=== added file 'src/Canonical.Ubuntu.SSO/Service/Account.cs'
2348--- src/Canonical.Ubuntu.SSO/Service/Account.cs 1970-01-01 00:00:00 +0000
2349+++ src/Canonical.Ubuntu.SSO/Service/Account.cs 2010-09-22 12:41:15 +0000
2350@@ -0,0 +1,58 @@
2351+//------------------------------------------------------------------------------
2352+// <auto-generated>
2353+// This code was generated by a tool.
2354+// Runtime Version: 2.0.50727.4952
2355+//
2356+// Changes to this file may cause incorrect behavior and will be lost if
2357+// the code is regenerated.
2358+// </auto-generated>
2359+//------------------------------------------------------------------------------
2360+
2361+namespace Canonical.Ubuntu.SSO.Service
2362+{
2363+ using System.Collections.Generic;
2364+ using System.Reflection;
2365+ using System.ComponentModel;
2366+ using System;
2367+
2368+
2369+ public partial class Account
2370+ {
2371+
2372+ private string _uri;
2373+
2374+ private Dictionary<string,string> _httpHeaders;
2375+
2376+ private ICustomize _customizeInterface;
2377+
2378+ public Account(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
2379+ {
2380+ this._uri = uri;
2381+ this._httpHeaders = httpHeaders;
2382+ this._customizeInterface = customizeInterface;
2383+ }
2384+
2385+ public AccountFull Get()
2386+ {
2387+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2388+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
2389+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
2390+ AccountFull parsedData = _customizeInterface.Parse<AccountFull>(fetchedData);
2391+ return parsedData;
2392+ }
2393+
2394+ public void Put(AccountFull AccountFull_field)
2395+ {
2396+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2397+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
2398+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
2399+ }
2400+
2401+ public void Patch(AccountDiff AccountDiff_field)
2402+ {
2403+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2404+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
2405+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
2406+ }
2407+ }
2408+}
2409
2410=== added file 'src/Canonical.Ubuntu.SSO/Service/AccountDiff.cs'
2411--- src/Canonical.Ubuntu.SSO/Service/AccountDiff.cs 1970-01-01 00:00:00 +0000
2412+++ src/Canonical.Ubuntu.SSO/Service/AccountDiff.cs 2010-09-22 12:41:15 +0000
2413@@ -0,0 +1,90 @@
2414+//------------------------------------------------------------------------------
2415+// <auto-generated>
2416+// This code was generated by a tool.
2417+// Runtime Version: 2.0.50727.4952
2418+//
2419+// Changes to this file may cause incorrect behavior and will be lost if
2420+// the code is regenerated.
2421+// </auto-generated>
2422+//------------------------------------------------------------------------------
2423+
2424+namespace Canonical.Ubuntu.SSO.Service
2425+{
2426+ using System.Collections.Generic;
2427+ using System.Reflection;
2428+ using System.ComponentModel;
2429+ using System;
2430+
2431+
2432+ public partial class AccountDiff
2433+ {
2434+
2435+ private string _preferredEmail;
2436+
2437+ private string _unverifiedEmails;
2438+
2439+ private string _id;
2440+
2441+ private string _verifiedEmails;
2442+
2443+ /// <summary>
2444+ /// Primary email address
2445+ /// </summary>
2446+ public string PreferredEmail
2447+ {
2448+ get
2449+ {
2450+ return this._preferredEmail;
2451+ }
2452+ set
2453+ {
2454+ this._preferredEmail = value;
2455+ }
2456+ }
2457+
2458+ /// <summary>
2459+ /// List of unverified emails
2460+ /// </summary>
2461+ public string UnverifiedEmails
2462+ {
2463+ get
2464+ {
2465+ return this._unverifiedEmails;
2466+ }
2467+ set
2468+ {
2469+ this._unverifiedEmails = value;
2470+ }
2471+ }
2472+
2473+ /// <summary>
2474+ /// Account ID
2475+ /// </summary>
2476+ public string Id
2477+ {
2478+ get
2479+ {
2480+ return this._id;
2481+ }
2482+ set
2483+ {
2484+ this._id = value;
2485+ }
2486+ }
2487+
2488+ /// <summary>
2489+ /// List of verified emails
2490+ /// </summary>
2491+ public string VerifiedEmails
2492+ {
2493+ get
2494+ {
2495+ return this._verifiedEmails;
2496+ }
2497+ set
2498+ {
2499+ this._verifiedEmails = value;
2500+ }
2501+ }
2502+ }
2503+}
2504
2505=== added file 'src/Canonical.Ubuntu.SSO/Service/AccountFull.cs'
2506--- src/Canonical.Ubuntu.SSO/Service/AccountFull.cs 1970-01-01 00:00:00 +0000
2507+++ src/Canonical.Ubuntu.SSO/Service/AccountFull.cs 2010-09-22 12:41:15 +0000
2508@@ -0,0 +1,142 @@
2509+//------------------------------------------------------------------------------
2510+// <auto-generated>
2511+// This code was generated by a tool.
2512+// Runtime Version: 2.0.50727.4952
2513+//
2514+// Changes to this file may cause incorrect behavior and will be lost if
2515+// the code is regenerated.
2516+// </auto-generated>
2517+//------------------------------------------------------------------------------
2518+
2519+namespace Canonical.Ubuntu.SSO.Service
2520+{
2521+ using System.Collections.Generic;
2522+ using System.Reflection;
2523+ using System.ComponentModel;
2524+ using System;
2525+
2526+
2527+ public partial class AccountFull
2528+ {
2529+
2530+ private string _selfLink;
2531+
2532+ private string _resourceTypeLink;
2533+
2534+ private string _httpEtag;
2535+
2536+ private string _preferredEmail;
2537+
2538+ private string _unverifiedEmails;
2539+
2540+ private string _id;
2541+
2542+ private string _verifiedEmails;
2543+
2544+ /// <summary>
2545+ /// The canonical link to this resource.
2546+ /// </summary>
2547+ [Description("account")]
2548+ public string SelfLink
2549+ {
2550+ get
2551+ {
2552+ return this._selfLink;
2553+ }
2554+ set
2555+ {
2556+ this._selfLink = value;
2557+ }
2558+ }
2559+
2560+ /// <summary>
2561+ /// The link to the WADL description of this resource.
2562+ /// </summary>
2563+ public string ResourceTypeLink
2564+ {
2565+ get
2566+ {
2567+ return this._resourceTypeLink;
2568+ }
2569+ set
2570+ {
2571+ this._resourceTypeLink = value;
2572+ }
2573+ }
2574+
2575+ /// <summary>
2576+ /// The value of the HTTP ETag for this resource.
2577+ /// </summary>
2578+ public string HttpEtag
2579+ {
2580+ get
2581+ {
2582+ return this._httpEtag;
2583+ }
2584+ set
2585+ {
2586+ this._httpEtag = value;
2587+ }
2588+ }
2589+
2590+ /// <summary>
2591+ /// Primary email address
2592+ /// </summary>
2593+ public string PreferredEmail
2594+ {
2595+ get
2596+ {
2597+ return this._preferredEmail;
2598+ }
2599+ set
2600+ {
2601+ this._preferredEmail = value;
2602+ }
2603+ }
2604+
2605+ /// <summary>
2606+ /// List of unverified emails
2607+ /// </summary>
2608+ public string UnverifiedEmails
2609+ {
2610+ get
2611+ {
2612+ return this._unverifiedEmails;
2613+ }
2614+ set
2615+ {
2616+ this._unverifiedEmails = value;
2617+ }
2618+ }
2619+
2620+ /// <summary>
2621+ /// Account ID
2622+ /// </summary>
2623+ public string Id
2624+ {
2625+ get
2626+ {
2627+ return this._id;
2628+ }
2629+ set
2630+ {
2631+ this._id = value;
2632+ }
2633+ }
2634+
2635+ /// <summary>
2636+ /// List of verified emails
2637+ /// </summary>
2638+ public string VerifiedEmails
2639+ {
2640+ get
2641+ {
2642+ return this._verifiedEmails;
2643+ }
2644+ set
2645+ {
2646+ this._verifiedEmails = value;
2647+ }
2648+ }
2649+ }
2650+}
2651
2652=== added file 'src/Canonical.Ubuntu.SSO/Service/AccountPage.cs'
2653--- src/Canonical.Ubuntu.SSO/Service/AccountPage.cs 1970-01-01 00:00:00 +0000
2654+++ src/Canonical.Ubuntu.SSO/Service/AccountPage.cs 2010-09-22 12:41:15 +0000
2655@@ -0,0 +1,123 @@
2656+//------------------------------------------------------------------------------
2657+// <auto-generated>
2658+// This code was generated by a tool.
2659+// Runtime Version: 2.0.50727.4952
2660+//
2661+// Changes to this file may cause incorrect behavior and will be lost if
2662+// the code is regenerated.
2663+// </auto-generated>
2664+//------------------------------------------------------------------------------
2665+
2666+namespace Canonical.Ubuntu.SSO.Service
2667+{
2668+ using System.Collections.Generic;
2669+ using System.Reflection;
2670+ using System.ComponentModel;
2671+ using System;
2672+
2673+
2674+ public partial class AccountPage
2675+ {
2676+
2677+ private string _resourceTypeLink;
2678+
2679+ private string _totalSize;
2680+
2681+ private string _start;
2682+
2683+ private string _nextCollectionLink;
2684+
2685+ private string _prevCollectionLink;
2686+
2687+ private string _entries;
2688+
2689+ private string _entryLinks;
2690+
2691+ public string ResourceTypeLink
2692+ {
2693+ get
2694+ {
2695+ return this._resourceTypeLink;
2696+ }
2697+ set
2698+ {
2699+ this._resourceTypeLink = value;
2700+ }
2701+ }
2702+
2703+ public string TotalSize
2704+ {
2705+ get
2706+ {
2707+ return this._totalSize;
2708+ }
2709+ set
2710+ {
2711+ this._totalSize = value;
2712+ }
2713+ }
2714+
2715+ public string Start
2716+ {
2717+ get
2718+ {
2719+ return this._start;
2720+ }
2721+ set
2722+ {
2723+ this._start = value;
2724+ }
2725+ }
2726+
2727+ [Description("account-page-resource")]
2728+ public string NextCollectionLink
2729+ {
2730+ get
2731+ {
2732+ return this._nextCollectionLink;
2733+ }
2734+ set
2735+ {
2736+ this._nextCollectionLink = value;
2737+ }
2738+ }
2739+
2740+ [Description("account-page-resource")]
2741+ public string PrevCollectionLink
2742+ {
2743+ get
2744+ {
2745+ return this._prevCollectionLink;
2746+ }
2747+ set
2748+ {
2749+ this._prevCollectionLink = value;
2750+ }
2751+ }
2752+
2753+ public string Entries
2754+ {
2755+ get
2756+ {
2757+ return this._entries;
2758+ }
2759+ set
2760+ {
2761+ this._entries = value;
2762+ }
2763+ }
2764+
2765+ [Description("account")]
2766+ public string EntryLinks
2767+ {
2768+ get
2769+ {
2770+ return this._entryLinks;
2771+ }
2772+ set
2773+ {
2774+ this._entryLinks = value;
2775+ }
2776+ }
2777+ }
2778+}
2779
2780=== added file 'src/Canonical.Ubuntu.SSO/Service/AccountPageResource.cs'
2781--- src/Canonical.Ubuntu.SSO/Service/AccountPageResource.cs 1970-01-01 00:00:00 +0000
2782+++ src/Canonical.Ubuntu.SSO/Service/AccountPageResource.cs 2010-09-22 12:41:15 +0000
2783@@ -0,0 +1,44 @@
2784+//------------------------------------------------------------------------------
2785+// <auto-generated>
2786+// This code was generated by a tool.
2787+// Runtime Version: 2.0.50727.4952
2788+//
2789+// Changes to this file may cause incorrect behavior and will be lost if
2790+// the code is regenerated.
2791+// </auto-generated>
2792+//------------------------------------------------------------------------------
2793+
2794+namespace Canonical.Ubuntu.SSO.Service
2795+{
2796+ using System.Collections.Generic;
2797+ using System.Reflection;
2798+ using System.ComponentModel;
2799+ using System;
2800+
2801+
2802+ public partial class AccountPageResource
2803+ {
2804+
2805+ private string _uri;
2806+
2807+ private Dictionary<string,string> _httpHeaders;
2808+
2809+ private ICustomize _customizeInterface;
2810+
2811+ public AccountPageResource(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
2812+ {
2813+ this._uri = uri;
2814+ this._httpHeaders = httpHeaders;
2815+ this._customizeInterface = customizeInterface;
2816+ }
2817+
2818+ public AccountPage Get()
2819+ {
2820+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2821+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
2822+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
2823+ AccountPage parsedData = _customizeInterface.Parse<AccountPage>(fetchedData);
2824+ return parsedData;
2825+ }
2826+ }
2827+}
2828
2829=== added file 'src/Canonical.Ubuntu.SSO/Service/Accounts.cs'
2830--- src/Canonical.Ubuntu.SSO/Service/Accounts.cs 1970-01-01 00:00:00 +0000
2831+++ src/Canonical.Ubuntu.SSO/Service/Accounts.cs 2010-09-22 12:41:15 +0000
2832@@ -0,0 +1,72 @@
2833+//------------------------------------------------------------------------------
2834+// <auto-generated>
2835+// This code was generated by a tool.
2836+// Runtime Version: 2.0.50727.4952
2837+//
2838+// Changes to this file may cause incorrect behavior and will be lost if
2839+// the code is regenerated.
2840+// </auto-generated>
2841+//------------------------------------------------------------------------------
2842+
2843+namespace Canonical.Ubuntu.SSO.Service
2844+{
2845+ using System.Collections.Generic;
2846+ using System.Reflection;
2847+ using System.ComponentModel;
2848+ using System;
2849+
2850+
2851+ public partial class Accounts
2852+ {
2853+
2854+ private string _uri;
2855+
2856+ private Dictionary<string,string> _httpHeaders;
2857+
2858+ private ICustomize _customizeInterface;
2859+
2860+ public Accounts(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
2861+ {
2862+ this._uri = uri;
2863+ this._httpHeaders = httpHeaders;
2864+ this._customizeInterface = customizeInterface;
2865+ }
2866+
2867+ public AccountPage Get()
2868+ {
2869+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2870+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
2871+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
2872+ AccountPage parsedData = _customizeInterface.Parse<AccountPage>(fetchedData);
2873+ return parsedData;
2874+ }
2875+
2876+ public void Me()
2877+ {
2878+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2879+ keyValue.Add("ws.op", "me");
2880+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
2881+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
2882+ }
2883+
2884+ /// <param name="team_names">List of team names to check</param>
2885+ public void TeamMemberships(string team_names)
2886+ {
2887+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2888+ keyValue.Add("ws.op", "team_memberships");
2889+ keyValue.Add("team_names", team_names);
2890+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
2891+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
2892+ }
2893+
2894+ /// <param name="email_token">Email validation token.</param>
2895+ public void ValidateEmail(string email_token)
2896+ {
2897+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2898+ keyValue.Add("ws.op", "validate_email");
2899+ keyValue.Add("email_token", email_token);
2900+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
2901+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
2902+ }
2903+ }
2904+}
2905
2906=== added file 'src/Canonical.Ubuntu.SSO/Service/Authentication.cs'
2907--- src/Canonical.Ubuntu.SSO/Service/Authentication.cs 1970-01-01 00:00:00 +0000
2908+++ src/Canonical.Ubuntu.SSO/Service/Authentication.cs 2010-09-22 12:41:15 +0000
2909@@ -0,0 +1,58 @@
2910+//------------------------------------------------------------------------------
2911+// <auto-generated>
2912+// This code was generated by a tool.
2913+// Runtime Version: 2.0.50727.4952
2914+//
2915+// Changes to this file may cause incorrect behavior and will be lost if
2916+// the code is regenerated.
2917+// </auto-generated>
2918+//------------------------------------------------------------------------------
2919+
2920+namespace Canonical.Ubuntu.SSO.Service
2921+{
2922+ using System.Collections.Generic;
2923+ using System.Reflection;
2924+ using System.ComponentModel;
2925+ using System;
2926+
2927+
2928+ public partial class Authentication
2929+ {
2930+
2931+ private string _uri;
2932+
2933+ private Dictionary<string,string> _httpHeaders;
2934+
2935+ private ICustomize _customizeInterface;
2936+
2937+ public Authentication(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
2938+ {
2939+ this._uri = uri;
2940+ this._httpHeaders = httpHeaders;
2941+ this._customizeInterface = customizeInterface;
2942+ }
2943+
2944+ public AuthenticationFull Get()
2945+ {
2946+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2947+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
2948+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
2949+ AuthenticationFull parsedData = _customizeInterface.Parse<AuthenticationFull>(fetchedData);
2950+ return parsedData;
2951+ }
2952+
2953+ public void Put(AuthenticationFull AuthenticationFull_field)
2954+ {
2955+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2956+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
2957+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
2958+ }
2959+
2960+ public void Patch(AuthenticationDiff AuthenticationDiff_field)
2961+ {
2962+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
2963+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
2964+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
2965+ }
2966+ }
2967+}
2968
2969=== added file 'src/Canonical.Ubuntu.SSO/Service/AuthenticationDiff.cs'
2970--- src/Canonical.Ubuntu.SSO/Service/AuthenticationDiff.cs 1970-01-01 00:00:00 +0000
2971+++ src/Canonical.Ubuntu.SSO/Service/AuthenticationDiff.cs 2010-09-22 12:41:15 +0000
2972@@ -0,0 +1,90 @@
2973+//------------------------------------------------------------------------------
2974+// <auto-generated>
2975+// This code was generated by a tool.
2976+// Runtime Version: 2.0.50727.4952
2977+//
2978+// Changes to this file may cause incorrect behavior and will be lost if
2979+// the code is regenerated.
2980+// </auto-generated>
2981+//------------------------------------------------------------------------------
2982+
2983+namespace Canonical.Ubuntu.SSO.Service
2984+{
2985+ using System.Collections.Generic;
2986+ using System.Reflection;
2987+ using System.ComponentModel;
2988+ using System;
2989+
2990+
2991+ public partial class AuthenticationDiff
2992+ {
2993+
2994+ private string _preferredEmail;
2995+
2996+ private string _unverifiedEmails;
2997+
2998+ private string _id;
2999+
3000+ private string _verifiedEmails;
3001+
3002+ /// <summary>
3003+ /// Primary email address
3004+ /// </summary>
3005+ public string PreferredEmail
3006+ {
3007+ get
3008+ {
3009+ return this._preferredEmail;
3010+ }
3011+ set
3012+ {
3013+ this._preferredEmail = value;
3014+ }
3015+ }
3016+
3017+ /// <summary>
3018+ /// List of unverified emails
3019+ /// </summary>
3020+ public string UnverifiedEmails
3021+ {
3022+ get
3023+ {
3024+ return this._unverifiedEmails;
3025+ }
3026+ set
3027+ {
3028+ this._unverifiedEmails = value;
3029+ }
3030+ }
3031+
3032+ /// <summary>
3033+ /// Account ID
3034+ /// </summary>
3035+ public string Id
3036+ {
3037+ get
3038+ {
3039+ return this._id;
3040+ }
3041+ set
3042+ {
3043+ this._id = value;
3044+ }
3045+ }
3046+
3047+ /// <summary>
3048+ /// List of verified emails
3049+ /// </summary>
3050+ public string VerifiedEmails
3051+ {
3052+ get
3053+ {
3054+ return this._verifiedEmails;
3055+ }
3056+ set
3057+ {
3058+ this._verifiedEmails = value;
3059+ }
3060+ }
3061+ }
3062+}
3063
3064=== added file 'src/Canonical.Ubuntu.SSO/Service/AuthenticationFull.cs'
3065--- src/Canonical.Ubuntu.SSO/Service/AuthenticationFull.cs 1970-01-01 00:00:00 +0000
3066+++ src/Canonical.Ubuntu.SSO/Service/AuthenticationFull.cs 2010-09-22 12:41:15 +0000
3067@@ -0,0 +1,142 @@
3068+//------------------------------------------------------------------------------
3069+// <auto-generated>
3070+// This code was generated by a tool.
3071+// Runtime Version: 2.0.50727.4952
3072+//
3073+// Changes to this file may cause incorrect behavior and will be lost if
3074+// the code is regenerated.
3075+// </auto-generated>
3076+//------------------------------------------------------------------------------
3077+
3078+namespace Canonical.Ubuntu.SSO.Service
3079+{
3080+ using System.Collections.Generic;
3081+ using System.Reflection;
3082+ using System.ComponentModel;
3083+ using System;
3084+
3085+
3086+ public partial class AuthenticationFull
3087+ {
3088+
3089+ private string _selfLink;
3090+
3091+ private string _resourceTypeLink;
3092+
3093+ private string _httpEtag;
3094+
3095+ private string _preferredEmail;
3096+
3097+ private string _unverifiedEmails;
3098+
3099+ private string _id;
3100+
3101+ private string _verifiedEmails;
3102+
3103+ /// <summary>
3104+ /// The canonical link to this resource.
3105+ /// </summary>
3106+ [Description("authentication")]
3107+ public string SelfLink
3108+ {
3109+ get
3110+ {
3111+ return this._selfLink;
3112+ }
3113+ set
3114+ {
3115+ this._selfLink = value;
3116+ }
3117+ }
3118+
3119+ /// <summary>
3120+ /// The link to the WADL description of this resource.
3121+ /// </summary>
3122+ public string ResourceTypeLink
3123+ {
3124+ get
3125+ {
3126+ return this._resourceTypeLink;
3127+ }
3128+ set
3129+ {
3130+ this._resourceTypeLink = value;
3131+ }
3132+ }
3133+
3134+ /// <summary>
3135+ /// The value of the HTTP ETag for this resource.
3136+ /// </summary>
3137+ public string HttpEtag
3138+ {
3139+ get
3140+ {
3141+ return this._httpEtag;
3142+ }
3143+ set
3144+ {
3145+ this._httpEtag = value;
3146+ }
3147+ }
3148+
3149+ /// <summary>
3150+ /// Primary email address
3151+ /// </summary>
3152+ public string PreferredEmail
3153+ {
3154+ get
3155+ {
3156+ return this._preferredEmail;
3157+ }
3158+ set
3159+ {
3160+ this._preferredEmail = value;
3161+ }
3162+ }
3163+
3164+ /// <summary>
3165+ /// List of unverified emails
3166+ /// </summary>
3167+ public string UnverifiedEmails
3168+ {
3169+ get
3170+ {
3171+ return this._unverifiedEmails;
3172+ }
3173+ set
3174+ {
3175+ this._unverifiedEmails = value;
3176+ }
3177+ }
3178+
3179+ /// <summary>
3180+ /// Account ID
3181+ /// </summary>
3182+ public string Id
3183+ {
3184+ get
3185+ {
3186+ return this._id;
3187+ }
3188+ set
3189+ {
3190+ this._id = value;
3191+ }
3192+ }
3193+
3194+ /// <summary>
3195+ /// List of verified emails
3196+ /// </summary>
3197+ public string VerifiedEmails
3198+ {
3199+ get
3200+ {
3201+ return this._verifiedEmails;
3202+ }
3203+ set
3204+ {
3205+ this._verifiedEmails = value;
3206+ }
3207+ }
3208+ }
3209+}
3210
3211=== added file 'src/Canonical.Ubuntu.SSO/Service/AuthenticationPage.cs'
3212--- src/Canonical.Ubuntu.SSO/Service/AuthenticationPage.cs 1970-01-01 00:00:00 +0000
3213+++ src/Canonical.Ubuntu.SSO/Service/AuthenticationPage.cs 2010-09-22 12:41:15 +0000
3214@@ -0,0 +1,123 @@
3215+//------------------------------------------------------------------------------
3216+// <auto-generated>
3217+// This code was generated by a tool.
3218+// Runtime Version: 2.0.50727.4952
3219+//
3220+// Changes to this file may cause incorrect behavior and will be lost if
3221+// the code is regenerated.
3222+// </auto-generated>
3223+//------------------------------------------------------------------------------
3224+
3225+namespace Canonical.Ubuntu.SSO.Service
3226+{
3227+ using System.Collections.Generic;
3228+ using System.Reflection;
3229+ using System.ComponentModel;
3230+ using System;
3231+
3232+
3233+ public partial class AuthenticationPage
3234+ {
3235+
3236+ private string _resourceTypeLink;
3237+
3238+ private string _totalSize;
3239+
3240+ private string _start;
3241+
3242+ private string _nextCollectionLink;
3243+
3244+ private string _prevCollectionLink;
3245+
3246+ private string _entries;
3247+
3248+ private string _entryLinks;
3249+
3250+ public string ResourceTypeLink
3251+ {
3252+ get
3253+ {
3254+ return this._resourceTypeLink;
3255+ }
3256+ set
3257+ {
3258+ this._resourceTypeLink = value;
3259+ }
3260+ }
3261+
3262+ public string TotalSize
3263+ {
3264+ get
3265+ {
3266+ return this._totalSize;
3267+ }
3268+ set
3269+ {
3270+ this._totalSize = value;
3271+ }
3272+ }
3273+
3274+ public string Start
3275+ {
3276+ get
3277+ {
3278+ return this._start;
3279+ }
3280+ set
3281+ {
3282+ this._start = value;
3283+ }
3284+ }
3285+
3286+ [Description("authentication-page-resource")]
3287+ public string NextCollectionLink
3288+ {
3289+ get
3290+ {
3291+ return this._nextCollectionLink;
3292+ }
3293+ set
3294+ {
3295+ this._nextCollectionLink = value;
3296+ }
3297+ }
3298+
3299+ [Description("authentication-page-resource")]
3300+ public string PrevCollectionLink
3301+ {
3302+ get
3303+ {
3304+ return this._prevCollectionLink;
3305+ }
3306+ set
3307+ {
3308+ this._prevCollectionLink = value;
3309+ }
3310+ }
3311+
3312+ public string Entries
3313+ {
3314+ get
3315+ {
3316+ return this._entries;
3317+ }
3318+ set
3319+ {
3320+ this._entries = value;
3321+ }
3322+ }
3323+
3324+ [Description("authentication")]
3325+ public string EntryLinks
3326+ {
3327+ get
3328+ {
3329+ return this._entryLinks;
3330+ }
3331+ set
3332+ {
3333+ this._entryLinks = value;
3334+ }
3335+ }
3336+ }
3337+}
3338
3339=== added file 'src/Canonical.Ubuntu.SSO/Service/AuthenticationPageResource.cs'
3340--- src/Canonical.Ubuntu.SSO/Service/AuthenticationPageResource.cs 1970-01-01 00:00:00 +0000
3341+++ src/Canonical.Ubuntu.SSO/Service/AuthenticationPageResource.cs 2010-09-22 12:41:15 +0000
3342@@ -0,0 +1,44 @@
3343+//------------------------------------------------------------------------------
3344+// <auto-generated>
3345+// This code was generated by a tool.
3346+// Runtime Version: 2.0.50727.4952
3347+//
3348+// Changes to this file may cause incorrect behavior and will be lost if
3349+// the code is regenerated.
3350+// </auto-generated>
3351+//------------------------------------------------------------------------------
3352+
3353+namespace Canonical.Ubuntu.SSO.Service
3354+{
3355+ using System.Collections.Generic;
3356+ using System.Reflection;
3357+ using System.ComponentModel;
3358+ using System;
3359+
3360+
3361+ public partial class AuthenticationPageResource
3362+ {
3363+
3364+ private string _uri;
3365+
3366+ private Dictionary<string,string> _httpHeaders;
3367+
3368+ private ICustomize _customizeInterface;
3369+
3370+ public AuthenticationPageResource(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
3371+ {
3372+ this._uri = uri;
3373+ this._httpHeaders = httpHeaders;
3374+ this._customizeInterface = customizeInterface;
3375+ }
3376+
3377+ public AuthenticationPage Get()
3378+ {
3379+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3380+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3381+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3382+ AuthenticationPage parsedData = _customizeInterface.Parse<AuthenticationPage>(fetchedData);
3383+ return parsedData;
3384+ }
3385+ }
3386+}
3387
3388=== added file 'src/Canonical.Ubuntu.SSO/Service/Authentications.cs'
3389--- src/Canonical.Ubuntu.SSO/Service/Authentications.cs 1970-01-01 00:00:00 +0000
3390+++ src/Canonical.Ubuntu.SSO/Service/Authentications.cs 2010-09-22 12:41:15 +0000
3391@@ -0,0 +1,128 @@
3392+//------------------------------------------------------------------------------
3393+// <auto-generated>
3394+// This code was generated by a tool.
3395+// Runtime Version: 2.0.50727.4952
3396+//
3397+// Changes to this file may cause incorrect behavior and will be lost if
3398+// the code is regenerated.
3399+// </auto-generated>
3400+//------------------------------------------------------------------------------
3401+
3402+namespace Canonical.Ubuntu.SSO.Service
3403+{
3404+ using System.Collections.Generic;
3405+ using System.Reflection;
3406+ using System.ComponentModel;
3407+ using System;
3408+
3409+
3410+ public partial class Authentications
3411+ {
3412+
3413+ private string _uri;
3414+
3415+ private Dictionary<string,string> _httpHeaders;
3416+
3417+ private ICustomize _customizeInterface;
3418+
3419+ public Authentications(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
3420+ {
3421+ this._uri = uri;
3422+ this._httpHeaders = httpHeaders;
3423+ this._customizeInterface = customizeInterface;
3424+ }
3425+
3426+ public AuthenticationPage Get()
3427+ {
3428+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3429+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3430+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3431+ AuthenticationPage parsedData = _customizeInterface.Parse<AuthenticationPage>(fetchedData);
3432+ return parsedData;
3433+ }
3434+
3435+ public void Me()
3436+ {
3437+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3438+ keyValue.Add("ws.op", "me");
3439+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3440+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3441+ }
3442+
3443+ /// <param name="token_name">Token name.</param>
3444+ public void Authenticate(string token_name)
3445+ {
3446+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3447+ keyValue.Add("ws.op", "authenticate");
3448+ keyValue.Add("token_name", token_name);
3449+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3450+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3451+ }
3452+
3453+ /// <param name="team_names">List of team names to check</param>
3454+ /// <param name="openid_identifier">OpenID Identifier used for asking forteam memberships on behalf of other user.</param>
3455+ public void TeamMemberships(string team_names, string openid_identifier)
3456+ {
3457+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3458+ keyValue.Add("ws.op", "team_memberships");
3459+ keyValue.Add("team_names", team_names);
3460+ keyValue.Add("openid_identifier", openid_identifier);
3461+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3462+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3463+ }
3464+
3465+ /// <param name="email">Email address of the account</param>
3466+ public void AccountByEmail(string email)
3467+ {
3468+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3469+ keyValue.Add("ws.op", "account_by_email");
3470+ keyValue.Add("email", email);
3471+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3472+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3473+ }
3474+
3475+ /// <param name="email_token">Email validation token.</param>
3476+ public void ValidateEmail(string email_token)
3477+ {
3478+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3479+ keyValue.Add("ws.op", "validate_email");
3480+ keyValue.Add("email_token", email_token);
3481+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3482+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3483+ }
3484+
3485+ /// <param name="token">The token you want to validate</param>
3486+ /// <param name="consumer_key">The consumer key (openid identifier)</param>
3487+ public void ValidateToken(string token, string consumer_key)
3488+ {
3489+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3490+ keyValue.Add("ws.op", "validate_token");
3491+ keyValue.Add("token", token);
3492+ keyValue.Add("consumer_key", consumer_key);
3493+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3494+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3495+ }
3496+
3497+ /// <param name="consumer_key">User's OpenID identifier</param>
3498+ public void ListTokens(string consumer_key)
3499+ {
3500+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3501+ keyValue.Add("ws.op", "list_tokens");
3502+ keyValue.Add("consumer_key", consumer_key);
3503+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3504+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3505+ }
3506+
3507+ /// <param name="token">The token you want to invalidate</param>
3508+ /// <param name="consumer_key">The consumer key (openid identifier)</param>
3509+ public void InvalidateToken(string token, string consumer_key)
3510+ {
3511+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3512+ keyValue.Add("ws.op", "invalidate_token");
3513+ keyValue.Add("token", token);
3514+ keyValue.Add("consumer_key", consumer_key);
3515+ string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
3516+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
3517+ }
3518+ }
3519+}
3520
3521=== added file 'src/Canonical.Ubuntu.SSO/Service/Captcha.cs'
3522--- src/Canonical.Ubuntu.SSO/Service/Captcha.cs 1970-01-01 00:00:00 +0000
3523+++ src/Canonical.Ubuntu.SSO/Service/Captcha.cs 2010-09-22 12:41:15 +0000
3524@@ -0,0 +1,58 @@
3525+//------------------------------------------------------------------------------
3526+// <auto-generated>
3527+// This code was generated by a tool.
3528+// Runtime Version: 2.0.50727.4952
3529+//
3530+// Changes to this file may cause incorrect behavior and will be lost if
3531+// the code is regenerated.
3532+// </auto-generated>
3533+//------------------------------------------------------------------------------
3534+
3535+namespace Canonical.Ubuntu.SSO.Service
3536+{
3537+ using System.Collections.Generic;
3538+ using System.Reflection;
3539+ using System.ComponentModel;
3540+ using System;
3541+
3542+
3543+ public partial class Captcha
3544+ {
3545+
3546+ private string _uri;
3547+
3548+ private Dictionary<string,string> _httpHeaders;
3549+
3550+ private ICustomize _customizeInterface;
3551+
3552+ public Captcha(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
3553+ {
3554+ this._uri = uri;
3555+ this._httpHeaders = httpHeaders;
3556+ this._customizeInterface = customizeInterface;
3557+ }
3558+
3559+ public CaptchaFull Get()
3560+ {
3561+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3562+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3563+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3564+ CaptchaFull parsedData = _customizeInterface.Parse<CaptchaFull>(fetchedData);
3565+ return parsedData;
3566+ }
3567+
3568+ public void Put(CaptchaFull CaptchaFull_field)
3569+ {
3570+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3571+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
3572+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
3573+ }
3574+
3575+ public void Patch(CaptchaDiff CaptchaDiff_field)
3576+ {
3577+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3578+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
3579+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
3580+ }
3581+ }
3582+}
3583
3584=== added file 'src/Canonical.Ubuntu.SSO/Service/CaptchaDiff.cs'
3585--- src/Canonical.Ubuntu.SSO/Service/CaptchaDiff.cs 1970-01-01 00:00:00 +0000
3586+++ src/Canonical.Ubuntu.SSO/Service/CaptchaDiff.cs 2010-09-22 12:41:15 +0000
3587@@ -0,0 +1,56 @@
3588+//------------------------------------------------------------------------------
3589+// <auto-generated>
3590+// This code was generated by a tool.
3591+// Runtime Version: 2.0.50727.4952
3592+//
3593+// Changes to this file may cause incorrect behavior and will be lost if
3594+// the code is regenerated.
3595+// </auto-generated>
3596+//------------------------------------------------------------------------------
3597+
3598+namespace Canonical.Ubuntu.SSO.Service
3599+{
3600+ using System.Collections.Generic;
3601+ using System.Reflection;
3602+ using System.ComponentModel;
3603+ using System;
3604+
3605+
3606+ public partial class CaptchaDiff
3607+ {
3608+
3609+ private string _content;
3610+
3611+ private string _id;
3612+
3613+ /// <summary>
3614+ /// Captcha content
3615+ /// </summary>
3616+ public string Content
3617+ {
3618+ get
3619+ {
3620+ return this._content;
3621+ }
3622+ set
3623+ {
3624+ this._content = value;
3625+ }
3626+ }
3627+
3628+ /// <summary>
3629+ /// Captcha ID
3630+ /// </summary>
3631+ public string Id
3632+ {
3633+ get
3634+ {
3635+ return this._id;
3636+ }
3637+ set
3638+ {
3639+ this._id = value;
3640+ }
3641+ }
3642+ }
3643+}
3644
3645=== added file 'src/Canonical.Ubuntu.SSO/Service/CaptchaFull.cs'
3646--- src/Canonical.Ubuntu.SSO/Service/CaptchaFull.cs 1970-01-01 00:00:00 +0000
3647+++ src/Canonical.Ubuntu.SSO/Service/CaptchaFull.cs 2010-09-22 12:41:15 +0000
3648@@ -0,0 +1,108 @@
3649+//------------------------------------------------------------------------------
3650+// <auto-generated>
3651+// This code was generated by a tool.
3652+// Runtime Version: 2.0.50727.4952
3653+//
3654+// Changes to this file may cause incorrect behavior and will be lost if
3655+// the code is regenerated.
3656+// </auto-generated>
3657+//------------------------------------------------------------------------------
3658+
3659+namespace Canonical.Ubuntu.SSO.Service
3660+{
3661+ using System.Collections.Generic;
3662+ using System.Reflection;
3663+ using System.ComponentModel;
3664+ using System;
3665+
3666+
3667+ public partial class CaptchaFull
3668+ {
3669+
3670+ private string _selfLink;
3671+
3672+ private string _resourceTypeLink;
3673+
3674+ private string _httpEtag;
3675+
3676+ private string _content;
3677+
3678+ private string _id;
3679+
3680+ /// <summary>
3681+ /// The canonical link to this resource.
3682+ /// </summary>
3683+ [Description("captcha")]
3684+ public string SelfLink
3685+ {
3686+ get
3687+ {
3688+ return this._selfLink;
3689+ }
3690+ set
3691+ {
3692+ this._selfLink = value;
3693+ }
3694+ }
3695+
3696+ /// <summary>
3697+ /// The link to the WADL description of this resource.
3698+ /// </summary>
3699+ public string ResourceTypeLink
3700+ {
3701+ get
3702+ {
3703+ return this._resourceTypeLink;
3704+ }
3705+ set
3706+ {
3707+ this._resourceTypeLink = value;
3708+ }
3709+ }
3710+
3711+ /// <summary>
3712+ /// The value of the HTTP ETag for this resource.
3713+ /// </summary>
3714+ public string HttpEtag
3715+ {
3716+ get
3717+ {
3718+ return this._httpEtag;
3719+ }
3720+ set
3721+ {
3722+ this._httpEtag = value;
3723+ }
3724+ }
3725+
3726+ /// <summary>
3727+ /// Captcha content
3728+ /// </summary>
3729+ public string Content
3730+ {
3731+ get
3732+ {
3733+ return this._content;
3734+ }
3735+ set
3736+ {
3737+ this._content = value;
3738+ }
3739+ }
3740+
3741+ /// <summary>
3742+ /// Captcha ID
3743+ /// </summary>
3744+ public string Id
3745+ {
3746+ get
3747+ {
3748+ return this._id;
3749+ }
3750+ set
3751+ {
3752+ this._id = value;
3753+ }
3754+ }
3755+ }
3756+}
3757
3758=== added file 'src/Canonical.Ubuntu.SSO/Service/CaptchaPage.cs'
3759--- src/Canonical.Ubuntu.SSO/Service/CaptchaPage.cs 1970-01-01 00:00:00 +0000
3760+++ src/Canonical.Ubuntu.SSO/Service/CaptchaPage.cs 2010-09-22 12:41:15 +0000
3761@@ -0,0 +1,123 @@
3762+//------------------------------------------------------------------------------
3763+// <auto-generated>
3764+// This code was generated by a tool.
3765+// Runtime Version: 2.0.50727.4952
3766+//
3767+// Changes to this file may cause incorrect behavior and will be lost if
3768+// the code is regenerated.
3769+// </auto-generated>
3770+//------------------------------------------------------------------------------
3771+
3772+namespace Canonical.Ubuntu.SSO.Service
3773+{
3774+ using System.Collections.Generic;
3775+ using System.Reflection;
3776+ using System.ComponentModel;
3777+ using System;
3778+
3779+
3780+ public partial class CaptchaPage
3781+ {
3782+
3783+ private string _resourceTypeLink;
3784+
3785+ private string _totalSize;
3786+
3787+ private string _start;
3788+
3789+ private string _nextCollectionLink;
3790+
3791+ private string _prevCollectionLink;
3792+
3793+ private string _entries;
3794+
3795+ private string _entryLinks;
3796+
3797+ public string ResourceTypeLink
3798+ {
3799+ get
3800+ {
3801+ return this._resourceTypeLink;
3802+ }
3803+ set
3804+ {
3805+ this._resourceTypeLink = value;
3806+ }
3807+ }
3808+
3809+ public string TotalSize
3810+ {
3811+ get
3812+ {
3813+ return this._totalSize;
3814+ }
3815+ set
3816+ {
3817+ this._totalSize = value;
3818+ }
3819+ }
3820+
3821+ public string Start
3822+ {
3823+ get
3824+ {
3825+ return this._start;
3826+ }
3827+ set
3828+ {
3829+ this._start = value;
3830+ }
3831+ }
3832+
3833+ [Description("captcha-page-resource")]
3834+ public string NextCollectionLink
3835+ {
3836+ get
3837+ {
3838+ return this._nextCollectionLink;
3839+ }
3840+ set
3841+ {
3842+ this._nextCollectionLink = value;
3843+ }
3844+ }
3845+
3846+ [Description("captcha-page-resource")]
3847+ public string PrevCollectionLink
3848+ {
3849+ get
3850+ {
3851+ return this._prevCollectionLink;
3852+ }
3853+ set
3854+ {
3855+ this._prevCollectionLink = value;
3856+ }
3857+ }
3858+
3859+ public string Entries
3860+ {
3861+ get
3862+ {
3863+ return this._entries;
3864+ }
3865+ set
3866+ {
3867+ this._entries = value;
3868+ }
3869+ }
3870+
3871+ [Description("captcha")]
3872+ public string EntryLinks
3873+ {
3874+ get
3875+ {
3876+ return this._entryLinks;
3877+ }
3878+ set
3879+ {
3880+ this._entryLinks = value;
3881+ }
3882+ }
3883+ }
3884+}
3885
3886=== added file 'src/Canonical.Ubuntu.SSO/Service/CaptchaPageResource.cs'
3887--- src/Canonical.Ubuntu.SSO/Service/CaptchaPageResource.cs 1970-01-01 00:00:00 +0000
3888+++ src/Canonical.Ubuntu.SSO/Service/CaptchaPageResource.cs 2010-09-22 12:41:15 +0000
3889@@ -0,0 +1,44 @@
3890+//------------------------------------------------------------------------------
3891+// <auto-generated>
3892+// This code was generated by a tool.
3893+// Runtime Version: 2.0.50727.4952
3894+//
3895+// Changes to this file may cause incorrect behavior and will be lost if
3896+// the code is regenerated.
3897+// </auto-generated>
3898+//------------------------------------------------------------------------------
3899+
3900+namespace Canonical.Ubuntu.SSO.Service
3901+{
3902+ using System.Collections.Generic;
3903+ using System.Reflection;
3904+ using System.ComponentModel;
3905+ using System;
3906+
3907+
3908+ public partial class CaptchaPageResource
3909+ {
3910+
3911+ private string _uri;
3912+
3913+ private Dictionary<string,string> _httpHeaders;
3914+
3915+ private ICustomize _customizeInterface;
3916+
3917+ public CaptchaPageResource(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
3918+ {
3919+ this._uri = uri;
3920+ this._httpHeaders = httpHeaders;
3921+ this._customizeInterface = customizeInterface;
3922+ }
3923+
3924+ public CaptchaPage Get()
3925+ {
3926+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3927+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3928+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3929+ CaptchaPage parsedData = _customizeInterface.Parse<CaptchaPage>(fetchedData);
3930+ return parsedData;
3931+ }
3932+ }
3933+}
3934
3935=== added file 'src/Canonical.Ubuntu.SSO/Service/Captchas.cs'
3936--- src/Canonical.Ubuntu.SSO/Service/Captchas.cs 1970-01-01 00:00:00 +0000
3937+++ src/Canonical.Ubuntu.SSO/Service/Captchas.cs 2010-09-22 12:41:15 +0000
3938@@ -0,0 +1,52 @@
3939+//------------------------------------------------------------------------------
3940+// <auto-generated>
3941+// This code was generated by a tool.
3942+// Runtime Version: 2.0.50727.4952
3943+//
3944+// Changes to this file may cause incorrect behavior and will be lost if
3945+// the code is regenerated.
3946+// </auto-generated>
3947+//------------------------------------------------------------------------------
3948+
3949+namespace Canonical.Ubuntu.SSO.Service
3950+{
3951+ using System.Collections.Generic;
3952+ using System.Reflection;
3953+ using System.ComponentModel;
3954+ using System;
3955+
3956+
3957+ public partial class Captchas
3958+ {
3959+
3960+ private string _uri;
3961+
3962+ private Dictionary<string,string> _httpHeaders;
3963+
3964+ private ICustomize _customizeInterface;
3965+
3966+ public Captchas(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
3967+ {
3968+ this._uri = uri;
3969+ this._httpHeaders = httpHeaders;
3970+ this._customizeInterface = customizeInterface;
3971+ }
3972+
3973+ public CaptchaPage Get()
3974+ {
3975+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3976+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
3977+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
3978+ CaptchaPage parsedData = _customizeInterface.Parse<CaptchaPage>(fetchedData);
3979+ return parsedData;
3980+ }
3981+
3982+ public void New()
3983+ {
3984+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
3985+ keyValue.Add("ws.op", "new");
3986+ string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
3987+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
3988+ }
3989+ }
3990+}
3991
3992=== added file 'src/Canonical.Ubuntu.SSO/Service/EnumDescription.cs'
3993--- src/Canonical.Ubuntu.SSO/Service/EnumDescription.cs 1970-01-01 00:00:00 +0000
3994+++ src/Canonical.Ubuntu.SSO/Service/EnumDescription.cs 2010-09-22 12:41:15 +0000
3995@@ -0,0 +1,30 @@
3996+//------------------------------------------------------------------------------
3997+// <auto-generated>
3998+// This code was generated by a tool.
3999+// Runtime Version: 2.0.50727.4952
4000+//
4001+// Changes to this file may cause incorrect behavior and will be lost if
4002+// the code is regenerated.
4003+// </auto-generated>
4004+//------------------------------------------------------------------------------
4005+
4006+namespace Canonical.Ubuntu.SSO.Service
4007+{
4008+ using System.Collections.Generic;
4009+ using System.Reflection;
4010+ using System.ComponentModel;
4011+ using System;
4012+
4013+
4014+ public class EnumDescription
4015+ {
4016+
4017+ public static string CreateString<T>(T currentEnum)
4018+
4019+ {
4020+ FieldInfo fi = currentEnum.GetType().GetField(currentEnum.ToString());
4021+ DescriptionAttribute da = ((DescriptionAttribute)(Attribute.GetCustomAttribute(fi, typeof(DescriptionAttribute))));
4022+ return (da != null) ? da.Description : currentEnum.ToString();
4023+ }
4024+ }
4025+}
4026
4027=== added file 'src/Canonical.Ubuntu.SSO/Service/HostedFile.cs'
4028--- src/Canonical.Ubuntu.SSO/Service/HostedFile.cs 1970-01-01 00:00:00 +0000
4029+++ src/Canonical.Ubuntu.SSO/Service/HostedFile.cs 2010-09-22 12:41:15 +0000
4030@@ -0,0 +1,56 @@
4031+//------------------------------------------------------------------------------
4032+// <auto-generated>
4033+// This code was generated by a tool.
4034+// Runtime Version: 2.0.50727.4952
4035+//
4036+// Changes to this file may cause incorrect behavior and will be lost if
4037+// the code is regenerated.
4038+// </auto-generated>
4039+//------------------------------------------------------------------------------
4040+
4041+namespace Canonical.Ubuntu.SSO.Service
4042+{
4043+ using System.Collections.Generic;
4044+ using System.Reflection;
4045+ using System.ComponentModel;
4046+ using System;
4047+
4048+
4049+ public partial class HostedFile
4050+ {
4051+
4052+ private string _uri;
4053+
4054+ private Dictionary<string,string> _httpHeaders;
4055+
4056+ private ICustomize _customizeInterface;
4057+
4058+ public HostedFile(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
4059+ {
4060+ this._uri = uri;
4061+ this._httpHeaders = httpHeaders;
4062+ this._customizeInterface = customizeInterface;
4063+ }
4064+
4065+ public void Get()
4066+ {
4067+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4068+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
4069+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
4070+ }
4071+
4072+ public void Put()
4073+ {
4074+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4075+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
4076+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
4077+ }
4078+
4079+ public void Delete()
4080+ {
4081+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4082+ string serializedData = _customizeInterface.Serialize(HttpMethodType.DELETE, keyValue);
4083+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.DELETE, this._uri, this._httpHeaders, serializedData);
4084+ }
4085+ }
4086+}
4087
4088=== added file 'src/Canonical.Ubuntu.SSO/Service/HttpMethodType.cs'
4089--- src/Canonical.Ubuntu.SSO/Service/HttpMethodType.cs 1970-01-01 00:00:00 +0000
4090+++ src/Canonical.Ubuntu.SSO/Service/HttpMethodType.cs 2010-09-22 12:41:15 +0000
4091@@ -0,0 +1,32 @@
4092+//------------------------------------------------------------------------------
4093+// <auto-generated>
4094+// This code was generated by a tool.
4095+// Runtime Version: 2.0.50727.4952
4096+//
4097+// Changes to this file may cause incorrect behavior and will be lost if
4098+// the code is regenerated.
4099+// </auto-generated>
4100+//------------------------------------------------------------------------------
4101+
4102+namespace Canonical.Ubuntu.SSO.Service
4103+{
4104+ using System.Collections.Generic;
4105+ using System.Reflection;
4106+ using System.ComponentModel;
4107+ using System;
4108+
4109+
4110+ public enum HttpMethodType
4111+ {
4112+
4113+ GET,
4114+
4115+ POST,
4116+
4117+ PUT,
4118+
4119+ PATCH,
4120+
4121+ DELETE,
4122+ }
4123+}
4124
4125=== added file 'src/Canonical.Ubuntu.SSO/Service/ICustomize.cs'
4126--- src/Canonical.Ubuntu.SSO/Service/ICustomize.cs 1970-01-01 00:00:00 +0000
4127+++ src/Canonical.Ubuntu.SSO/Service/ICustomize.cs 2010-09-22 12:41:15 +0000
4128@@ -0,0 +1,29 @@
4129+//------------------------------------------------------------------------------
4130+// <auto-generated>
4131+// This code was generated by a tool.
4132+// Runtime Version: 2.0.50727.4952
4133+//
4134+// Changes to this file may cause incorrect behavior and will be lost if
4135+// the code is regenerated.
4136+// </auto-generated>
4137+//------------------------------------------------------------------------------
4138+
4139+namespace Canonical.Ubuntu.SSO.Service
4140+{
4141+ using System.Collections.Generic;
4142+ using System.Reflection;
4143+ using System.ComponentModel;
4144+ using System;
4145+
4146+
4147+ public interface ICustomize
4148+ {
4149+
4150+ T Parse<T>(string rawString)
4151+ ;
4152+
4153+ string Fetch(HttpMethodType methodType, string uri, System.Collections.Generic.Dictionary<string, string> httpHeadersParam, string dataParam);
4154+
4155+ string Serialize(HttpMethodType methodType, Dictionary<string, string> keyvalues);
4156+ }
4157+}
4158
4159=== added file 'src/Canonical.Ubuntu.SSO/Service/Registration.cs'
4160--- src/Canonical.Ubuntu.SSO/Service/Registration.cs 1970-01-01 00:00:00 +0000
4161+++ src/Canonical.Ubuntu.SSO/Service/Registration.cs 2010-09-22 12:41:15 +0000
4162@@ -0,0 +1,58 @@
4163+//------------------------------------------------------------------------------
4164+// <auto-generated>
4165+// This code was generated by a tool.
4166+// Runtime Version: 2.0.50727.4952
4167+//
4168+// Changes to this file may cause incorrect behavior and will be lost if
4169+// the code is regenerated.
4170+// </auto-generated>
4171+//------------------------------------------------------------------------------
4172+
4173+namespace Canonical.Ubuntu.SSO.Service
4174+{
4175+ using System.Collections.Generic;
4176+ using System.Reflection;
4177+ using System.ComponentModel;
4178+ using System;
4179+
4180+
4181+ public partial class Registration
4182+ {
4183+
4184+ private string _uri;
4185+
4186+ private Dictionary<string,string> _httpHeaders;
4187+
4188+ private ICustomize _customizeInterface;
4189+
4190+ public Registration(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
4191+ {
4192+ this._uri = uri;
4193+ this._httpHeaders = httpHeaders;
4194+ this._customizeInterface = customizeInterface;
4195+ }
4196+
4197+ public RegistrationFull Get()
4198+ {
4199+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4200+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
4201+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
4202+ RegistrationFull parsedData = _customizeInterface.Parse<RegistrationFull>(fetchedData);
4203+ return parsedData;
4204+ }
4205+
4206+ public void Put(RegistrationFull RegistrationFull_field)
4207+ {
4208+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4209+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
4210+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
4211+ }
4212+
4213+ public void Patch(RegistrationDiff RegistrationDiff_field)
4214+ {
4215+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4216+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
4217+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
4218+ }
4219+ }
4220+}
4221
4222=== added file 'src/Canonical.Ubuntu.SSO/Service/RegistrationDiff.cs'
4223--- src/Canonical.Ubuntu.SSO/Service/RegistrationDiff.cs 1970-01-01 00:00:00 +0000
4224+++ src/Canonical.Ubuntu.SSO/Service/RegistrationDiff.cs 2010-09-22 12:41:15 +0000
4225@@ -0,0 +1,90 @@
4226+//------------------------------------------------------------------------------
4227+// <auto-generated>
4228+// This code was generated by a tool.
4229+// Runtime Version: 2.0.50727.4952
4230+//
4231+// Changes to this file may cause incorrect behavior and will be lost if
4232+// the code is regenerated.
4233+// </auto-generated>
4234+//------------------------------------------------------------------------------
4235+
4236+namespace Canonical.Ubuntu.SSO.Service
4237+{
4238+ using System.Collections.Generic;
4239+ using System.Reflection;
4240+ using System.ComponentModel;
4241+ using System;
4242+
4243+
4244+ public partial class RegistrationDiff
4245+ {
4246+
4247+ private string _preferredEmail;
4248+
4249+ private string _unverifiedEmails;
4250+
4251+ private string _id;
4252+
4253+ private string _verifiedEmails;
4254+
4255+ /// <summary>
4256+ /// Primary email address
4257+ /// </summary>
4258+ public string PreferredEmail
4259+ {
4260+ get
4261+ {
4262+ return this._preferredEmail;
4263+ }
4264+ set
4265+ {
4266+ this._preferredEmail = value;
4267+ }
4268+ }
4269+
4270+ /// <summary>
4271+ /// List of unverified emails
4272+ /// </summary>
4273+ public string UnverifiedEmails
4274+ {
4275+ get
4276+ {
4277+ return this._unverifiedEmails;
4278+ }
4279+ set
4280+ {
4281+ this._unverifiedEmails = value;
4282+ }
4283+ }
4284+
4285+ /// <summary>
4286+ /// Account ID
4287+ /// </summary>
4288+ public string Id
4289+ {
4290+ get
4291+ {
4292+ return this._id;
4293+ }
4294+ set
4295+ {
4296+ this._id = value;
4297+ }
4298+ }
4299+
4300+ /// <summary>
4301+ /// List of verified emails
4302+ /// </summary>
4303+ public string VerifiedEmails
4304+ {
4305+ get
4306+ {
4307+ return this._verifiedEmails;
4308+ }
4309+ set
4310+ {
4311+ this._verifiedEmails = value;
4312+ }
4313+ }
4314+ }
4315+}
4316
4317=== added file 'src/Canonical.Ubuntu.SSO/Service/RegistrationFull.cs'
4318--- src/Canonical.Ubuntu.SSO/Service/RegistrationFull.cs 1970-01-01 00:00:00 +0000
4319+++ src/Canonical.Ubuntu.SSO/Service/RegistrationFull.cs 2010-09-22 12:41:15 +0000
4320@@ -0,0 +1,142 @@
4321+//------------------------------------------------------------------------------
4322+// <auto-generated>
4323+// This code was generated by a tool.
4324+// Runtime Version: 2.0.50727.4952
4325+//
4326+// Changes to this file may cause incorrect behavior and will be lost if
4327+// the code is regenerated.
4328+// </auto-generated>
4329+//------------------------------------------------------------------------------
4330+
4331+namespace Canonical.Ubuntu.SSO.Service
4332+{
4333+ using System.Collections.Generic;
4334+ using System.Reflection;
4335+ using System.ComponentModel;
4336+ using System;
4337+
4338+
4339+ public partial class RegistrationFull
4340+ {
4341+
4342+ private string _selfLink;
4343+
4344+ private string _resourceTypeLink;
4345+
4346+ private string _httpEtag;
4347+
4348+ private string _preferredEmail;
4349+
4350+ private string _unverifiedEmails;
4351+
4352+ private string _id;
4353+
4354+ private string _verifiedEmails;
4355+
4356+ /// <summary>
4357+ /// The canonical link to this resource.
4358+ /// </summary>
4359+ [Description("registration")]
4360+ public string SelfLink
4361+ {
4362+ get
4363+ {
4364+ return this._selfLink;
4365+ }
4366+ set
4367+ {
4368+ this._selfLink = value;
4369+ }
4370+ }
4371+
4372+ /// <summary>
4373+ /// The link to the WADL description of this resource.
4374+ /// </summary>
4375+ public string ResourceTypeLink
4376+ {
4377+ get
4378+ {
4379+ return this._resourceTypeLink;
4380+ }
4381+ set
4382+ {
4383+ this._resourceTypeLink = value;
4384+ }
4385+ }
4386+
4387+ /// <summary>
4388+ /// The value of the HTTP ETag for this resource.
4389+ /// </summary>
4390+ public string HttpEtag
4391+ {
4392+ get
4393+ {
4394+ return this._httpEtag;
4395+ }
4396+ set
4397+ {
4398+ this._httpEtag = value;
4399+ }
4400+ }
4401+
4402+ /// <summary>
4403+ /// Primary email address
4404+ /// </summary>
4405+ public string PreferredEmail
4406+ {
4407+ get
4408+ {
4409+ return this._preferredEmail;
4410+ }
4411+ set
4412+ {
4413+ this._preferredEmail = value;
4414+ }
4415+ }
4416+
4417+ /// <summary>
4418+ /// List of unverified emails
4419+ /// </summary>
4420+ public string UnverifiedEmails
4421+ {
4422+ get
4423+ {
4424+ return this._unverifiedEmails;
4425+ }
4426+ set
4427+ {
4428+ this._unverifiedEmails = value;
4429+ }
4430+ }
4431+
4432+ /// <summary>
4433+ /// Account ID
4434+ /// </summary>
4435+ public string Id
4436+ {
4437+ get
4438+ {
4439+ return this._id;
4440+ }
4441+ set
4442+ {
4443+ this._id = value;
4444+ }
4445+ }
4446+
4447+ /// <summary>
4448+ /// List of verified emails
4449+ /// </summary>
4450+ public string VerifiedEmails
4451+ {
4452+ get
4453+ {
4454+ return this._verifiedEmails;
4455+ }
4456+ set
4457+ {
4458+ this._verifiedEmails = value;
4459+ }
4460+ }
4461+ }
4462+}
4463
4464=== added file 'src/Canonical.Ubuntu.SSO/Service/RegistrationPage.cs'
4465--- src/Canonical.Ubuntu.SSO/Service/RegistrationPage.cs 1970-01-01 00:00:00 +0000
4466+++ src/Canonical.Ubuntu.SSO/Service/RegistrationPage.cs 2010-09-22 12:41:15 +0000
4467@@ -0,0 +1,123 @@
4468+//------------------------------------------------------------------------------
4469+// <auto-generated>
4470+// This code was generated by a tool.
4471+// Runtime Version: 2.0.50727.4952
4472+//
4473+// Changes to this file may cause incorrect behavior and will be lost if
4474+// the code is regenerated.
4475+// </auto-generated>
4476+//------------------------------------------------------------------------------
4477+
4478+namespace Canonical.Ubuntu.SSO.Service
4479+{
4480+ using System.Collections.Generic;
4481+ using System.Reflection;
4482+ using System.ComponentModel;
4483+ using System;
4484+
4485+
4486+ public partial class RegistrationPage
4487+ {
4488+
4489+ private string _resourceTypeLink;
4490+
4491+ private string _totalSize;
4492+
4493+ private string _start;
4494+
4495+ private string _nextCollectionLink;
4496+
4497+ private string _prevCollectionLink;
4498+
4499+ private string _entries;
4500+
4501+ private string _entryLinks;
4502+
4503+ public string ResourceTypeLink
4504+ {
4505+ get
4506+ {
4507+ return this._resourceTypeLink;
4508+ }
4509+ set
4510+ {
4511+ this._resourceTypeLink = value;
4512+ }
4513+ }
4514+
4515+ public string TotalSize
4516+ {
4517+ get
4518+ {
4519+ return this._totalSize;
4520+ }
4521+ set
4522+ {
4523+ this._totalSize = value;
4524+ }
4525+ }
4526+
4527+ public string Start
4528+ {
4529+ get
4530+ {
4531+ return this._start;
4532+ }
4533+ set
4534+ {
4535+ this._start = value;
4536+ }
4537+ }
4538+
4539+ [Description("registration-page-resource")]
4540+ public string NextCollectionLink
4541+ {
4542+ get
4543+ {
4544+ return this._nextCollectionLink;
4545+ }
4546+ set
4547+ {
4548+ this._nextCollectionLink = value;
4549+ }
4550+ }
4551+
4552+ [Description("registration-page-resource")]
4553+ public string PrevCollectionLink
4554+ {
4555+ get
4556+ {
4557+ return this._prevCollectionLink;
4558+ }
4559+ set
4560+ {
4561+ this._prevCollectionLink = value;
4562+ }
4563+ }
4564+
4565+ public string Entries
4566+ {
4567+ get
4568+ {
4569+ return this._entries;
4570+ }
4571+ set
4572+ {
4573+ this._entries = value;
4574+ }
4575+ }
4576+
4577+ [Description("registration")]
4578+ public string EntryLinks
4579+ {
4580+ get
4581+ {
4582+ return this._entryLinks;
4583+ }
4584+ set
4585+ {
4586+ this._entryLinks = value;
4587+ }
4588+ }
4589+ }
4590+}
4591
4592=== added file 'src/Canonical.Ubuntu.SSO/Service/RegistrationPageResource.cs'
4593--- src/Canonical.Ubuntu.SSO/Service/RegistrationPageResource.cs 1970-01-01 00:00:00 +0000
4594+++ src/Canonical.Ubuntu.SSO/Service/RegistrationPageResource.cs 2010-09-22 12:41:15 +0000
4595@@ -0,0 +1,44 @@
4596+//------------------------------------------------------------------------------
4597+// <auto-generated>
4598+// This code was generated by a tool.
4599+// Runtime Version: 2.0.50727.4952
4600+//
4601+// Changes to this file may cause incorrect behavior and will be lost if
4602+// the code is regenerated.
4603+// </auto-generated>
4604+//------------------------------------------------------------------------------
4605+
4606+namespace Canonical.Ubuntu.SSO.Service
4607+{
4608+ using System.Collections.Generic;
4609+ using System.Reflection;
4610+ using System.ComponentModel;
4611+ using System;
4612+
4613+
4614+ public partial class RegistrationPageResource
4615+ {
4616+
4617+ private string _uri;
4618+
4619+ private Dictionary<string,string> _httpHeaders;
4620+
4621+ private ICustomize _customizeInterface;
4622+
4623+ public RegistrationPageResource(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
4624+ {
4625+ this._uri = uri;
4626+ this._httpHeaders = httpHeaders;
4627+ this._customizeInterface = customizeInterface;
4628+ }
4629+
4630+ public RegistrationPage Get()
4631+ {
4632+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4633+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
4634+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
4635+ RegistrationPage parsedData = _customizeInterface.Parse<RegistrationPage>(fetchedData);
4636+ return parsedData;
4637+ }
4638+ }
4639+}
4640
4641=== added file 'src/Canonical.Ubuntu.SSO/Service/Registrations.cs'
4642--- src/Canonical.Ubuntu.SSO/Service/Registrations.cs 1970-01-01 00:00:00 +0000
4643+++ src/Canonical.Ubuntu.SSO/Service/Registrations.cs 2010-09-22 12:41:15 +0000
4644@@ -0,0 +1,112 @@
4645+//------------------------------------------------------------------------------
4646+// <auto-generated>
4647+// This code was generated by a tool.
4648+// Runtime Version: 2.0.50727.4952
4649+//
4650+// Changes to this file may cause incorrect behavior and will be lost if
4651+// the code is regenerated.
4652+// </auto-generated>
4653+//------------------------------------------------------------------------------
4654+
4655+namespace Canonical.Ubuntu.SSO.Service
4656+{
4657+ using System.Collections.Generic;
4658+ using System.Reflection;
4659+ using System.ComponentModel;
4660+ using System;
4661+
4662+
4663+ public partial class Registrations
4664+ {
4665+
4666+ private string _uri;
4667+
4668+ private Dictionary<string,string> _httpHeaders;
4669+
4670+ private ICustomize _customizeInterface;
4671+
4672+ public Registrations(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
4673+ {
4674+ this._uri = uri;
4675+ this._httpHeaders = httpHeaders;
4676+ this._customizeInterface = customizeInterface;
4677+ }
4678+
4679+ public RegistrationPage Get()
4680+ {
4681+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4682+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
4683+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
4684+ RegistrationPage parsedData = _customizeInterface.Parse<RegistrationPage>(fetchedData);
4685+ return parsedData;
4686+ }
4687+
4688+ public void Me()
4689+ {
4690+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4691+ keyValue.Add("ws.op", "me");
4692+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
4693+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
4694+ }
4695+
4696+ /// <param name="team_names">List of team names to check</param>
4697+ public void TeamMemberships(string team_names)
4698+ {
4699+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4700+ keyValue.Add("ws.op", "team_memberships");
4701+ keyValue.Add("team_names", team_names);
4702+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
4703+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
4704+ }
4705+
4706+ /// <param name="email_token">Email validation token.</param>
4707+ public void ValidateEmail(string email_token)
4708+ {
4709+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4710+ keyValue.Add("ws.op", "validate_email");
4711+ keyValue.Add("email_token", email_token);
4712+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
4713+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
4714+ }
4715+
4716+ /// <param name="email">Email address.</param>
4717+ public void RequestPasswordResetToken(string email)
4718+ {
4719+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4720+ keyValue.Add("ws.op", "request_password_reset_token");
4721+ keyValue.Add("email", email);
4722+ string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
4723+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
4724+ }
4725+
4726+ /// <param name="new_password">New password</param>
4727+ /// <param name="token">Password reset token.</param>
4728+ /// <param name="email">Email address.</param>
4729+ public void SetNewPassword(string new_password, string token, string email)
4730+ {
4731+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4732+ keyValue.Add("ws.op", "set_new_password");
4733+ keyValue.Add("new_password", new_password);
4734+ keyValue.Add("token", token);
4735+ keyValue.Add("email", email);
4736+ string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
4737+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
4738+ }
4739+
4740+ /// <param name="captcha_solution">Solution for the generated captcha.</param>
4741+ /// <param name="password">Password should be at least 8 characters long and contain at least one uppercase letter and a number.</param>
4742+ /// <param name="captcha_id">ID for the generated captcha</param>
4743+ /// <param name="email">Email address.</param>
4744+ public void Register(string captcha_solution, string password, string captcha_id, string email)
4745+ {
4746+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4747+ keyValue.Add("ws.op", "register");
4748+ keyValue.Add("captcha_solution", captcha_solution);
4749+ keyValue.Add("password", password);
4750+ keyValue.Add("captcha_id", captcha_id);
4751+ keyValue.Add("email", email);
4752+ string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
4753+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
4754+ }
4755+ }
4756+}
4757
4758=== added file 'src/Canonical.Ubuntu.SSO/Service/ServiceRoot.cs'
4759--- src/Canonical.Ubuntu.SSO/Service/ServiceRoot.cs 1970-01-01 00:00:00 +0000
4760+++ src/Canonical.Ubuntu.SSO/Service/ServiceRoot.cs 2010-09-22 12:41:15 +0000
4761@@ -0,0 +1,47 @@
4762+//------------------------------------------------------------------------------
4763+// <auto-generated>
4764+// This code was generated by a tool.
4765+// Runtime Version: 2.0.50727.4952
4766+//
4767+// Changes to this file may cause incorrect behavior and will be lost if
4768+// the code is regenerated.
4769+// </auto-generated>
4770+//------------------------------------------------------------------------------
4771+
4772+namespace Canonical.Ubuntu.SSO.Service
4773+{
4774+ using System.Collections.Generic;
4775+ using System.Reflection;
4776+ using System.ComponentModel;
4777+ using System;
4778+
4779+
4780+ /// <summary>
4781+ /// The root of the web service.
4782+ /// </summary>
4783+ public partial class ServiceRoot
4784+ {
4785+
4786+ private string _uri;
4787+
4788+ private Dictionary<string,string> _httpHeaders;
4789+
4790+ private ICustomize _customizeInterface;
4791+
4792+ public ServiceRoot(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
4793+ {
4794+ this._uri = uri;
4795+ this._httpHeaders = httpHeaders;
4796+ this._customizeInterface = customizeInterface;
4797+ }
4798+
4799+ public ServiceRootJson Get()
4800+ {
4801+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4802+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
4803+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
4804+ ServiceRootJson parsedData = _customizeInterface.Parse<ServiceRootJson>(fetchedData);
4805+ return parsedData;
4806+ }
4807+ }
4808+}
4809
4810=== added file 'src/Canonical.Ubuntu.SSO/Service/ServiceRootJson.cs'
4811--- src/Canonical.Ubuntu.SSO/Service/ServiceRootJson.cs 1970-01-01 00:00:00 +0000
4812+++ src/Canonical.Ubuntu.SSO/Service/ServiceRootJson.cs 2010-09-22 12:41:15 +0000
4813@@ -0,0 +1,114 @@
4814+//------------------------------------------------------------------------------
4815+// <auto-generated>
4816+// This code was generated by a tool.
4817+// Runtime Version: 2.0.50727.4952
4818+//
4819+// Changes to this file may cause incorrect behavior and will be lost if
4820+// the code is regenerated.
4821+// </auto-generated>
4822+//------------------------------------------------------------------------------
4823+
4824+namespace Canonical.Ubuntu.SSO.Service
4825+{
4826+ using System.Collections.Generic;
4827+ using System.Reflection;
4828+ using System.ComponentModel;
4829+ using System;
4830+
4831+
4832+ public partial class ServiceRootJson
4833+ {
4834+
4835+ private string _registrationsCollectionLink;
4836+
4837+ private string _authenticationsCollectionLink;
4838+
4839+ private string _captchasCollectionLink;
4840+
4841+ private string _accountsCollectionLink;
4842+
4843+ private string _validationsCollectionLink;
4844+
4845+ private string _resourceTypeLink;
4846+
4847+ [Description("registrations")]
4848+ public string RegistrationsCollectionLink
4849+ {
4850+ get
4851+ {
4852+ return this._registrationsCollectionLink;
4853+ }
4854+ set
4855+ {
4856+ this._registrationsCollectionLink = value;
4857+ }
4858+ }
4859+
4860+ [Description("authentications")]
4861+ public string AuthenticationsCollectionLink
4862+ {
4863+ get
4864+ {
4865+ return this._authenticationsCollectionLink;
4866+ }
4867+ set
4868+ {
4869+ this._authenticationsCollectionLink = value;
4870+ }
4871+ }
4872+
4873+ [Description("captchas")]
4874+ public string CaptchasCollectionLink
4875+ {
4876+ get
4877+ {
4878+ return this._captchasCollectionLink;
4879+ }
4880+ set
4881+ {
4882+ this._captchasCollectionLink = value;
4883+ }
4884+ }
4885+
4886+ [Description("accounts")]
4887+ public string AccountsCollectionLink
4888+ {
4889+ get
4890+ {
4891+ return this._accountsCollectionLink;
4892+ }
4893+ set
4894+ {
4895+ this._accountsCollectionLink = value;
4896+ }
4897+ }
4898+
4899+ [Description("accounts")]
4900+ public string ValidationsCollectionLink
4901+ {
4902+ get
4903+ {
4904+ return this._validationsCollectionLink;
4905+ }
4906+ set
4907+ {
4908+ this._validationsCollectionLink = value;
4909+ }
4910+ }
4911+
4912+ /// <summary>
4913+ /// The link to the WADL description of this resource.
4914+ /// </summary>
4915+ public string ResourceTypeLink
4916+ {
4917+ get
4918+ {
4919+ return this._resourceTypeLink;
4920+ }
4921+ set
4922+ {
4923+ this._resourceTypeLink = value;
4924+ }
4925+ }
4926+ }
4927+}
4928
4929=== added file 'src/Canonical.Ubuntu.SSO/Service/Validation.cs'
4930--- src/Canonical.Ubuntu.SSO/Service/Validation.cs 1970-01-01 00:00:00 +0000
4931+++ src/Canonical.Ubuntu.SSO/Service/Validation.cs 2010-09-22 12:41:15 +0000
4932@@ -0,0 +1,58 @@
4933+//------------------------------------------------------------------------------
4934+// <auto-generated>
4935+// This code was generated by a tool.
4936+// Runtime Version: 2.0.50727.4952
4937+//
4938+// Changes to this file may cause incorrect behavior and will be lost if
4939+// the code is regenerated.
4940+// </auto-generated>
4941+//------------------------------------------------------------------------------
4942+
4943+namespace Canonical.Ubuntu.SSO.Service
4944+{
4945+ using System.Collections.Generic;
4946+ using System.Reflection;
4947+ using System.ComponentModel;
4948+ using System;
4949+
4950+
4951+ public partial class Validation
4952+ {
4953+
4954+ private string _uri;
4955+
4956+ private Dictionary<string,string> _httpHeaders;
4957+
4958+ private ICustomize _customizeInterface;
4959+
4960+ public Validation(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
4961+ {
4962+ this._uri = uri;
4963+ this._httpHeaders = httpHeaders;
4964+ this._customizeInterface = customizeInterface;
4965+ }
4966+
4967+ public ValidationFull Get()
4968+ {
4969+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4970+ string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
4971+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
4972+ ValidationFull parsedData = _customizeInterface.Parse<ValidationFull>(fetchedData);
4973+ return parsedData;
4974+ }
4975+
4976+ public void Put(ValidationFull ValidationFull_field)
4977+ {
4978+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4979+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
4980+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
4981+ }
4982+
4983+ public void Patch(ValidationDiff ValidationDiff_field)
4984+ {
4985+ Dictionary<string,string> keyValue = new Dictionary<string, string>();
4986+ string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
4987+ string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
4988+ }
4989+ }
4990+}
4991
4992=== added file 'src/Canonical.Ubuntu.SSO/Service/ValidationDiff.cs'
4993--- src/Canonical.Ubuntu.SSO/Service/ValidationDiff.cs 1970-01-01 00:00:00 +0000
4994+++ src/Canonical.Ubuntu.SSO/Service/ValidationDiff.cs 2010-09-22 12:41:15 +0000
4995@@ -0,0 +1,90 @@
4996+//------------------------------------------------------------------------------
4997+// <auto-generated>
4998+// This code was generated by a tool.
4999+// Runtime Version: 2.0.50727.4952
5000+//
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: