refactoring

This commit is contained in:
Paul Schneider 2017-03-02 20:25:49 +01:00
commit fafa1a5c5f
21 changed files with 5 additions and 5 deletions

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

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

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

View file

@ -0,0 +1,9 @@
namespace YavscLib
{
public interface ICircleMember
{
ICircle Circle { get; set; }
long Id { get; set; }
IApplicationUser Member { get; set; }
}
}

View file

@ -0,0 +1,8 @@
namespace YavscLib
{
public interface ICircleAuthorization
{
long CircleId { get; set; }
}
}

View file

@ -0,0 +1,11 @@
namespace YavscLib
{
public interface ICircleAuthorized
{
long Id { get; set; }
string GetOwnerId ();
bool AuthorizeCircle(long circleId);
ICircleAuthorization [] GetACL();
}
}