Timer_Cancel_Mod.cs 938 B

123456789101112131415161718192021222324252627282930313233
  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. /// 功能:取消尚未执行的定时推送任务
  13. /// </summary>
  14. public class Timer_Cancel_Mod : Baidu_Mod
  15. {
  16. #region 属性
  17. public string timer_id {get;set;} //string 是 只有未被执行并且距离实际执行时间一分钟以上的定时任务才能被取消 定时任务ID
  18. #endregion
  19. #region 构造函数
  20. public Timer_Cancel_Mod(string apikey, string timer_id)
  21. {
  22. this.apikey = apikey;
  23. this.timer_id = timer_id;
  24. this.timestamp = Tool.getDefauleTimestamp(); //默认使用当前时间戳
  25. this.device_type = 3; //安卓
  26. }
  27. #endregion
  28. }
  29. }