예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="content"></param>
        public static void Send(string content)
        {
            var broadcastService = new DdzBroadcastService(null);
            var msg = broadcastService.Create(NoticeType.System, content);

            broadcastService.Send(msg);
        }
예제 #2
0
 /// <summary>
 /// 发送
 /// </summary>
 /// <param name="content"></param>
 /// <param name="times">发送次数</param>
 /// <param name="secondInvertal">间隔发送</param>
 public static void SendTimer(string content, int times, int secondInvertal)
 {
     var broadcastService = new DdzBroadcastService(null);
     var msg = broadcastService.Create(NoticeType.System, content);
     string startTime = DateTime.Now.ToString("HH:mm:ss");
     string endTime = DateTime.Now.AddSeconds(times * secondInvertal).ToString("HH:mm:ss");
     broadcastService.SendTimer(msg, startTime, endTime, true, secondInvertal);
 }
예제 #3
0
 /// <summary>
 /// 发送
 /// </summary>
 /// <param name="content"></param>
 /// <param name="times">发送次数</param>
 /// <param name="secondInvertal">间隔发送</param>
 public static void SendTimer(string content, int times, int secondInvertal)
 {
     var broadcastService = new DdzBroadcastService(null);
     var msg = broadcastService.Create(NoticeType.System, content);
     string startTime = DateTime.Now.ToString("HH:mm:ss");
     string endTime = DateTime.Now.AddSeconds(times * secondInvertal).ToString("HH:mm:ss");
     broadcastService.SendTimer(msg, startTime, endTime, true, secondInvertal);
 }
예제 #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="content"></param>
 public static void Send(string content)
 {
     var broadcastService = new DdzBroadcastService(null);
     var msg = broadcastService.Create(NoticeType.System, content);
     broadcastService.Send(msg);
 }