adds an interface for live descriptors
This commit is contained in:
30
src/Yavsc.Abstract/Streaming/LiveFlow.cs
Normal file
30
src/Yavsc.Abstract/Streaming/LiveFlow.cs
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
namespace Yavsc.Abstract.Streaming
|
||||||
|
{
|
||||||
|
|
||||||
|
public interface ILiveFlow {
|
||||||
|
|
||||||
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
[Display(Name="FlowId")]
|
||||||
|
// 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; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
string OwnerId {get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -1,11 +1,12 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using Yavsc.Abstract.Streaming;
|
||||||
using Yavsc.Models;
|
using Yavsc.Models;
|
||||||
|
|
||||||
namespace Yavsc.Models.Streaming
|
namespace Yavsc.Models.Streaming
|
||||||
{
|
{
|
||||||
|
|
||||||
public class LiveFlow {
|
public class LiveFlow : ILiveFlow {
|
||||||
|
|
||||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
[Display(Name="FlowId")]
|
[Display(Name="FlowId")]
|
||||||
|
Reference in New Issue
Block a user