presentation & tools

This commit is contained in:
2019-06-22 19:34:39 +01:00
parent 6f8df72499
commit a2f5886526
76 changed files with 3973 additions and 254 deletions

View File

@ -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;
}
}
}

View File

@ -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; }
}

View File

@ -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; }