/// <summary> /// Konstruktor /// </summary> /// <param name="nav"></param> /// <param name="events"></param> /// <param name="sync"></param> public BettrFitDataSource() { _sync = new SyncDataViewModel(); Server = "https://www.bettrfit.com"; UserData = new UserVM(); UserGoals = new ObservableCollection<UserGoalVM>(); Auth = new WebAccess.ServiceReference.AuthData(); UserDaily = new ObservableCollection<UserDailyVM>(); NutritionPlanFavorites = new ObservableCollection<NutritionPlanFavoriteVM>(); NutritionPlanLeb = new ObservableCollection<LebensmittelVM>(); SummaryConsumedDaytime = new WebAccess.ServiceReference.SummaryData(); SummaryConsumedDay = new WebAccess.ServiceReference.SummaryData(); _messenger = Mvx.Resolve<IMvxMessenger>(); _mapper = new InitMapper(); _messenger.Subscribe<NetworkEvent>(m => IsNetworkAvailable = m.IsAvailable); LoadAll(); CheckLogin(); //if (ret == 0) //{ // _EventAggregator = Container.Resolve<IEventAggregator>(); // _EventAggregator.GetEvent<LoggedInEvent>().Publish(true); // _ds._loggedIn = true; //} }
public DevQuoteDBContext(DbContextOptions <DevQuoteDBContext> options) : base(options) { InitMapper.Start(); }