presentation & tools
This commit is contained in:
@ -12,8 +12,9 @@ namespace Yavsc.Models
|
||||
using Models.Bank;
|
||||
using Models.Access;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class ApplicationUser : IdentityUser
|
||||
using System;
|
||||
|
||||
public class ApplicationUser : IdentityUser, IBaseTrackedEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Another me, as a byte array.
|
||||
@ -108,5 +109,24 @@ namespace Yavsc.Models
|
||||
[JsonIgnore][InverseProperty("User")]
|
||||
public virtual List<ChatRoomAccess> RoomAccess { get; set; }
|
||||
|
||||
public DateTime DateCreated
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string UserCreated
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public DateTime DateModified
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string UserModified
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,10 +5,10 @@ using Yavsc.Abstract.Streaming;
|
||||
namespace Yavsc.Models.Streaming
|
||||
{
|
||||
|
||||
public class LiveFlow : ILiveFlow {
|
||||
public partial class LiveFlow : ILiveFlow {
|
||||
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Display(Name="FlowId")]
|
||||
[Display(Name="FlowIdLabel")]
|
||||
// set by the server, unique
|
||||
public long Id { get; set; }
|
||||
|
||||
@ -18,25 +18,31 @@ namespace Yavsc.Models.Streaming
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[StringLength(255)]
|
||||
[Display(Name="TitleLabel")]
|
||||
public string Title { get; set; }
|
||||
|
||||
// a little description
|
||||
[StringLength(1023)]
|
||||
[Display(Name="PitchLabel")]
|
||||
public string Pitch { get; set; }
|
||||
|
||||
// The stream type
|
||||
[StringLength(127)]
|
||||
[Display(Name="MediaTypeLabel")]
|
||||
public string MediaType { get; set; }
|
||||
|
||||
// A name where to save this stream, relative to user's files root
|
||||
[StringLength(255)]
|
||||
[Display(Name="DifferedFileNameLabel")]
|
||||
public string DifferedFileName { get; set; }
|
||||
public int SequenceNumber { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name="OwnerIdLabel")]
|
||||
public string OwnerId {get; set; }
|
||||
|
||||
[ForeignKey("OwnerId")]
|
||||
[Display(Name="OwnerLabel")]
|
||||
public virtual ApplicationUser Owner { get; set; }
|
||||
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ namespace Yavsc.Models.Relationship
|
||||
Prompt="http://some.web.site")]
|
||||
public string HRef { get; set; }
|
||||
|
||||
[YaStringLength(5,1024)]
|
||||
[YaStringLength(0,12)]
|
||||
[Display(Name="MethodDisplayName", ResourceType=typeof(HyperLink), Prompt="GET")]
|
||||
public string Method { get; set; }
|
||||
|
||||
[YaStringLength(5,25)]
|
||||
[YaStringLength(0,25)]
|
||||
[Display(Name="RelDisplayName", ResourceType=typeof(HyperLink),
|
||||
Prompt="href")]
|
||||
public string Rel { get; set; }
|
||||
|
Reference in New Issue
Block a user