${IS6_GetBusSolutionResult_Title}

${IS6_GetBusSolutionResult_Description}

コード例 #1
0
        /// <summary>${IS6_GetBusSolutionResult_method_fromJSON_D}</summary>
        /// <returns>${IS6_GetBusSolutionResult_method_fromJSON_Return}</returns>
        /// <param name="jsonArray">${IS6_GetBusSolutionResult_method_fromJSON_param}</param>
        public static GetBusSolutionResult FromJson(JsonArray jsonArray)
        {
            if (jsonArray != null && jsonArray.Count > 0)
            {
                GetBusSolutionResult result = new GetBusSolutionResult();
                result.BusSolutions = new List<BusSolution>();
                for (int i = 0; i < jsonArray.Count; i++)
                {
                    result.BusSolutions.Add(BusSolution.FromJson((JsonObject)jsonArray[i]));
                }

                return result;
            }
            return null;
        }
コード例 #2
0
 /// <summary>${IS6_GetBusSolutionEventArgs_constructor_D}</summary>
 public GetBusSolutionEventArgs(GetBusSolutionResult result, string originResult, object token)
     : base(token)
 {
     Result = result;
     OriginResult = originResult;
 }
コード例 #3
0
 private void request_Completed(object sender, RequestEventArgs e)
 {
     JsonArray jsonArray = (JsonArray)JsonObject.Parse(e.Result);
     GetBusSolutionResult result = GetBusSolutionResult.FromJson(jsonArray);
     LastResult = result;
     GetBusSolutionEventArgs args = new GetBusSolutionEventArgs(result, e.Result, e.UserState);
     OnProcessCompleted(args);
 }