-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaked the Synchronizer to fit talk android specifications and updat…
…ed OfflineFirstChatRepository to reflect the changes Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
- Loading branch information
1 parent
d2cba8b
commit bc8f5e3
Showing
5 changed files
with
57 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
app/src/main/java/com/nextcloud/talk/data/changeListVersion/ChangeListVersions.kt
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
app/src/main/java/com/nextcloud/talk/data/changeListVersion/NetworkChangeList.kt
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
app/src/main/java/com/nextcloud/talk/data/changeListVersion/SyncableModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Nextcloud Talk - Android Client | ||
* | ||
* SPDX-FileCopyrightText: 2024 Julius Linus <juliuslinus1@gmail.com> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
|
||
package com.nextcloud.talk.data.changeListVersion | ||
|
||
/** | ||
* Models any changes from the network, agnostic to what data is being modeled. | ||
* Implemented by Models that support offline synchronization. | ||
*/ | ||
interface SyncableModel { | ||
|
||
/** | ||
* Model identifier. | ||
*/ | ||
var changedId: Long | ||
|
||
/** | ||
* Model deletion checker. | ||
*/ | ||
var markedForDeletion: Boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters