private void GenerateAbsoluteUrl(FindStopParameter parameters) { if (parameters == null) { throw new ArgumentNullException("parameters"); } if (!this.Url.EndsWith("/")) { this.Url += "/"; } this.Url += string.Format("stops/keyword/{0}.rjson?", HttpUtility.UrlEncode(parameters.KeyWord)); }
private System.Collections.Generic.Dictionary<string, string> GetDictionaryParameters(FindStopParameter parameters) { Dictionary<string, string> dic = new Dictionary<string, string>(); dic["returnPosition"] = parameters.ReturnPosition ? "true" : "false"; return dic; }
/// <summary>${iServerJava6R_FindStopService_method_ProcessAsync_param_Parameters}</summary> public void ProcessAsync(FindStopParameter paramer, object state) { GenerateAbsoluteUrl(paramer); base.SubmitRequest(this.Url, GetDictionaryParameters(paramer), new EventHandler<RequestEventArgs>(FindStopService_Complated), state, false, false, false); }