Added mass disable / enable
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tv7Playlist.Data;
|
||||
|
||||
namespace Tv7Playlist.Models
|
||||
{
|
||||
public class HomeModel
|
||||
{
|
||||
public HomeModel(List<PlaylistEntry> playlistEntries)
|
||||
public HomeModel()
|
||||
{
|
||||
}
|
||||
|
||||
public HomeModel(List<PlaylistEntryModel> playlistEntries)
|
||||
{
|
||||
PlaylistEntries = playlistEntries ?? throw new ArgumentNullException(nameof(playlistEntries));
|
||||
}
|
||||
|
||||
public List<PlaylistEntry> PlaylistEntries { get; }
|
||||
public List<PlaylistEntryModel> PlaylistEntries { get; set; }
|
||||
}
|
||||
}
|
24
Tv7Playlist/Models/PlaylistEntryModel.cs
Normal file
24
Tv7Playlist/Models/PlaylistEntryModel.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Tv7Playlist.Data;
|
||||
|
||||
namespace Tv7Playlist.Models
|
||||
{
|
||||
public class PlaylistEntryModel
|
||||
{
|
||||
public PlaylistEntryModel()
|
||||
{
|
||||
}
|
||||
|
||||
public PlaylistEntryModel(PlaylistEntry entry)
|
||||
{
|
||||
Entry = entry ?? throw new ArgumentNullException(nameof(entry));
|
||||
Id = entry.Id;
|
||||
}
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public PlaylistEntry Entry { get; set; }
|
||||
|
||||
public bool Selected { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user