Exemplo n.º 1
0
        public async Task GetDetails(string url)
        {
            var taBestService = new TaBestService();

            var response = await taBestService.GetDetailedProject(url);

            this.Id            = response.Id;
            this.Title         = response.Title;
            this.Description   = response.Description;
            this.LiveDemoUrl   = response.LiveDemoUrl;
            this.RepositoryUrl = response.RepositoryUrl;
            this.MainImageUrl  = response.MainImageUrl;
            this.Likes         = response.Likes;
            this.Visits        = response.Visits;
            this.Comments      = response.Comments;

            this.MainImageUrl = this.GetImageHighUrl(response.MainImageUrl);
        }
Exemplo n.º 2
0
 public ListPopilarProjectsViewModel()
 {
     this.taBestService = new TaBestService();
     this.HandleGetPopularProjects();
 }