Ejemplo n.º 1
0
        public TmdbCast(CastPerson castItem, Config config)
        {
            Name = castItem.Name;
            Role = castItem.Character;

            Images = new VideoImages(new Uri(config.BaseUrlProfile + castItem.ProfilePath));
        }
Ejemplo n.º 2
0
 public TmdbItem(Config config, Movie movie)
 {
     _config     = config;
     _movie      = movie;
     Label       = movie.Title;
     Images      = new VideoImages(new Uri(config.BaseUrlPoster + movie.PosterPath), new Uri(config.BaseUrlBackdrop + movie.BackdropPath));
     Rating      = movie.VoteAverage;
     RatingBase5 = movie.VoteAverage / 2;
     FillByMovie(movie);
     DisableCommands();
 }
Ejemplo n.º 3
0
        public TmdbItem(Config config, MovieSummary summary)
        {
            _config  = config;
            _summary = summary;
            Label    = summary.Title;
            Images   = new VideoImages(new Uri(config.BaseUrlPoster + summary.PosterPath), new Uri(config.BaseUrlBackdrop + summary.BackdropPath));

            OriginalTitle = summary.OriginalTitle;
            Rating        = summary.VoteAverage;
            RatingBase5   = summary.VoteAverage / 2;

            DisableCommands();
        }
Ejemplo n.º 4
0
        public FileInfo(File filedetails, IAppContext appContext) : this(filedetails)
        {
            Size        = filedetails.size;
            Modified    = filedetails.lastmodified;
            MimeType    = filedetails.mimetype;
            SecondLabel = filedetails.tagline;

            var file = filedetails.AsMediaDetailsBase;
            if (file != null)
            {
                Images = new VideoImages(appContext, file);
            }
            var media = filedetails.AsMediaDetailsBase;
            if (media != null)
            {
                Images = new VideoImages(appContext, media);
            }

            Play = new PlayFileCommand(appContext, Path);
        }
Ejemplo n.º 5
0
 protected void SetImage(VideoImages images)
 {
     Images = images;
     OnPropertyChanged("Images");
 }
Ejemplo n.º 6
0
 public BaseVM(XBMCRPC.Media.Details.Base baseDetails, IAppContext appContext)
     : this(appContext)
 {
     Images = new VideoImages(appContext, baseDetails);
 }
Ejemplo n.º 7
0
 public BaseVM(string thumb, IAppContext appContext)
     : this(appContext)
 {
     Images = new VideoImages(appContext, thumb);
 }
Ejemplo n.º 8
0
 public BaseVM(IAppContext appContext)
 {
     _appContext = appContext;
     Images      = new VideoImages(_appContext);
 }
Ejemplo n.º 9
0
 public BaseVM(KODIRPC.Video.Details.Base baseDetails, IAppContext appContext) : this(appContext)
 {
     Images = new VideoImages(appContext, baseDetails);
 }