Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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

About

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

Topics

Resources

License

Packages

No packages published

Languages