public CommentsViewModel(IMonkeyHubApiService monkeyHubApiService, PostModel postModel)
 {
     _postModel           = postModel;
     _monkeyHubApiService = monkeyHubApiService;
     Comments             = new ObservableCollection <CommentsModel>();
     AboutCommand         = new Command(ExecuteAboutCommand);
 }
Пример #2
0
 public CategoryViewModel(IMonkeyHubApiService _monkeyHubApiService, Tag _tag) : base(_tag.Name)
 {
     monkeyHubApiService = _monkeyHubApiService;
     Tag                   = _tag;
     DataSource            = new ObservableCollection <Content>();
     ShowItemTappedCommand = new Command <Content>(ExecuteShowContentCommand);
 }
Пример #3
0
 public SearchViewModel(IMonkeyHubApiService monkeyHubApiService)
 {
     _monkeyHubApiService = monkeyHubApiService;
     SearchResults        = new ObservableCollection <Content>();
     SearchCommand        = new Command(ExecuteSearchCommand, CanExecuteSearchCommand);
     ShowContentCommand   = new Command <Content>(ExecuteShowContentCommand);
 }
Пример #4
0
 public MainViewModel(IMonkeyHubApiService mokeyHubApiService)
 {
     this.Tags = new ObservableCollection <Tag>();
     this._mokeyHubApiService = mokeyHubApiService;
     AboutCommand             = new Command(ExecuteAboutCommand);
     ShowCategoriaCommand     = new Command <Tag>(ExecuteShowCategoriaCommand);
 }
Пример #5
0
 public SearchContentViewModel(IMonkeyHubApiService _monkeyHubApiService) : base("Busca de conteúdo")
 {
     monkeyHubApiService   = _monkeyHubApiService;
     SearchCommand         = new Command(ExecuteSearchCommand);
     ShowItemTappedCommand = new Command <Content>(ExecuteShowContentCommand);
     DataSource            = new ObservableCollection <Content>();
 }
Пример #6
0
 public MainViewModel(IMonkeyHubApiService _monkeyHubApiService) : base("Monkey Hub")
 {
     monkeyHubApiService   = _monkeyHubApiService;
     ShowItemTappedCommand = new Command <Tag>(ExecuteShowSelectedTagCommand);
     AboutCommand          = new Command(ExecuteAboutCommand);
     ShowSearchPageCommand = new Command(ExecuteShowSearchPageCommand);
     DataSource            = new ObservableCollection <Tag>();
 }
Пример #7
0
        public CategoriaViewModel(IMonkeyHubApiService monkeyHubApiService, Tag tag)
        {
            _monkeyHubApiService = monkeyHubApiService;
            _tag = tag;

            Contents           = new ObservableCollection <Content>();
            ShowContentCommand = new Command <Content>(ExecuteShowContentCommand);
        }
Пример #8
0
        public MainPageViewModel(IMonkeyHubApiService monkeyHubApiService)
        {
            _monkeyHubApiService = monkeyHubApiService;
            Resultados           = new ObservableCollection <UserModel>();

            AboutCommand    = new Command(ExecuteAboutCommand);
            ShowPostCommand = new Command <UserModel>(ExecuteShowPostCommand);
        }
Пример #9
0
        public PostViewModel(IMonkeyHubApiService monkeyHubApiService, UserModel userModel)
        {
            _monkeyHubApiService = monkeyHubApiService;
            _userModel           = userModel;

            Posts            = new ObservableCollection <PostModel>();
            ShowPostsCommand = new Command <PostModel>(ExecuteShowPostsCommand);
            AboutCommand     = new Command(ExecuteAboutCommand);
        }
Пример #10
0
        public MainViewModel(IMonkeyHubApiService monkeyHubApiService)
        {
            _monkeyHubApiService = monkeyHubApiService;

            SearchCommand        = new Command(ExecuteSearchCommand, CanExecuteSearchCommand);
            AboutCommand         = new Command(ExecuteAboutCommand);
            Resultados           = new ObservableCollection <Tag>();
            ShowCategoriaCommand = new Command <Tag>(ExecuteShowCategoriaCommand);
        }
Пример #11
0
        public MainViewModel(IMonkeyHubApiService monkeyHubApiService)
        {
            _monkeyHubApiService = monkeyHubApiService;
            Tags                 = new ObservableCollection <Tag>();
            AboutCommand         = new Command(ExecuteAboutCommand);
            SearchCommand        = new Command(ExecuteSearchCommand);
            ShowCategoriaCommand = new Command <Tag>(ExecuteShowCategoriaCommand);

            Title = "Monkey Hub";
        }
        public SearchViewModel(IMonkeyHubApiService monkeyHubApiService)
        {
            SearchCommand = new Command(ExecuteSeachCommand, CanExecuteSearchCommand);

            //AQUI NOS COLOCAMOS ALGUMS VALORES EM NOSSO LISTA
            //Resultados = new ObservableCollection<string>(new[] { "ABC", "BCD" } );

            AboutCommand    = new Command(ExecuteAboutCommand);
            ShowPostCommand = new Command <UserModel>(ExecuteShowPostCommand);

            _monkeyHubApiService = monkeyHubApiService;
        }
        public MainViewModel(IMonkeyHubApiService IMonkeyHubApiService, IFacebookService iFacebookService)
        {
            _iMonkeyHubApiService = IMonkeyHubApiService;
            _iFacebookService     = iFacebookService;

            SearchCommand        = new Command(ExecuteSearchCommand);
            AboutCommand         = new Command(ExecuteAboutCommand);
            ShowCategoriaCommand = new Command <Tag>(ExecuteShowCategoriaCommand);

            Title = "Bem vindo " + User.FirstName;

            Results = new ObservableCollection <Tag>();
        }