internal ClientCommentNotificationsCallback(JobID jobId, CMsgClientCommentNotifications body)
 {
     JobID           = jobId;
     Comments        = body.count_new_comments;
     ProfileComments = body.count_new_comments_owner;
     Subscriptions   = body.count_new_comments_subscriptions;
 }
Example #2
0
        private void HandleClientCommentNotifications(IPacketMsg packetMsg)
        {
            var clientCommentNotifications = new ClientMsgProtobuf <CMsgClientCommentNotifications>(packetMsg);

            CMsgClientCommentNotifications result = clientCommentNotifications.Body;

            Client.PostCallback(new CommentNotificationCallback(result));
        }
            internal UserNotificationsCallback(JobID jobID, CMsgClientCommentNotifications msg)
            {
                if ((jobID == null) || (msg == null))
                {
                    throw new ArgumentNullException(nameof(jobID) + " || " + nameof(msg));
                }

                JobID         = jobID;
                Notifications = new Dictionary <EUserNotification, uint>(1)
                {
                    { EUserNotification.Comments, msg.count_new_comments + msg.count_new_comments_owner + msg.count_new_comments_subscriptions }
                };
            }
Example #4
0
 internal CommentNotification(CMsgClientCommentNotifications msg)
 {
     CountNewComments              = msg.count_new_comments;
     CountNewCommentsOwner         = msg.count_new_comments_owner;
     CountNewCommentsSubscriptions = msg.count_new_comments_subscriptions;
 }
Example #5
0
 internal CommentNotificationCallback(CMsgClientCommentNotifications msg)
 {
     CommentNotifications = new CommentNotification(msg);
 }