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

42 lines
933 B
C#

8 years ago
using Yavsc.Interfaces.Workflow;
8 years ago
namespace Yavsc.Models.Haircut
8 years ago
{
8 years ago
public class HairCutQueryEvent : RdvQueryProviderInfo, IEvent
8 years ago
{
public HairCutQueryEvent(string subTopic)
8 years ago
{
Topic = "/topic/HairCutQuery";
if (subTopic!=null) Topic+="/"+subTopic;
}
public string CreateBody()
8 years ago
{
return $"{Reason}\r\n-- \r\n{Previsional}\r\n{EventDate}\r\n";
}
8 years ago
public string CreateBoby()
{
7 years ago
return string.Format(ResourcesHelpers.GlobalLocalizer["RdvToPerf"], Client.UserName,
EventDate?.ToString("dddd dd/MM/yyyy à HH:mm"),
Location.Address,
ActivityCode);
8 years ago
}
public string Sender
{
get;
set;
}
public string Topic
{
get;
private set;
8 years ago
}
8 years ago
HairCutQuery Data { get; set; }
8 years ago
}
}