예제 #1
0
        private void StoreGlobalInfo()
        {
            if (!ApplicationInfo.DataStorageUsed)
            {
                return;
            }

            // We store a snapshot of presences
            DataStorage.StoreAggregatedPresences(RbContacts.GetAllAggregatedPresences());
            DataStorage.StorePresences(RbContacts.GetAllPresences());

            // We store a snapshot of Contacts
            DataStorage.StoreContacts(RbContacts.GetAllContactsFromCache());
            DataStorage.StoreCurrentContact(RbContacts.GetCurrentContact());

            // We store a snapshot of Bubbles
            DataStorage.StoreBubbles(RbBubbles.GetAllBubblesFromCache());

            // We store a snapshot of Files Descrpitor
            DataStorage.StoreFilesDescriptor(RbFiles.GetAllFilesDescriptorFromCache());
            DataStorage.StoreConversationsByFilesDescriptor(RbFiles.GetAllConversationIdByFilesDescriptorIdFromCache());
        }