Files
podnoms/server/Models/User.cs
Fergal Moran 8d69c72b83 Merge Repos
2017-10-30 20:42:23 +00:00

36 lines
789 B
C#
Executable File

using System;
using System.ComponentModel.DataAnnotations;
namespace PodNoms.Api.Models
{
public class User : BaseModel
{
public int Id { get; set; }
[MaxLength(50)]
public string Slug { get; set; }
[MaxLength(100)]
public string EmailAddress { get; set; }
[MaxLength(100)]
public string FullName { get; set; }
public string ProfileImage { get; set; }
[MaxLength(50)]
public string Sid { get; set; }
[MaxLength(50)]
public string ProviderId { get; set; }
[MaxLength(50)]
public string ApiKey { get; set; }
internal string GetUserId()
{
//TODO: Sort this when signalr uses correct id
return FullName;
}
}
}