${IS6_IsoRegionResult_Title}
${IS6_IsoRegionResult_Description}
internal static IsoRegionResult FromJson(System.Json.JsonObject jsonObject) { IsoRegionResult result = new IsoRegionResult(); if (jsonObject != null) { if (jsonObject.ContainsKey("succeed")) { result.Succeed = (bool)jsonObject["succeed"]; } if (jsonObject.ContainsKey("resultDataset")) { result.DatasetName = jsonObject["resultDataset"]; } if (jsonObject.ContainsKey("message")) { result.Message = jsonObject["message"]; } if (jsonObject.ContainsKey("isoRegions") && jsonObject["isoRegions"] != null) { List<Entity> list = new List<Entity>(); JsonArray array = (JsonArray)jsonObject["isoRegions"]; foreach (var item in array) { if (item != null) { JsonObject itemJson = (JsonObject)item; list.Add(Entity.FromJson(itemJson)); } } result.IsoRegions = list; } } return result; }
/// <summary> ${IS6_IsoRegionEventArgs_constructor_D} </summary> /// <param name="result">${IS6_IsoRegionEventArgs_constructor_param_result}</param> /// <param name="originResult">${IS6_IsoRegionEventArgs_constructor_param_originResult}</param> /// <param name="token">${IS6_IsoRegionEventArgs_constructor_param_token}</param> public IsoRegionEventArgs(IsoRegionResult result, string originResult, object token) : base(token) { Result = result; OriginResult = originResult; }
private void request_Completed(object sender, RequestEventArgs e) { JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result); IsoRegionResult result = IsoRegionResult.FromJson(jsonObject); LastResult = result; IsoRegionEventArgs args = new IsoRegionEventArgs(result, e.Result, e.UserState); OnProcessCompleted(args); }