1
//------------------------------------------------------------------------------
3
// This code was generated by a tool.
4
// Runtime Version: 2.0.50727.1433
6
// Changes to this file may cause incorrect behavior and will be lost if
7
// the code is regenerated.
9
//------------------------------------------------------------------------------
11
namespace LpNet.Launchpad.Core
13
using System.Collections.Generic;
14
using System.Reflection;
15
using System.ComponentModel;
22
internal partial class Specification
25
protected string _uri;
27
protected Dictionary<string,string> _httpHeaders;
29
protected ICustomize _customizeInterface;
31
public Specification(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
34
this._httpHeaders = httpHeaders;
35
this._customizeInterface = customizeInterface;
40
Dictionary<string,string> keyValue = new Dictionary<string, string>();
41
string serializedData = _customizeInterface.Serialize(HttpMethodType.GET, keyValue);
42
string fetchedData = _customizeInterface.Fetch(HttpMethodType.GET, this._uri, this._httpHeaders, serializedData);
45
public void Put(SpecificationFull SpecificationFull_field)
47
Dictionary<string,string> keyValue = new Dictionary<string, string>();
48
string serializedData = _customizeInterface.Serialize(HttpMethodType.PUT, keyValue);
49
string fetchedData = _customizeInterface.Fetch(HttpMethodType.PUT, this._uri, this._httpHeaders, serializedData);
52
public void Patch(SpecificationDiff SpecificationDiff_field)
54
Dictionary<string,string> keyValue = new Dictionary<string, string>();
55
string serializedData = _customizeInterface.Serialize(HttpMethodType.PATCH, keyValue);
56
string fetchedData = _customizeInterface.Fetch(HttpMethodType.PATCH, this._uri, this._httpHeaders, serializedData);
59
public void UnlinkBranch(string branch)
61
Dictionary<string,string> keyValue = new Dictionary<string, string>();
62
keyValue.Add("ws.op", "unlinkBranch");
63
keyValue.Add("branch", branch);
64
string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
65
string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);
68
public void LinkBranch(string branch)
70
Dictionary<string,string> keyValue = new Dictionary<string, string>();
71
keyValue.Add("ws.op", "linkBranch");
72
keyValue.Add("branch", branch);
73
string serializedData = _customizeInterface.Serialize(HttpMethodType.POST, keyValue);
74
string fetchedData = _customizeInterface.Fetch(HttpMethodType.POST, this._uri, this._httpHeaders, serializedData);