Exemplo n.º 1
0
 public App(IAuthPlatformSpecific platformSpecificAuth, string appVersion, IUriLauncher uriLauncher)
 {
     this.MixRadioClient    = new MusicClient(ApiKeys.ClientId);
     this.AuthHelper        = new AuthHelper(platformSpecificAuth, this.MixRadioClient);
     this.ActivityViewModel = new ActivityViewModel(this.MixRadioClient, this.AuthHelper);
     this.AppVersion        = appVersion;
     this.UriLauncher       = uriLauncher;
     this.MainPage          = new RootPage();
 }
Exemplo n.º 2
0
		public App(IAuthPlatformSpecific platformSpecificAuth, string appVersion, IUriLauncher uriLauncher)
        {
			this.MixRadioClient = new MusicClient (ApiKeys.ClientId);
			this.AuthHelper = new AuthHelper (platformSpecificAuth, this.MixRadioClient);
			this.ActivityViewModel = new ActivityViewModel (this.MixRadioClient, this.AuthHelper);
			this.AppVersion = appVersion;
			this.UriLauncher = uriLauncher;
			this.MainPage = new RootPage ();
        }
Exemplo n.º 3
0
 public UICommand(IUriLauncher uriLauncher, IPreferences preferences)
 {
     _uriLauncher = uriLauncher ?? throw new ArgumentNullException(nameof(uriLauncher));
     _preferences = preferences ?? throw new ArgumentNullException(nameof(preferences));
 }
Exemplo n.º 4
0
 public UICommand(IUriLauncher uriLauncher)
 {
     UriLauncher = uriLauncher ?? throw new ArgumentNullException(nameof(uriLauncher));
 }