Beispiel #1
0
        public void AddReadUnread(byte[] folderId, List <byte[]> readMessages, List <byte[]> unreadMessages)
        {
            FolderUpdates folderUpdates = this[folderId];

            folderUpdates.ReadMessages   = readMessages;
            folderUpdates.UnreadMessages = unreadMessages;
        }
Beispiel #2
0
 public FolderUpdates this[byte[] folderId]
 {
     get
     {
         FolderUpdates folderUpdates;
         if (!this.FolderData.TryGetValue(folderId, out folderUpdates))
         {
             folderUpdates = new FolderUpdates(folderId);
             this.folderData.Add(folderId, folderUpdates);
         }
         return(folderUpdates);
     }
 }
Beispiel #3
0
        public void AddMessage(byte[] folderId, byte[] messageId, MessageUpdateType updateType)
        {
            FolderUpdates folderUpdates = this[folderId];

            folderUpdates.GetListForUpdateType(updateType, true).Add(messageId);
        }