Files
ersatztv/ErsatzTV/ViewModels/ChannelEditViewModel.cs
T
2021-02-08 21:13:53 -06:00

33 lines
834 B
C#

using ErsatzTV.Application.Channels.Commands;
using ErsatzTV.Core.Domain;
namespace ErsatzTV.ViewModels
{
public class ChannelEditViewModel
{
public int Id { get; set; }
public string Name { get; set; }
public int Number { get; set; }
public int FFmpegProfileId { get; set; }
public string Logo { get; set; }
public StreamingMode StreamingMode { get; set; }
public UpdateChannel ToUpdate() =>
new(
Id,
Name,
Number,
FFmpegProfileId,
Logo,
StreamingMode);
public CreateChannel ToCreate() =>
new(
Name,
Number,
FFmpegProfileId,
Logo,
StreamingMode);
}
}