Beispiel #1
0
        void RequestVersion()
        {
            WebClient wc   = new WebClient();
            string    json = wc.DownloadString(versionUrl);

            if (json != null)
            {
                requestDataset = Utility.Json.ToObject <RequestTotalDatasetModel>(json);
            }
        }
Beispiel #2
0
    void Start()
    {
        WebClient wc   = new WebClient();
        string    json = wc.DownloadString("http://appadmin.com/api/arproduct/checkDatasetVersion");

        if (json != null)
        {
            Debug.Log(json);
            RequestTotalDatasetModel requestDataset = JsonMapper.ToObject <RequestTotalDatasetModel>(json);
        }
    }