|
|
|
@ -8,7 +8,7 @@ namespace Yavsc.Models.Streaming
|
|
|
|
|
public partial class LiveFlow : ILiveFlow {
|
|
|
|
|
|
|
|
|
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
|
|
|
[Display(Name="FlowIdLabel")]
|
|
|
|
|
[Display(Name="FlowIdLabel", ResourceType=typeof(LiveFlow))]
|
|
|
|
|
// set by the server, unique
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
@ -18,31 +18,33 @@ namespace Yavsc.Models.Streaming
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
[StringLength(255)]
|
|
|
|
|
[Display(Name="TitleLabel")]
|
|
|
|
|
[Display(Name="TitleLabel", ResourceType=typeof(LiveFlow))]
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
// a little description
|
|
|
|
|
[StringLength(1023)]
|
|
|
|
|
[Display(Name="PitchLabel")]
|
|
|
|
|
[Display(Name="PitchLabel", ResourceType=typeof(LiveFlow))]
|
|
|
|
|
public string Pitch { get; set; }
|
|
|
|
|
|
|
|
|
|
// The stream type
|
|
|
|
|
[StringLength(127)]
|
|
|
|
|
[Display(Name="MediaTypeLabel")]
|
|
|
|
|
[Display(Name="MediaTypeLabel", ResourceType=typeof(LiveFlow))]
|
|
|
|
|
public string MediaType { get; set; }
|
|
|
|
|
|
|
|
|
|
// A name where to save this stream, relative to user's files root
|
|
|
|
|
[StringLength(255)]
|
|
|
|
|
[Display(Name="DifferedFileNameLabel")]
|
|
|
|
|
[Display(Name="DifferedFileNameLabel", ResourceType=typeof(LiveFlow))]
|
|
|
|
|
public string DifferedFileName { get; set; }
|
|
|
|
|
|
|
|
|
|
[Display(Name="SequenceNumberLabel", ResourceType=typeof(LiveFlow))]
|
|
|
|
|
public int SequenceNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[Display(Name="OwnerIdLabel")]
|
|
|
|
|
[Display(Name="OwnerIdLabel", ResourceType=typeof(LiveFlow))]
|
|
|
|
|
public string OwnerId {get; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey("OwnerId")]
|
|
|
|
|
[Display(Name="OwnerLabel")]
|
|
|
|
|
[Display(Name="OwnerLabel", ResourceType=typeof(LiveFlow))]
|
|
|
|
|
public virtual ApplicationUser Owner { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|