2015-10-28 21:02:03 +01:00
|
|
|
//
|
|
|
|
|
// ICalendarManager.cs
|
2015-09-11 14:37:26 +02:00
|
|
|
//
|
|
|
|
|
// Author:
|
|
|
|
|
// Paul Schneider <paul@pschneider.fr>
|
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2015 GNU GPL
|
|
|
|
|
//
|
|
|
|
|
// 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/>.
|
2015-10-28 21:02:03 +01:00
|
|
|
|
2015-09-11 14:37:26 +02:00
|
|
|
|
2016-05-17 18:22:18 +02:00
|
|
|
|
|
|
|
|
namespace Yavsc.Models.Calendar
|
2015-09-11 14:37:26 +02:00
|
|
|
{
|
2017-02-11 15:46:26 +01:00
|
|
|
using Models.Workflow;
|
|
|
|
|
using Models.Messaging;
|
2015-11-17 22:22:59 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// I calendar manager.
|
|
|
|
|
/// </summary>
|
2015-10-28 21:02:03 +01:00
|
|
|
public interface ICalendarManager {
|
2015-11-17 22:22:59 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the free dates.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>The free dates.</returns>
|
|
|
|
|
/// <param name="username">Username.</param>
|
|
|
|
|
/// <param name="req">Req.</param>
|
2017-02-27 19:28:32 +01:00
|
|
|
IFreeDateSet GetFreeDates(string username, RdvQuery req);
|
2015-11-17 22:22:59 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Book the specified username and ev.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="username">Username.</param>
|
|
|
|
|
/// <param name="ev">Ev.</param>
|
2015-10-28 21:02:03 +01:00
|
|
|
bool Book(string username, YaEvent ev);
|
2015-09-11 14:37:26 +02:00
|
|
|
}
|
|
|
|
|
}
|