コード例 #1
0
 public PlaylistItemVm(KODIRPC.List.Item.All all, AppContext appContext, int pos, int player)
 {
     _appContext = appContext;
     _pos        = pos;
     _player     = player;
     Label       = ((Base)all.AsMediaDetailsBase).label;
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 private PlaylistItemVm PlaylistItemFactory(KODIRPC.List.Item.All arg, int pos, int player)
 {
     return(new PlaylistItemVm(arg, _appContext, pos, player));
 }