Export to GitHub

txopent - issue #1

缺漏的点评一条微博方法


Posted on May 4, 2011 by Helpful Rhino
    #region 点评一条微博
    /// <summary>
    /// 点评一条微博
    /// </summary>
    /// <param name="reid">点评的根结点(不是父节点)微博id</param>
    /// <param name="content">点评内容</param>
    /// <param name="clientip">用户ip(以分析用户所在地)</param>
    /// <returns>点评的返回结果</returns>
    public TweetOperateResult Comment(long reid, String content, String clientip)
    {
        return this.Comment(reid, content, clientip, null, null);
    }

    /// <summary>
    /// 点评一条微博
    /// </summary>
    /// <param name="reid">点评的根结点(不是父节点)微博id</param>
    /// <param name="content">点评内容</param>
    /// <param name="clientip">用户ip(以分析用户所在地)</param>
    /// <param name="jing">经度(可以填空)</param>
    /// <param name="wei">纬度(可以填空)</param>
    /// <returns>点评的返回结果</returns>
    public TweetOperateResult Comment(long reid, String content, String clientip, String jing, String wei)
    {
        return this.Comment("http://open.t.qq.com/api/t/comment", reid, content, clientip, jing, wei);
    }

    /// <summary>
    /// 点评一条微博
    /// </summary>
    /// <param name="requestUrl">API请求地址</param>
    /// <param name="reid">点评的根结点(不是父节点)微博id</param>
    /// <param name="content">点评内容</param>
    /// <param name="clientip">用户ip(以分析用户所在地)</param>
    /// <param name="jing">经度(可以填空)</param>
    /// <param name="wei">纬度(可以填空)</param>
    /// <returns>点评的返回结果</returns>
    public TweetOperateResult Comment(String requestUrl, long reid, String content, String clientip, String jing, String wei)
    {
        Parameters iParameters = new Parameters();
        iParameters.Add("format", this.ResponseDataFormat.ToString().ToLower());
        iParameters.Add("content", content);
        iParameters.Add("clientip", clientip);
        iParameters.Add("jing", jing);
        iParameters.Add("wei", wei);
        iParameters.Add("reid", reid);

        return this.GetResponseData<TweetOperateResult>(requestUrl, iParameters, null);
    }
    #endregion

Status: New

Labels:
Type-Defect Priority-Medium