public PlaylistItemVm(KODIRPC.List.Item.All all, AppContext appContext, int pos, int player) { _appContext = appContext; _pos = pos; _player = player; Label = ((Base)all.AsMediaDetailsBase).label; }
PlayingXbmcItemVm CurrentItemFactory(KODIRPC.List.Item.All currentItem, int playerid) { if (currentItem.type == Base_type.song) { return(new PlayingXbmcAudioVm(currentItem, playerid, _appContext)); } else { return(new PlayingXbmcVideoVm(currentItem, playerid, _appContext)); } throw new NotSupportedException(); }
private PlaylistItemVm PlaylistItemFactory(KODIRPC.List.Item.All arg, int pos, int player) { return(new PlaylistItemVm(arg, _appContext, pos, player)); }