~manishsinha/lpsharp/proxy-code

« back to all changes in this revision

Viewing changes to LpNet.LpSharp/ClientProxy/Specification.cs

  • Committer: Manish Sinha
  • Date: 2011-03-08 16:34:35 UTC
  • Revision ID: manishsinha.tech@gmail.com-20110308163435-tanqewijjckmjl6h
Remove all the proxy. It is a mess

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//------------------------------------------------------------------------------
2
 
// <auto-generated>
3
 
//     This code was generated by a tool.
4
 
//     Runtime Version: 2.0.50727.1433
5
 
//
6
 
//     Changes to this file may cause incorrect behavior and will be lost if
7
 
//     the code is regenerated.
8
 
// </auto-generated>
9
 
//------------------------------------------------------------------------------
10
 
 
11
 
namespace LpNet.Launchpad.Core
12
 
{
13
 
    using System.Collections.Generic;
14
 
    using System.Reflection;
15
 
    using System.ComponentModel;
16
 
    using System;
17
 
    
18
 
    
19
 
    /// <summary>
20
 
    /// A Specification.
21
 
    /// </summary>
22
 
    internal partial class Specification
23
 
    {
24
 
        
25
 
        protected string _uri;
26
 
        
27
 
        protected Dictionary<string,string> _httpHeaders;
28
 
        
29
 
        protected ICustomize _customizeInterface;
30
 
        
31
 
        public Specification(string uri, Dictionary<string,string> httpHeaders, ICustomize customizeInterface)
32
 
        {
33
 
            this._uri = uri;
34
 
            this._httpHeaders = httpHeaders;
35
 
            this._customizeInterface = customizeInterface;
36
 
        }
37
 
        
38
 
        public void Get()
39
 
        {
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);
43
 
        }
44
 
        
45
 
        public void Put(SpecificationFull SpecificationFull_field)
46
 
        {
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);
50
 
        }
51
 
        
52
 
        public void Patch(SpecificationDiff SpecificationDiff_field)
53
 
        {
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);
57
 
        }
58
 
        
59
 
        public void UnlinkBranch(string branch)
60
 
        {
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);
66
 
        }
67
 
        
68
 
        public void LinkBranch(string branch)
69
 
        {
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);
75
 
        }
76
 
    }
77
 
}