Class EventsResource
The "events" collection of methods.
public class EventsResource : Object
- Inheritance
-
EventsResource
Constructors
EventsResource(IClientService)
Constructs a new resource.
public EventsResource(IClientService service)
Parameters
service
IClientService
Methods
Delete(string, string)
Deletes an event.
public virtual EventsResource.DeleteRequest Delete(string calendarId, string eventId)
Parameters
Returns
Get(string, string)
Returns an event.
public virtual EventsResource.GetRequest Get(string calendarId, string eventId)
Parameters
Returns
Import(Event, string)
Imports an event. This operation is used to add a private copy of an existing event to a calendar.
public virtual EventsResource.ImportRequest Import(Event body, string calendarId)
Parameters
Returns
Insert(Event, string)
Creates an event.
public virtual EventsResource.InsertRequest Insert(Event body, string calendarId)
Parameters
Returns
Instances(string, string)
Returns instances of the specified recurring event.
public virtual EventsResource.InstancesRequest Instances(string calendarId, string eventId)
Parameters
Returns
List(string)
Returns events on the specified calendar.
public virtual EventsResource.ListRequest List(string calendarId)
Parameters
calendarId
stringCalendar identifier.
Returns
Move(string, string, string)
Moves an event to another calendar, i.e. changes an event's organizer.
public virtual EventsResource.MoveRequest Move(string calendarId, string eventId, string destination)
Parameters
calendarId
stringCalendar identifier of the source calendar where the event currently is on.
eventId
stringEvent identifier.
destination
stringCalendar identifier of the target calendar where the event is to be moved to.
Returns
Patch(Event, string, string)
Updates an event. This method supports patch semantics.
public virtual EventsResource.PatchRequest Patch(Event body, string calendarId, string eventId)
Parameters
body
EventThe body of the request.
calendarId
stringCalendar identifier.
eventId
stringEvent identifier.
Returns
QuickAdd(string, string)
Creates an event based on a simple text string.
public virtual EventsResource.QuickAddRequest QuickAdd(string calendarId, string text)
Parameters
Returns
Update(Event, string, string)
Updates an event.
public virtual EventsResource.UpdateRequest Update(Event body, string calendarId, string eventId)
Parameters
body
EventThe body of the request.
calendarId
stringCalendar identifier.
eventId
stringEvent identifier.
Returns
Watch(Channel, string)
Watch for changes to Events resources.
public virtual EventsResource.WatchRequest Watch(Channel body, string calendarId)