public async Task <AppUpdateModel> GetServicesVersion() { var searchurl = GlobalSetting.Instance.GatewayLogisticEndpoint + "/api/App/get?id=Android_TmsLogisticerApp"; OkHttpClient client = new OkHttpClient(); OkHttpClient mOkHttpClient = client.NewBuilder() .SslSocketFactory(HttpsTrustManager.createSSLSocketFactory(), new HttpsTrustManager()) .HostnameVerifier(new TrustAllHostnameVerifier()) .Build(); Request request = new Request.Builder().Url(searchurl).Get().Build(); ICall call = mOkHttpClient.NewCall(request); var response = await call.ExecuteAsync(); var content = await response.Body().StringAsync(); var appupdatemodel = JsonConvert.DeserializeObject <AppUpdateModel>(content); return(appupdatemodel); }