Timer_Query_List_Mod.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace CommLib.BdPush
  7. {
  8. /// <summary>
  9. /// 作者:冼树华
  10. /// QQ:56472465
  11. /// 日期:20150-04-29
  12. /// 功能:查看还未执行的定时任务,每个应用可设置的有效的定时任务有限制(目前为10个)。
  13. /// </summary>
  14. public class Timer_Query_List_Mod : Baidu_Mod
  15. {
  16. #region 属性
  17. public string timer_id{get;set;} //string 否 推送接口返回的timer_id唯一标识一个定时推送任务 如果指定该参数,将仅返回该timer_id对应定时任务的相关信息
  18. public uint start {get;set;} //number 否 整数,默认为0 指定返回记录的起始索引位置
  19. public uint limit {get;set;} //number 否 整数:[1,100],默认100 返回的记录条数
  20. #endregion
  21. #region 构造函数
  22. public Timer_Query_List_Mod(string apikey)
  23. {
  24. this.apikey = apikey;
  25. this.start = 0;
  26. this.limit = 10;
  27. this.timestamp = Tool.getDefauleTimestamp(); //默认使用当前时间戳
  28. this.device_type = 3; //安卓
  29. }
  30. public Timer_Query_List_Mod(string apikey, string timer_id)
  31. {
  32. this.apikey = apikey;
  33. this.timer_id = timer_id;
  34. this.start = 0;
  35. this.limit = 10;
  36. this.timestamp = Tool.getDefauleTimestamp(); //默认使用当前时间戳
  37. this.device_type = 3; //安卓
  38. }
  39. #endregion
  40. }
  41. }