public MessageUsViewModel(IAggregateService aggregateService, IDrumbleApiService DrumbleApi)
            : base(ApplicationPage.MessageUs, aggregateService)
        {
            if (DrumbleApi == null)
                throw new ArgumentNullException("DrumbleApi");

            this.DrumbleApi = DrumbleApi;
        }
示例#2
0
        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);
        }
示例#5
0
        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));
        }
示例#6
0
 public async Task <bool> RegisterEmail(IDrumbleApiService DrumbleApi, CancellationToken cancellationToken, Email email)
 {
     return(await DrumbleApi.RegisterEmail(cancellationToken, this, email));
 }
示例#7
0
 public async Task<bool> RegisterEmail(IDrumbleApiService DrumbleApi, CancellationToken cancellationToken, Email email)
 {
     return await DrumbleApi.RegisterEmail(cancellationToken, this, email);
 }