/// <summary> /// Инициализирует новый экземпляр класса <see cref="LoginViewModel"/>. /// </summary> /// <param name="navigationService">Сервис навигации.</param> /// <param name="loginService">Сервис авторизации ВКонтакте.</param> public LoginViewModel(INavigationService navigationService, IVKLoginService loginService, IVKLongPollService vkLongPollService) { this.navigationService = navigationService; this.loginService = loginService; LoginCommand = new DelegateCommand(OnLoginCommand); }
public TestViewModel(IAppNotificationsService appNotificationsService, IVKLongPollService vkLongPollService, IGrooveMusicService gms, IPushNotificationsService pushNotificationsService, ISettingsService settingsService) { this.appNotificationsService = appNotificationsService; this.vkLongPollService = vkLongPollService; this.gms = gms; this.pushNotificationsService = pushNotificationsService; this.settingsService = settingsService; ShowSimplePush = new DelegateCommand <string>(OnShowSimplePush); ShowCustomPush = new DelegateCommand(OnShowCustomPush); DeserializeLongPollResponse = new DelegateCommand(OnDeserializeLongPollResponse); }
private void VKLongPollService_ServiceStarted(IVKLongPollService sender, EventArgs args) { OnPropertyChanged(nameof(LongPollServiceState)); }
private void VKLongPollService_ServiceStopped(IVKLongPollService sender, VKLongPollServiceStopReason args) { OnPropertyChanged(nameof(LongPollServiceState)); }