/// <summary> /// Call method exposed to user /// </summary> /// <param name="apiCallHandler"></param> /// <returns></returns> public string Call(IAPICallPreHandler apiCallHandler) { APIService apiServ = new APIService(this.config); this.lastRequest = apiCallHandler.GetPayLoad(); this.lastResponse = apiServ.MakeRequestUsing(apiCallHandler); return this.lastResponse; }
/// <summary> /// Call method exposed to user /// </summary> /// <param name="apiCallHandler"></param> /// <returns></returns> public string Call(IAPICallPreHandler apiCallHandler) { APIService apiServ = new APIService(this.config); this.lastReq = apiCallHandler.GetPayload(); this.lastResp = apiServ.MakeRequestUsing(apiCallHandler); return(this.lastResp); }