2016-05-17 18:22:18 +02:00
|
|
|
//
|
|
|
|
|
// BookQueryEvent.cs
|
2015-11-17 22:03:42 +01:00
|
|
|
//
|
|
|
|
|
// Author:
|
|
|
|
|
// Paul Schneider <paul@pschneider.fr>
|
|
|
|
|
//
|
2016-07-27 14:31:04 +02:00
|
|
|
// Copyright (c) 2015-2016 GNU GPL
|
2015-11-17 22:03:42 +01:00
|
|
|
//
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
// GNU Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
2017-02-22 22:58:02 +01:00
|
|
|
namespace Yavsc.Models.Messaging
|
|
|
|
|
{
|
|
|
|
|
using Interfaces.Workflow;
|
2018-02-03 20:17:29 +01:00
|
|
|
using Yavsc.Abstract.Messaging;
|
2017-02-22 22:58:02 +01:00
|
|
|
|
2018-02-03 20:17:29 +01:00
|
|
|
public class RdvQueryEvent: RdvQueryProviderInfo, IEvent
|
2015-11-17 22:03:42 +01:00
|
|
|
{
|
2018-02-03 20:17:29 +01:00
|
|
|
public string SubTopic
|
2016-08-02 11:05:29 +02:00
|
|
|
{
|
2018-02-03 20:17:29 +01:00
|
|
|
get; private set;
|
2016-08-02 11:05:29 +02:00
|
|
|
}
|
2016-05-17 18:22:18 +02:00
|
|
|
|
2018-02-03 20:17:29 +01:00
|
|
|
public RdvQueryEvent(string subTopic)
|
2016-09-17 03:36:34 +02:00
|
|
|
{
|
2018-02-03 20:17:29 +01:00
|
|
|
Topic = MessagingConstants.TopicRdvQuery;
|
|
|
|
|
SubTopic = subTopic;
|
2016-09-17 03:36:34 +02:00
|
|
|
}
|
2016-07-27 14:31:04 +02:00
|
|
|
|
2016-09-17 03:36:34 +02:00
|
|
|
public string Sender
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Topic
|
|
|
|
|
{
|
2017-06-02 21:34:18 +02:00
|
|
|
get; private set;
|
2016-09-17 03:36:34 +02:00
|
|
|
}
|
2018-02-03 20:17:29 +01:00
|
|
|
|
|
|
|
|
public string CreateBody()
|
|
|
|
|
{
|
2018-03-26 19:27:29 +02:00
|
|
|
return string.Format(
|
2018-03-26 23:18:48 +02:00
|
|
|
ResourcesHelpers.GlobalLocalizer["RdvToPerf"],
|
2018-03-26 19:27:29 +02:00
|
|
|
Client.UserName,
|
2018-02-03 20:17:29 +01:00
|
|
|
EventDate?.ToString("dddd dd/MM/yyyy à HH:mm"),
|
|
|
|
|
Location.Address,
|
|
|
|
|
ActivityCode);
|
|
|
|
|
}
|
2016-09-17 03:36:34 +02:00
|
|
|
}
|
2015-11-17 22:03:42 +01:00
|
|
|
|
2016-05-17 18:22:18 +02:00
|
|
|
}
|