refactoring
This commit is contained in:
parent
0085795902
commit
fafa1a5c5f
21 changed files with 5 additions and 5 deletions
15
YavscLib/Identity/IApplicationUser.cs
Normal file
15
YavscLib/Identity/IApplicationUser.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace YavscLib
|
||||
{
|
||||
public interface IApplicationUser
|
||||
{
|
||||
IAccountBalance AccountBalance { get; set; }
|
||||
IList<IContact> Book { get; set; }
|
||||
IList<ICircle> Circles { get; set; }
|
||||
string DedicatedGoogleCalendar { get; set; }
|
||||
IList<IGoogleCloudMobileDeclaration> Devices { get; set; }
|
||||
ILocation PostalAddress { get; set; }
|
||||
IList<IBlog> Posts { get; set; }
|
||||
}
|
||||
}
|
||||
21
YavscLib/Identity/IChatUserInfo.cs
Normal file
21
YavscLib/Identity/IChatUserInfo.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
namespace YavscLib
|
||||
{
|
||||
public interface IConnection
|
||||
{
|
||||
string ConnectionId { get; set; }
|
||||
string UserAgent { get; set; }
|
||||
bool Connected { get; set; }
|
||||
}
|
||||
|
||||
public interface IChatUserInfo
|
||||
{
|
||||
IConnection[] Connections { get; set; }
|
||||
string UserId { get; set; }
|
||||
|
||||
string UserName { get; set; }
|
||||
|
||||
string Avatar { get; set; }
|
||||
|
||||
string[] Roles { get; set; }
|
||||
}
|
||||
}
|
||||
13
YavscLib/Identity/ICircle.cs
Normal file
13
YavscLib/Identity/ICircle.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace YavscLib
|
||||
{
|
||||
public interface ICircle
|
||||
{
|
||||
long Id { get; set; }
|
||||
IList<ICircleMember> Members { get; set; }
|
||||
string Name { get; set; }
|
||||
IApplicationUser Owner { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
}
|
||||
}
|
||||
9
YavscLib/Identity/ICircleMember.cs
Normal file
9
YavscLib/Identity/ICircleMember.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace YavscLib
|
||||
{
|
||||
public interface ICircleMember
|
||||
{
|
||||
ICircle Circle { get; set; }
|
||||
long Id { get; set; }
|
||||
IApplicationUser Member { get; set; }
|
||||
}
|
||||
}
|
||||
8
YavscLib/Identity/Security/ICircleAuthorization.cs
Normal file
8
YavscLib/Identity/Security/ICircleAuthorization.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace YavscLib
|
||||
{
|
||||
|
||||
public interface ICircleAuthorization
|
||||
{
|
||||
long CircleId { get; set; }
|
||||
}
|
||||
}
|
||||
11
YavscLib/Identity/Security/ICircleAuthorized.cs
Normal file
11
YavscLib/Identity/Security/ICircleAuthorized.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace YavscLib
|
||||
{
|
||||
public interface ICircleAuthorized
|
||||
{
|
||||
long Id { get; set; }
|
||||
string GetOwnerId ();
|
||||
bool AuthorizeCircle(long circleId);
|
||||
ICircleAuthorization [] GetACL();
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue