a nuget portable library to sync models in a very convenient way
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Famoser.SyncApi.UnitTests
Famoser.SyncApi
.gitattributes
.gitignore
Famoser.SyncApi.nuspec
Famoser.SyncApi.sln
Famoser.SyncApi.sln.DotSettings
LICENSE
README.md
appveyor.yml

README.md

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();