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

35 lines
894 B
C#
Raw Normal View History

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;
2019-01-03 10:55:38 +00:00
using Yavsc.Models;
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-01-15 16:42:25 +00:00
public class LiveFlow : ILiveFlow {
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
2019-01-10 12:28:04 +00:00
public long Id { get; set; }
2018-12-18 12:55:50 +00:00
// a title for this flow
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-10 12:28:04 +00:00
public string Pitch { get; set; }
2018-12-18 12:55:50 +00:00
// The stream type
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-10 12:28:04 +00:00
public string DifferedFileName { get; set; }
2018-12-18 12:55:50 +00:00
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
}
}