public RequestViewModel( INavigationRequestService navigationRequestService, IMapRepository mapRepository, IMvxNavigationService mvxNavigationService ) { _navigationRequestService = navigationRequestService; _mvxNavigationService = mvxNavigationService; _mapRepository = mapRepository; DeclineRequestCommand = new MvxCommand(DeclineRequestAsync); AcceptRequestCommand = new MvxCommand(AcceptRequestAsync); }
public ChatViewModel( INavigateRequestRepository navigateRequestRepository, INavigationRequestService navigationRequestService, IMessageRepository messageRepository, IMvxNavigationService mvxNavigationService ) { _navigateRequestRepository = navigateRequestRepository; _navigationRequestService = navigationRequestService; _messageRepository = messageRepository; _mvxNavigationService = mvxNavigationService; AddNewMessageCommand = new MvxCommand(CreateNewMessageAsync); SendNavigationRequestCommand = new MvxCommand(SendNavigationRequestAsync); }
public MapViewModel( IMapRepository mapRepository, IUserRepository userRepository, INavigateRequestRepository navigateRequestRepository, INavigationRequestService navigationRequestService, IMvxNavigationService mvxNavigationService, IFirebaseAuthService firebaseAuthService, ILocationUpdateService locationUpdateService ) { _mapRepository = mapRepository; _userRepository = userRepository; _navigateRequestRepository = navigateRequestRepository; _navigationRequestService = navigationRequestService; _mvxNavigationService = mvxNavigationService; _firebaseAuthService = firebaseAuthService; SendNavigationFriendListRequestCommand = new MvxCommand(SendEndNavigationAndMarkAsEndedAsync); OnLocationChangeCommand = new MvxCommand(OnLocationChangedAsync); _locationUpdateService = locationUpdateService; _locationUpdateService.LocationChanged += LocationUpdateService_LocationChanged; }