yavsc/src/Yavsc.Server/Models/Streaming/LiveFlow.cs

34 lines
819 B
C#
Raw Normal View History

2019-01-03 10:55:38 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models;
2018-12-18 12:55:50 +00:00
namespace Yavsc.ViewModels.Streaming
{
2019-01-03 10:55:38 +00:00
public class LiveFlow {
2018-12-18 12:55:50 +00:00
2019-01-03 10:55:38 +00:00
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Display(Name="FlowId")]
2018-12-18 12:55:50 +00:00
// set by the server, unique
long Id { get; set; }
// a title for this flow
string Title { get; set; }
// a little description
string Pitch { get; set; }
// The stream type
string MediaType { get; set; }
// A name where to save this stream, relative to user's files root
string DifferedFileName { get; set; }
2019-01-03 10:55:38 +00:00
[Required]
public string OwnerId {get; set; }
[ForeignKey("OwnerId")]
public virtual ApplicationUser Owner { get; set; }
2018-12-18 12:55:50 +00:00
}
}