示例#1
0
        /// <summary>
        /// 撤回消息
        /// </summary>
        /// <param name="msgId">消息Id</param>
        /// <exception cref="ArgumentOutOfRangeException">参数: msgId 超出范围</exception>
        /// <returns>操作成功返回 <see langword="true"/>, 失败返回 <see langword="false"/></returns>
        public bool RemoveMessage(int msgId)
        {
            if (msgId < 0)
            {
                throw new ArgumentOutOfRangeException("msgId");
            }

            return(CQP.CQ_deleteMsg(this.AppInfo.AuthCode, msgId) == 0);
        }
示例#2
0
文件: CqApi.cs 项目: zqu1016/IBoxs
 /// <summary>
 /// 撤回消息
 /// </summary>
 /// <param name="id">消息ID</param>
 /// <returns></returns>
 public int RepealMessage(int id)
 {
     return(Convert.ToInt32(Marshal.PtrToStringAnsi(CQP.CQ_deleteMsg(_authCode, id))));
 }
示例#3
0
 /// <summary>
 /// 撤回消息
 /// </summary>
 /// <param name="id">消息ID</param>
 /// <returns></returns>
 public int RepealMessage(int id)
 {
     return(CQP.CQ_deleteMsg(_authCode, id));
 }