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; }
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 } }; }
internal CommentNotification(CMsgClientCommentNotifications msg) { CountNewComments = msg.count_new_comments; CountNewCommentsOwner = msg.count_new_comments_owner; CountNewCommentsSubscriptions = msg.count_new_comments_subscriptions; }
internal CommentNotificationCallback(CMsgClientCommentNotifications msg) { CommentNotifications = new CommentNotification(msg); }