${IS6_GetBusLineResult_Title}

${IS6_GetBusLineResult_Description}

コード例 #1
0
        /// <summary>${IS6_GetBusLineResult_method_fromJSON_D}</summary>
        /// <returns>${IS6_GetBusLineResult_method_fromJSON_Return}</returns>
        /// <param name="json">${IS6_GetBusLineResult_method_fromJSON_param}</param>
        public static GetBusLineResult FromJson(JsonArray json)
        {
            if (json != null && json.Count > 0)
            {
                GetBusLineResult result = new GetBusLineResult();
                result.BusLines = new List<BusLine>();

                for (int i = 0; i < json.Count; i++)
                {
                    result.BusLines.Add(BusLine.FromJson((JsonObject)json[i]));
                }

                return result;
            }
            return null;
        }
コード例 #2
0
 /// <summary>${IS6_GetBusLineEventArgs_constructor_D}</summary>
 public GetBusLineEventArgs(GetBusLineResult 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);

            GetBusLineResult result = GetBusLineResult.FromJson(jsonArray);
            LastResult = result;
            GetBusLineEventArgs args = new GetBusLineEventArgs(result, e.Result, e.UserState);
            OnProcessCompleted(args);
        }