refactoring

This commit is contained in:
Paul Schneider 2017-02-11 15:46:26 +01:00
commit 8e658d2bb4
21 changed files with 135 additions and 29 deletions

View file

@ -0,0 +1,9 @@
namespace Yavsc.Models.haircut
{
public enum HairCutGenders : int
{
Kid = 1,
Man,
Women
}
}

View file

@ -0,0 +1,31 @@
namespace Yavsc.Models.Messaging
{
public class HairCutQueryEvent : BookQueryProviderInfo, IEvent
{
public HairCutQueryEvent()
{
Topic = "HairCutQuery";
}
public string Message
{
get;
set;
}
public string Sender
{
get;
set;
}
public string Topic
{
get;
set;
}
}
}

View file

@ -0,0 +1,7 @@
namespace Yavsc.Models.haircut
{
public enum HairDressings {
Brushing,
Folding
}
}

View file

@ -0,0 +1,9 @@
namespace Yavsc.Models.haircut
{
public enum HairLength : int
{
Short = 1,
HalfLong,
Long
}
}

View file

@ -0,0 +1,22 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.haircut
{
public class HairPrestation
{
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set;}
public HairLength Length { get; set; }
public HairCutGenders Gender { get; set; }
public bool Cut { get; set; }
public HairDressings Dressing { get; set; }
public HairTechnos Tech { get; set; }
public bool Shampoo { get; set; }
public HairTaint[] Taints { get; set; }
public bool Cares { get; set; }
}
}

View file

@ -0,0 +1,16 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Drawing;
namespace Yavsc.Models.haircut
{
public class HairTaint
{
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set;}
public long Name { get; set; }
public Color Color {get; set;}
}
}

View file

@ -0,0 +1,13 @@
namespace Yavsc.Models.haircut
{
public enum HairTechnos
{
Color,
Permanent,
Defris,
Mech,
Balayage,
TyAndDie
}
}