2019-01-03 10:55:38 +00:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2019-01-15 16:42:25 +00:00
|
|
|
using Yavsc.Abstract.Streaming;
|
2018-12-18 12:55:50 +00:00
|
|
|
|
2019-01-03 14:42:35 +00:00
|
|
|
namespace Yavsc.Models.Streaming
|
2018-12-18 12:55:50 +00:00
|
|
|
{
|
|
|
|
|
|
2019-06-22 19:34:39 +01:00
|
|
|
public partial class LiveFlow : ILiveFlow {
|
2018-12-18 12:55:50 +00:00
|
|
|
|
2019-01-03 10:55:38 +00:00
|
|
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
2019-06-22 19:34:39 +01:00
|
|
|
[Display(Name="FlowIdLabel")]
|
2018-12-18 12:55:50 +00:00
|
|
|
// set by the server, unique
|
2019-01-10 12:28:04 +00:00
|
|
|
public long Id { get; set; }
|
2018-12-18 12:55:50 +00:00
|
|
|
|
2019-01-30 11:14:32 +00:00
|
|
|
//
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// a title for this flow
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
[StringLength(255)]
|
2019-06-22 19:34:39 +01:00
|
|
|
[Display(Name="TitleLabel")]
|
2019-01-10 12:28:04 +00:00
|
|
|
public string Title { get; set; }
|
2018-12-18 12:55:50 +00:00
|
|
|
|
|
|
|
|
// a little description
|
2019-01-30 11:14:32 +00:00
|
|
|
[StringLength(1023)]
|
2019-06-22 19:34:39 +01:00
|
|
|
[Display(Name="PitchLabel")]
|
2019-01-10 12:28:04 +00:00
|
|
|
public string Pitch { get; set; }
|
2018-12-18 12:55:50 +00:00
|
|
|
|
|
|
|
|
// The stream type
|
2019-01-30 11:14:32 +00:00
|
|
|
[StringLength(127)]
|
2019-06-22 19:34:39 +01:00
|
|
|
[Display(Name="MediaTypeLabel")]
|
2019-01-10 12:28:04 +00:00
|
|
|
public string MediaType { get; set; }
|
2018-12-18 12:55:50 +00:00
|
|
|
|
|
|
|
|
// A name where to save this stream, relative to user's files root
|
2019-01-30 11:14:32 +00:00
|
|
|
[StringLength(255)]
|
2019-06-22 19:34:39 +01:00
|
|
|
[Display(Name="DifferedFileNameLabel")]
|
2019-01-10 12:28:04 +00:00
|
|
|
public string DifferedFileName { get; set; }
|
2019-01-30 11:14:32 +00:00
|
|
|
public int SequenceNumber { get; set; }
|
2018-12-18 12:55:50 +00:00
|
|
|
|
2019-01-03 10:55:38 +00:00
|
|
|
[Required]
|
2019-06-22 19:34:39 +01:00
|
|
|
[Display(Name="OwnerIdLabel")]
|
2019-01-03 10:55:38 +00:00
|
|
|
public string OwnerId {get; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey("OwnerId")]
|
2019-06-22 19:34:39 +01:00
|
|
|
[Display(Name="OwnerLabel")]
|
2019-01-03 10:55:38 +00:00
|
|
|
public virtual ApplicationUser Owner { get; set; }
|
|
|
|
|
|
2018-12-18 12:55:50 +00:00
|
|
|
}
|
|
|
|
|
}
|