view Agendas/trunk/src/Agendas.Google/IGCalendarAdapter.cs @ 125:34b2f85aecab

Se crea adaptador para conectar con Google Calendar, además de crear funcionalidad para insertar y eliminar un evento en el calendario de google. Se agregan package de nuget para el trabajo con Google Calendar.
author alabra
date Tue, 28 Jun 2011 23:32:52 -0400
parents
children 0ea32a748453
line wrap: on
line source

using System;

namespace AltNetHispano.Agendas.Google
{
    /// <summary>
    /// Adapter connect to GCalendar
    /// </summary>
    public interface IGCalendarAdapter
    {
        /// <summary>
        /// Method to insert new calendar event
        /// </summary>
        /// <param name="title">Title of the Event</param>
        /// <param name="startEvent">Date and Time of event start</param>
        /// <param name="endEvent">Date and Time of event end</param>
        /// <param name="location">Place of the event</param>
        /// <param name="summary">Description of the event</param>
        void CreateEvent(string title, DateTime startEvent, DateTime endEvent, String location, String summary);
        /// <summary>
        /// Method to delete calendar event, searching by 
        /// start and end date and time the event.
        /// </summary>
        /// <param name="startEvent">Date and Time of event start to search</param>
        /// <param name="endEvent">Date and Time of event end to search</param>
        void DeleteEvent(DateTime startEvent, DateTime endEvent);
    }
}