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

famoser/SyncApi.Webpage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SyncApi

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

Travis Build Status Code Climate Codacy Badge Scrutinizer Test Coverage CircleCI

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

the server application for SyncApi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published