/// <summary>
        /// Initializes a new instance of the <see cref="T:CustomerPortalApp.ViewModels.DashboardPageViewModel"/> class.
        /// </summary>
        /// <param name="dialogService">Dialog service.</param>
        /// <param name="authenticationFacade">Authentication facade.</param>
        /// <param name="settingsFacade">Settings facade.</param>
        /// <param name="propertyFacade">Property facade.</param>
        /// <param name="storyFacade">Story facade.</param>
        /// <param name="keychainService">Keychain service.</param>
        public DashboardPageViewModel(
            IPageDialogService dialogService,
            IAuthenticationFacade authenticationFacade,
            ISettingsFacade settingsFacade,
            INavigationService navigationService,
            IPropertyFacade propertyFacade,
            IStoryFacade storyFacade,
            IKeychainService keychainService)
            : base(dialogService, authenticationFacade)
        {
            this.keychainService   = keychainService;
            this.settingsFacade    = settingsFacade;
            this.propertyFacade    = propertyFacade;
            this.storyFacade       = storyFacade;
            this.Title             = Constants.PageTitleDashboard;
            this.navigationService = navigationService;

            this.properties    = new ObservableCollection <PropertyViewModel>();
            this.Communities   = new ObservableCollection <StoryViewModel>();
            this.Events        = new ObservableCollection <StoryViewModel>();
            this.ActiveTabData = new ObservableCollection <StoryViewModel>();

            this.ExecuteAsyncTask(async() =>
            {
                await Task.WhenAll(new Task[] {
                    this.LoadProperty(),
                    this.LoadStories("event"),
                    this.LoadStories("story")
                });
            }).Forget();

            PopulateFakeProperties();
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 public PropertyController(
     IAuthAdapter authAdapter,
     IPropertyFacade propertyFacade,
     IPropertyAdapter propertyAdapter)
 {
     this.authAdapter = authAdapter;
     this.propertyFacade = propertyFacade;
     this.propertyAdapter = propertyAdapter;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 public PropertyController(
     IAuthAdapter authAdapter,
     IPropertyFacade propertyFacade,
     IPropertyAdapter propertyAdapter)
 {
     this.authAdapter     = authAdapter;
     this.propertyFacade  = propertyFacade;
     this.propertyAdapter = propertyAdapter;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyDetailsPageViewModel"/> class.
 /// Initializes a new instance of the
 ///     <see cref="PropertyDetailsPageViewModel"/>
 ///     class.
 ///     Initializes a new instance of the
 ///     <see cref="PropertyDetailsPageViewModel"/>
 ///     class.
 ///     Initializes a new instance of the
 ///     <see cref="PropertyDetailsPageViewModel"/>
 ///     class.
 /// </summary>
 /// <param name="dialogService">
 /// The dialog service.
 /// </param>
 /// <param name="authenticationFacade">
 /// The authentication facade.
 /// </param>
 /// <param name="propertyFacade">
 /// The property facade.
 /// </param>
 /// <param name="keychainService">
 /// The keychain Service.
 /// </param>
 public PropertyDetailsPageViewModel(
     IPageDialogService dialogService,
     IAuthenticationFacade authenticationFacade,
     IPropertyFacade propertyFacade,
     IKeychainService keychainService,
     INavigationService navigationService)
     : base(dialogService, authenticationFacade, navigationService)
 {
     this.propertyFacade  = propertyFacade;
     this.keychainService = keychainService;
 }
 public AccountStatementsPageViewModel(IPageDialogService dialogService,
                                       IAuthenticationFacade authenticationFacade,
                                       IPropertyFacade propertyFacade,
                                       IKeychainService keychainService,
                                       INavigationService navigationService)
     : base(dialogService, authenticationFacade, navigationService)
 {
     this.propertyFacade  = propertyFacade;
     this.keychainService = keychainService;
     this.properties      = new PropertyViewModel();
     this.Statements      = new ObservableCollection <StatementsViewModel>();
     this.CurrentBalance  = new ObservableCollection <StatementsViewModel>();
 }
예제 #6
0
 public ListingController(
     IPropertyAdapter propertyAdapter,
     ISearchAdapter searchAdapter,
     IAuthAdapter authAdapter,
     IListingAdapter listingAdapter,
     IFeaturedAdapter featuredAdapter,
     IPropertyFacade propertyFacade)
 {
     this.propertyAdapter = propertyAdapter;
     this.searchAdapter   = searchAdapter;
     this.authAdapter     = authAdapter;
     this.listingAdapter  = listingAdapter;
     this.featuredAdapter = featuredAdapter;
     this.propertyFacade  = propertyFacade;
 }
예제 #7
0
        public ListingController(
			IPropertyAdapter propertyAdapter,
			ISearchAdapter searchAdapter,
			IAuthAdapter authAdapter,
			IListingAdapter listingAdapter,
			IFeaturedAdapter featuredAdapter,
			IPropertyFacade propertyFacade)
        {
            this.propertyAdapter = propertyAdapter;
            this.searchAdapter = searchAdapter;
            this.authAdapter = authAdapter;
            this.listingAdapter = listingAdapter;
            this.featuredAdapter = featuredAdapter;
            this.propertyFacade = propertyFacade;
        }
예제 #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:CustomerPortalApp.ViewModels.HomePageViewModel"/> class.
        /// </summary>
        /// <param name="dialogService">Dialog service.</param>
        public AccountPageViewModel(IPageDialogService dialogService, IAuthenticationFacade authenticationFacade, INavigationService navigationService, IPropertyFacade propertyFacade,
                                    IKeychainService keychainService) : base(dialogService, authenticationFacade, navigationService)
        {
            this.keychainService = keychainService;
            this.propertyFacade  = propertyFacade;
            this.Title           = "Account Page";

            this.PropertySelectedCommand = new DelegateCommand <PropertyViewModel>(this.PropertySelectedAction);

            this.navigationService = navigationService;
            PopulateStaticData();
            this.ExecuteAsyncTask(async() =>
            {
                await Task.WhenAll(new Task[] {
                    this.LoadProperty()
                });
            }).Forget();
        }
예제 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 public HomeController(IPropertyFacade propertyFacade)
 {
     this.propertyFacade = propertyFacade;
 }
예제 #10
0
 public PropertyApiController(IPropertyFacade propertyFacade)
 {
     _propertyFacade = propertyFacade;
 }
예제 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 public HomeController(IPropertyFacade propertyFacade)
 {
     this.propertyFacade = propertyFacade;
 }