public static void FetchData(ServiceEventHandler callback, object userData) { ServiceRequest request = new ServiceRequest() { _Type = MockAPIype, _ServiceCallContentType = ServiceCallContentType.Json, _EventDelegate = callback, _UserData = userData }; RequestHelper requestHelper = new RequestHelper { Uri = MockAPIUrl + "/demo/math/data", Params = new Dictionary <string, string> { }, EnableDebug = true }; request._requestHelper = requestHelper; ServiceCall <MockAPIData> call = ServiceCall <MockAPIData> .Create(request); if (call != null) { call.DoPost(); } }