/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="appCore"></param>
 /// <param name="dataBase"></param>
 /// <param name="restMng"></param>
 public SynchronizationManager(AppCore appCore, Database dataBase, RestMng restMng)
 {
     this.appCore  = appCore;
     this.dataBase = dataBase;
     this.restMng  = restMng;
     this.appCore.setSynchMng(this);
     this.serverConnection = false;
     this.TaskIsRunning    = false;
     MessagingCenter.Subscribe <AppCore, bool>(this, "ServerConnectionChange", (sender, serverConnection) => { SetServerConnection(serverConnection); });
 }
Exemple #2
0
        /// <summary>
        /// Initiation of all application-modules
        /// </summary>
        private void initAppComponents()
        {
            restMng = new RestMng(Global.restAd);

            dataBase         = new Database();
            bluetoothManager = new BluetoothManager();

            appCore = AppCore.Instance;
            appCore.SetDatabase(dataBase);
            appCore.SetRestMng(restMng);
            synchMng = new SynchronizationManager(appCore, dataBase, restMng);
            wifiMng  = new WifiConnectionManager(appCore, synchMng);
        }
Exemple #3
0
 public void SetRestMng(RestMng restMng)
 {
     this.restMng = restMng;
 }