yavsc/Yavsc.Server/Models/HairCut/HairCutQueryEvent.cs

41 lines
933 B
C#
Raw Normal View History

2017-02-22 22:45:59 +01:00
using Yavsc.Interfaces.Workflow;
2017-02-13 01:32:03 +01:00
namespace Yavsc.Models.Haircut
2017-02-11 15:46:26 +01:00
{
2017-02-27 19:28:32 +01:00
public class HairCutQueryEvent : RdvQueryProviderInfo, IEvent
2017-02-11 15:46:26 +01:00
{
2017-06-02 21:34:18 +02:00
public HairCutQueryEvent(string subTopic)
2017-02-11 15:46:26 +01:00
{
2018-02-03 20:17:29 +01:00
Topic = "/topic/HairCutQuery";
if (subTopic!=null) Topic+="/"+subTopic;
2017-06-02 21:34:18 +02:00
}
2018-02-03 20:17:29 +01:00
public string CreateBody()
2017-02-11 15:46:26 +01:00
{
2018-02-03 20:17:29 +01:00
return $"{Reason}\r\n-- \r\n{Previsional}\r\n{EventDate}\r\n";
}
2017-02-11 15:46:26 +01:00
2018-02-03 20:17:29 +01:00
public string CreateBoby()
{
2018-03-26 23:18:48 +02:00
return string.Format(ResourcesHelpers.GlobalLocalizer["RdvToPerf"], Client.UserName,
2018-02-03 20:17:29 +01:00
EventDate?.ToString("dddd dd/MM/yyyy à HH:mm"),
Location.Address,
ActivityCode);
2017-02-11 15:46:26 +01:00
}
public string Sender
{
get;
set;
}
public string Topic
{
get;
2017-06-02 21:34:18 +02:00
private set;
2017-02-11 15:46:26 +01:00
}
2017-06-02 21:34:18 +02:00
2017-02-13 01:32:03 +01:00
HairCutQuery Data { get; set; }
2017-02-11 15:46:26 +01:00
}
2017-06-02 21:34:18 +02:00
}