/// <summary> /// 推送订阅消息 /// </summary> public ApiResult <SubscribeMessageSendResponse> SubscribeMessageSend(SubscribeMessageSendRequest request) { if (request == null) { return(new ApiResult <SubscribeMessageSendResponse>() { message = "require parameters" }); } return(GetResponseFromAsyncTask(SubscribeMessageSendtAsync(request))); }
/// <summary> /// 推送订阅消息 的异步形式。 /// </summary> /// <param name="request"></param> /// <returns></returns> public Task <ApiResult <SubscribeMessageSendResponse> > SubscribeMessageSendtAsync(SubscribeMessageSendRequest request) { return(CallAsync <SubscribeMessageSendRequest, SubscribeMessageSendResponse>("subscribemessagesend", request, System.Net.Http.HttpMethod.Post)); }
/// <summary> /// 发送订阅消息 /// </summary> public async Task <SubscribeMessageSendResponse> Send(SubscribeMessageSendRequest request) { return(await _client.SendAsync <SubscribeMessageSendResponse>(request)); }