blob: e5f13e39469f9b3d63246b95da73395a995469b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PPC.Common.Application;
using Tango.PPC.Common.Authentication;
using Tango.PPC.Common.Navigation;
using Tango.PPC.Common.Notifications;
using Tango.Settings;
using Tango.SharedUI;
namespace Tango.PPC.Common
{
public abstract class PPCViewModel : ViewModel
{
public IPPCApplicationManager ApplicationManager { get; private set; }
public IAuthenticationProvider AuthenticationProvider { get; private set; }
public INavigationManager NavigationManager { get; private set; }
public INotificationProvider NotificationProvider { get; private set; }
public PPCSettings Settings { get; private set; }
public PPCViewModel(IPPCApplicationManager application, IAuthenticationProvider authentication, INavigationManager navigation, INotificationProvider notification)
{
ApplicationManager = application;
AuthenticationProvider = authentication;
NavigationManager = navigation;
NotificationProvider = notification;
Settings = SettingsManager.Default.GetOrCreate<PPCSettings>();
}
public abstract void OnApplicationStarted();
}
}
|