Ejemplo n.º 1
0
        public static void DeleteComment(Token token, string statusId, string id, Action callBackSuccess, Action <string> callBackError)
        {
            string url = string.Format(Constact.StatusDeleteComment, statusId, id);

            HttpBase.Delete(url, token, (response) => {
                if (response.IsSuccess)
                {
                    callBackSuccess();
                }
                else
                {
                    callBackError(response.Message);
                }
            });
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 删除问答的回答
        /// </summary>
        /// <returns></returns>
        public static void DeleteQuestionAnswer(Token token, int questionId, int answerId, Action <string> callBackError, Action callBackSuccess)
        {
            string url = string.Format(Constact.QuestionDeleteAnswer, questionId, answerId);

            HttpBase.Delete(url, token, (response) => {
                if (response.IsSuccess)
                {
                    callBackSuccess();
                }
                else
                {
                    callBackError(response.Message);
                }
            });
        }
Ejemplo n.º 3
0
        public static void Delete(Token token, int id, Action <ResponseMessage> callBack)
        {
            string url = string.Format(Constact.BookMarks_delete, id);

            HttpBase.Delete(url, token, callBack);
        }