refactoring
This commit is contained in:
parent
a983b0fdc4
commit
b828b06904
10 changed files with 125 additions and 26 deletions
65
YavscLib/HairCut/Haircut.cs
Normal file
65
YavscLib/HairCut/Haircut.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
namespace YavscLib.HairCut
|
||||
{
|
||||
public interface IHairCutQuery
|
||||
{
|
||||
long Id { get; set; }
|
||||
long PrestationId { get; set; }
|
||||
|
||||
long? LocationId { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
namespace YavscLib.HairCut
|
||||
namespace YavscLib
|
||||
{
|
||||
public interface IPrestation
|
||||
public interface IHairPrestation
|
||||
{
|
||||
long Id { get; set; }
|
||||
int Length { get; set; }
|
||||
20
YavscLib/Workflow/QueryStatus.cs
Normal file
20
YavscLib/Workflow/QueryStatus.cs
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue