加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Push_Batch_Device.cs 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
supermay 提交于 2016-05-03 03:29 . 增加Response类
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CommLib.BdPush
{
/// <summary>
/// 作者:冼树华
/// QQ:56472465
/// 日期:20150-04-29
/// 功能:推送消息给批量设备(批量单播)
/// </summary>
public sealed class Push_Batch_Device : Baidu_Send
{
#region 构造函数
public Push_Batch_Device(string secret_key, Baidu_Mod mod)
{
this.httpMehtod = Baidu_Helper.HTTP_POST;
this.url = Baidu_Helper.BASE_URL+ Baidu_Helper.PUSH_BATCH_DEVICE;
this.secret_key = secret_key;
this.mod = mod;
}
public Push_Batch_Device(string httpMehtod, string secret_key, Baidu_Mod mod)
{
this.httpMehtod = httpMehtod;
this.url = Baidu_Helper.BASE_URL+ Baidu_Helper.PUSH_BATCH_DEVICE;
this.secret_key = secret_key;
this.mod = mod;
}
#endregion
}
/// <summary>
/// 作者:闲人工作室 Freeman
/// QQ:15832782
/// 日期:2016-05-03
/// </summary>
public sealed class Push_Batch_Device_With_Response : Baidu_Send<Push_Batch_Device_Response>
{
#region 构造函数
public Push_Batch_Device_With_Response(string secret_key, Baidu_Mod mod)
{
this.httpMehtod = Baidu_Helper.HTTP_POST;
this.url = Baidu_Helper.BASE_URL + Baidu_Helper.PUSH_BATCH_DEVICE;
this.secret_key = secret_key;
this.mod = mod;
}
public Push_Batch_Device_With_Response(string httpMehtod, string secret_key, Baidu_Mod mod)
{
this.httpMehtod = httpMehtod;
this.url = Baidu_Helper.BASE_URL + Baidu_Helper.PUSH_BATCH_DEVICE;
this.secret_key = secret_key;
this.mod = mod;
}
#endregion
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化