Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
/ SyncApi Public archive

a nuget portable library to sync models in a very convenient way

License

Notifications You must be signed in to change notification settings

famoser/SyncApi

Repository files navigation

SyncApi

This is the library version for the http://github.com/famoser/SyncApi.Webpage

Build status codecov

a nuget portable library to sync entities in a very convenient way.

This library manages the synchronization between multiple installation of an application of the same user. You may save any entity you want, and it will be synced typesafe. Included is some sort of version control (you will be able to access older versions of an entity).

It uses the roaming storage provided by UWP to save user information, all actual data is synced over a php api. The library is heavily customizable, while allowing an easy and straightforward approach for simple use cases.

Code example:

//construct the api helper (storage service is implementated in Famoser.UniversalEssentials for UWP)
IStorageService ss = new StorageService();
var helper = new SyncApiHelper(ss, "my_application_name", "https://api.mywebpage.ch");

//get my repository
var repo = helper.ResolveRepository<NoteModel>();

//save my model
await repo.SaveAsync(new NoteModel { Content = "Hallo Welt!" });

//retrieve it later on
ObservableCollection<NoteModel> coll = await repo.GetAllAsync();

About

a nuget portable library to sync models in a very convenient way

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages