Class for building url queries to vkontakte api
示例#1
0
 /// <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);
 }
示例#2
0
        /// <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;
        }
示例#3
0
        /// <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;
        }
示例#4
0
 /// <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;
 }