コード例 #1
0
        private void ActualiserListeNotifications(object sender, NotificationsEventArgs args)
        {
            Notification notificationSelectionneeTemporaire = NotificationSelectionnee;

            Notifications.Clear();
            foreach (Notification notification in args.Notifications)
            {
                Notifications.Add(notification);
            }
            NotificationSelectionnee = notificationSelectionneeTemporaire;
        }
コード例 #2
0
        /// <summary>
        /// 传给服务端处理事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnServerHandler(object sender, NotificationsEventArgs e)
        {
            NotificationsVo   notifications     = JsonConvert.DeserializeObject <NotificationsVo>(e.Notifications.Message);
            NotificationsType notificationsType = (NotificationsType)Enum.Parse(typeof(NotificationsType), notifications.type, true);

            switch (notificationsType)
            {
            case NotificationsType.receipt_send:
            case NotificationsType.receipt_offline:
                int status    = (int)MessageStatusEumns.Complete;
                int MessageId = Convert.ToInt32(e.Notifications.NotificationTag);
                DataHandleManager.Instance().RtMessageHandle.UpdateAvailResult(MessageId, status, DateTime.Now, notifications.type);
                break;
            }
        }
コード例 #3
0
 /// <summary>
 /// 发送消息回调事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnSendHandle(object sender, NotificationsEventArgs e)
 {
 }