47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
9 years ago
|
//
|
||
|
// ICalendarManager.cs
|
||
9 years ago
|
//
|
||
|
// 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/>.
|
||
9 years ago
|
|
||
9 years ago
|
|
||
8 years ago
|
using Yavsc.Models.Booking;
|
||
|
using Yavsc.Models.Messaging;
|
||
|
|
||
|
namespace Yavsc.Models.Calendar
|
||
9 years ago
|
{
|
||
9 years ago
|
/// <summary>
|
||
|
/// I calendar manager.
|
||
|
/// </summary>
|
||
9 years ago
|
public interface ICalendarManager {
|
||
9 years ago
|
/// <summary>
|
||
|
/// Gets the free dates.
|
||
|
/// </summary>
|
||
|
/// <returns>The free dates.</returns>
|
||
|
/// <param name="username">Username.</param>
|
||
|
/// <param name="req">Req.</param>
|
||
8 years ago
|
IFreeDateSet GetFreeDates(string username, BookQuery req);
|
||
9 years ago
|
/// <summary>
|
||
|
/// Book the specified username and ev.
|
||
|
/// </summary>
|
||
|
/// <param name="username">Username.</param>
|
||
|
/// <param name="ev">Ev.</param>
|
||
9 years ago
|
bool Book(string username, YaEvent ev);
|
||
9 years ago
|
}
|
||
|
}
|