/// <summary> /// Sets the method name wich has been executed /// </summary> /// <param name="methodName">Method name</param> /// <returns>this</returns> public ApiManager Method(string methodName) { this.MethodSuccessed = false; ApiRequest.Timeout = this.Timeout; this.builder = new ApiQueryBuilder(this.appId, this.session); this.builder.Add("method", methodName); if (this.ResponseAs == ResponseType.Json) { this.builder.Add("format", "json"); } this.debugMsg("Method: " + methodName); return(this); }
/// <summary> /// Sets the method name wich has been executed /// </summary> /// <param name="methodName">Method name</param> /// <returns>this</returns> public ApiManager Method(string methodName, bool getXml = false) { this.MethodSuccessed = false; ApiRequest.Timeout = this.Timeout; this.builder = new ApiQueryBuilder(this.appId, this.session); this.builder.Method(methodName, getXml); this.debugMsg("Method: " + methodName); return this; }
/// <summary> /// Sets the method name wich has been executed /// </summary> /// <param name="methodName">Method name</param> /// <returns>this</returns> public ApiManager Method(string methodName) { this.MethodSuccessed = false; this.isCancelled = false; this.LastMethod = methodName; this.builder = new ApiQueryBuilder(this.appId, this.session); this.builder.Add("method", methodName); if (this.ResponseAs == ResponseType.Json) { this.builder.Add("format", "json"); } this.DebugMessage("Method: " + methodName); return this; }
/// <summary> /// Sets the method name wich has been executed /// </summary> /// <param name="methodName">Method name</param> /// <returns>this</returns> public ApiManager Method(string methodName) { this.MethodSuccessed = false; ApiRequest.Timeout = this.Timeout; this.builder = new ApiQueryBuilder(this.appId, this.session); this.builder.Add("method", methodName); if (this.ResponseAs == ResponseType.Json) { this.builder.Add("format", "json"); } this.debugMsg("Method: " + methodName); return this; }