/** * 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; }
/** * singleton class */ public static Client getInstance() { if (null == instance) { instance = new Client(); } return instance; }
public Api() { client = Client.getInstance(); client.Proxy = _proxy; }