public MessageUsViewModel(IAggregateService aggregateService, IDrumbleApiService DrumbleApi) : base(ApplicationPage.MessageUs, aggregateService) { if (DrumbleApi == null) throw new ArgumentNullException("DrumbleApi"); this.DrumbleApi = DrumbleApi; }
public LoginViewModel(IAggregateService aggregateService, IDrumbleApiService DrumbleApi) : base(ApplicationPage.Login, aggregateService) { if (DrumbleApi == null) throw new ArgumentNullException("DrumbleApi"); this.DrumbleApi = DrumbleApi; Messenger.Default.Register<LoginMessage>(this, (action) => PageState(action)); }
public AuthoriseViewModel(IAggregateService aggregateService, IDrumbleApiService DrumbleApi) : base(ApplicationPage.Authorise, aggregateService) { if (DrumbleApi == null) { throw new ArgumentNullException("DrumbleApi"); } this.DrumbleApi = DrumbleApi; }
public SplashScreenViewModel(IAggregateService aggregateService, IDrumbleApiService DrumbleApiService, IBumbleApiService BumbleApiService) : base(ApplicationPage.SplashScreen, aggregateService) { this.DrumbleApiService = DrumbleApiService; this.BumbleApiService = BumbleApiService; Messenger.Default.Register <SplashScreenMessage>(this, (action) => SetPageState(action)); // Seed database. databaseCreated = DatabaseSetup.Seed(aggregateService.UnitOfWork); }
public LoginViewModel(IAggregateService aggregateService, IDrumbleApiService DrumbleApi) : base(ApplicationPage.Login, aggregateService) { if (DrumbleApi == null) { throw new ArgumentNullException("DrumbleApi"); } this.DrumbleApi = DrumbleApi; Messenger.Default.Register <LoginMessage>(this, (action) => PageState(action)); }
public async Task <bool> RegisterEmail(IDrumbleApiService DrumbleApi, CancellationToken cancellationToken, Email email) { return(await DrumbleApi.RegisterEmail(cancellationToken, this, email)); }
public async Task<bool> RegisterEmail(IDrumbleApiService DrumbleApi, CancellationToken cancellationToken, Email email) { return await DrumbleApi.RegisterEmail(cancellationToken, this, email); }