public static DownloadString ( string uri ) : string | ||
uri | string | |
Résultat | string |
/// <summary> /// Obtain information from the update server. Note that this throws exceptions if it fails /// </summary> public static ServerInfo FromServer(string baseUri) { string data = Net.DownloadString(baseUri + "info.json"); return(data == null ? null : JsonConvert.DeserializeObject <ServerInfo>(data)); }
/// <summary> /// Obtain information from the update server. Note that this throws exceptions if it fails /// </summary> public static ServerInfo FromServer(string baseUri) { return(JsonConvert.DeserializeObject <ServerInfo>(Net.DownloadString(baseUri + "_info"))); }