public void deleteBlackListRequest(string c2s_blackListId, Action <PomeloException, DeleteBlackListResponse> cb, object option = null) { var request = new DeleteBlackListRequest(); request.c2s_blackListId = c2s_blackListId; _socket.request <DeleteBlackListResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => { var rsp = msg as DeleteBlackListResponse; s2c_code = rsp.s2c_code; s2c_msg = rsp.s2c_msg; return(s2c_code == 200); }, cb, option); }
/// <summary> /// 邮箱被拉黑之后,用户如果确认收件邮箱有效或者已经处于激活状态,可以从腾讯云地址库中删除该黑名单之后继续投递。 /// </summary> /// <param name="req"><see cref="DeleteBlackListRequest"/></param> /// <returns><see cref="DeleteBlackListResponse"/></returns> public DeleteBlackListResponse DeleteBlackListSync(DeleteBlackListRequest req) { JsonResponseModel <DeleteBlackListResponse> rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteBlackList"); rsp = JsonConvert.DeserializeObject <JsonResponseModel <DeleteBlackListResponse> >(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return(rsp.Response); }