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
|
|
|
|
2017-06-14 12:28:08 +02:00
|
|
|
using System;
|
2017-07-03 15:54:18 +02:00
|
|
|
using Google.Apis.Calendar.v3.Data;
|
2017-06-14 12:28:08 +02:00
|
|
|
|
2017-07-03 15:54:18 +02:00
|
|
|
namespace Yavsc.Services
|
2015-09-11 14:37:26 +02:00
|
|
|
{
|
2017-06-14 12:28:08 +02:00
|
|
|
using System.Threading.Tasks;
|
2017-06-28 01:57:52 +02:00
|
|
|
using Yavsc.ViewModels.Calendar;
|
|
|
|
|
|
2017-06-14 12:28:08 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// I calendar manager.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ICalendarManager {
|
2017-07-05 11:29:15 +02:00
|
|
|
Task<CalendarList> GetCalendarsAsync (string userId, string pageToken);
|
2017-07-05 15:47:22 +02:00
|
|
|
Task<Events> GetCalendarAsync (string calid, DateTime minDate, DateTime maxDate, string pageToken);
|
2017-07-02 01:45:10 +02:00
|
|
|
Task<DateTimeChooserViewModel> CreateViewModelAsync(
|
2017-06-28 01:57:52 +02:00
|
|
|
string inputId,
|
|
|
|
|
string calid, DateTime mindate, DateTime maxdate);
|
2017-07-05 15:47:22 +02:00
|
|
|
Task<Event> CreateEventAsync(string userId, string calid,
|
2017-07-02 01:45:10 +02:00
|
|
|
DateTime startDate, int lengthInSeconds, string summary,
|
|
|
|
|
string description, string location, bool available);
|
2015-09-11 14:37:26 +02:00
|
|
|
}
|
|
|
|
|
}
|