refactoring

This commit is contained in:
Paul Schneider 2017-04-08 00:32:23 +02:00
commit b828b06904
10 changed files with 125 additions and 26 deletions

View file

@ -0,0 +1,65 @@
using System;
namespace YavscLib.Haircut
{
public interface IProviderInfo
{
string UserId
{
get;
set;
}
string UserName
{
get;
set;
}
string Avatar
{
get;
set;
}
}
public interface IHaircutQuery
{
IProviderInfo ProviderInfo
{
get;
set;
}
long Id
{
get;
set;
}
IHairPrestation Prestation
{
get;
set;
}
long Status
{
get;
set;
}
ILocation Location
{
get;
set;
}
DateTime EventDate
{
get;
set;
}
}
}

View file

@ -1,10 +0,0 @@
namespace YavscLib.HairCut
{
public interface IHairCutQuery
{
long Id { get; set; }
long PrestationId { get; set; }
long? LocationId { get; set; }
}
}

View file

@ -1,6 +1,6 @@
namespace YavscLib.HairCut
namespace YavscLib
{
public interface IPrestation
public interface IHairPrestation
{
long Id { get; set; }
int Length { get; set; }

View file

@ -0,0 +1,20 @@
namespace YavscLib
{
/// <summary>
/// Status,
/// should be associated to any
/// client user query to a provider user or
/// other external entity.
/// </summary>
public enum QueryStatus: int
{
Inserted,
OwnerValidated,
Visited,
Rejected,
Accepted,
InProgress,
Failed,
Success
}
}