some changes

This commit is contained in:
2019-03-17 00:03:04 +00:00
parent 9d48016042
commit 1b0c741cf7
32 changed files with 33 additions and 52 deletions

View File

@ -7,7 +7,7 @@ namespace Yavsc.Models.Identity
{
[JsonObject]
public class GoogleCloudMobileDeclaration {
public class GoogleCloudMobileDeclaration : IGCMDeclaration {
[Required]
public string GCMRegistrationId { get; set; }
@ -33,7 +33,7 @@ namespace Yavsc.Models.Identity
/// In order to say, is any activity has changed here.
/// </summary>
/// <returns></returns>
public DateTime LatestActivityUpdate { get; set; }
public DateTime ? LatestActivityUpdate { get; set; }
[JsonIgnore,ForeignKey("DeviceOwnerId")]
public virtual ApplicationUser DeviceOwner { get; set; }

View File

@ -1,12 +0,0 @@
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Identity
{
public class BlackListedUserName : IWatchedUserName {
[Key]
[StringLength(1024)]
public string Name { get; set;}
}
}

View File

@ -1,8 +0,0 @@
using Yavsc.Interfaces;
namespace Yavsc.Models.Identity
{
public interface IWatchedUserName : INamedObject {
}
}

View File

@ -1,12 +0,0 @@
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Identity
{
public class ReservedUserName : IWatchedUserName {
[Key]
[StringLength(1024)]
public string Name { get; set;}
}
}

View File

@ -1,7 +1,6 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Abstract.Streaming;
using Yavsc.Models;
namespace Yavsc.Models.Streaming
{