示例#1
0
文件: Api.cs 项目: gengo/spGengo
 /**
  * we will have 2 constructors
  */
 public Api(string api_key, string private_key)
 {
     client = Client.getInstance();
     client.Proxy = _proxy;
     _apiKey = api_key;
     _privateKey = private_key;
 }
示例#2
0
文件: Client.cs 项目: gengo/spGengo
 /**
  * singleton class
  */
 public static Client getInstance()
 {
     if (null == instance)
     {
         instance = new Client();
     }
     return instance;
 }
示例#3
0
文件: Api.cs 项目: gengo/spGengo
 public Api()
 {
     client = Client.getInstance();
     client.Proxy = _proxy;
 }