• Xamarin 简单的网络请求


     //try
                //{
                //    var httpReq = (HttpWebRequest)HttpWebRequest.Create(new Uri(replaceUrl));
                //    var httpRes = (HttpWebResponse)httpReq.GetResponse();
                //    if (httpRes.StatusCode == HttpStatusCode.OK)
                //    {
                //        string res = new StreamReader(httpRes.GetResponseStream()).ReadToEnd();
                //        res = res.Replace(""", "'");
                //        Model.Version result = res.ToObject<Model.Version>();
                //        if (result != null && result.State && result.EjePdaList != null && result.EjePdaList.Count > 0)
                //        {
                //            if (versionName != result.EjePdaList[0].Vosoin)
                //            {

                //                AlertDialogBuilder(pack, "下载更新", result.EjePdaList[0].Rem, result.EjePdaList[0].Geturl);
                //            }

                //        }
                //    }
                //}
                //catch (Exception ex)
                //{
                //    this.ApplicationContext.MessagesShow("接口错误:" + ex.Message);
                //}

  • 相关阅读:
    加密
    python数据类型
    json
    xml
    物理层
    计算机网络概述
    js之BOM概述
    消息队列介绍
    linux bond nmcli命令
    linux iostat
  • 原文地址:https://www.cnblogs.com/LuoEast/p/8119838.html
Copyright © 2020-2023  润新知