Added User authentication

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-09-06 14:38:29 -04:00
parent a529f07869
commit 3538789e46
13 changed files with 168 additions and 17 deletions

View File

@@ -0,0 +1,12 @@
using System;
using ProtoBuf;
namespace MediaBrowser.Model.DTO
{
[ProtoContract]
public class AuthenticationResult
{
[ProtoMember(1)]
public bool Success { get; set; }
}
}

View File

@@ -14,5 +14,8 @@ namespace MediaBrowser.Model.DTO
[ProtoMember(3)]
public bool HasImage { get; set; }
[ProtoMember(4)]
public bool HasPassword { get; set; }
}
}

View File

@@ -3,6 +3,8 @@ namespace MediaBrowser.Model.Entities
{
public class User : BaseEntity
{
public string Password { get; set; }
public string MaxParentalRating { get; set; }
public int RecentItemDays { get; set; }

View File

@@ -35,6 +35,7 @@
<Compile Include="Configuration\BaseApplicationConfiguration.cs" />
<Compile Include="Configuration\ServerConfiguration.cs" />
<Compile Include="DTO\AudioInfo.cs" />
<Compile Include="DTO\AuthenticationResult.cs" />
<Compile Include="DTO\DTOBaseItem.cs" />
<Compile Include="DTO\DTOUser.cs" />
<Compile Include="DTO\VideoInfo.cs" />