Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f46be3ca authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

Implement new class SyncRequest

This class and subclasses will be passed from ObserverService and FileObserver to SynchronizationService
instead of RemoteOperation (UploadFileOperation, RemoveFileOperation, DownloadFileOperation)
The naming is more clear, and ObserverService doesn't have to create the RemoteOperation wich is out of its scope.

The design isn't yet full complete so this Commit might be updated
As it is now, the implementation isn't complete so the build won't succeed.

Changes:
- Add SyncRequest class into models package
- Add UploadRequest as subclass of SyncRequest
- Add DownloadRequest as Subclass of Syncrequest
- Replace ComparableOperation in ObserverService and in SynchronizationService by SyncRequest
- Add a method "CreateRemoteOperation(SyncRequest request" in SynchronizationService
parent 67c7a85b
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment