public class GCalendar extends Object
Modifier and Type | Field and Description |
---|---|
Boolean |
AlwaysIncludeEmail!
Filter for getEvents() method:
Whether to always include a value in the email field for the
organizer, creator and attendees, even if no real email is available
(i.e.
|
BBjString |
ICalUID!
Filter for getEvents() method:
Specifies event ID in the iCalendar format to be included in the
response.
|
BBjNumber |
MaxAttendees!
Filter for getEvents() method:
The maximum number of attendees to include in the response.
|
BBjNumber |
MaxResults!
Filter for getEvents() method:
Maximum number of events returned on one result page.
|
BBjString |
OrderBy!
Filter for getEvents() method:
The order of the events returned in the result.
|
BBjString |
PageToken!
Filter for getEvents() method:
Token specifying which result page to return.
|
BBjVector |
PrivateExtendedProperty!
Extended properties constraint specified as propertyName = value.
|
BBjString |
Q!
Filter for getEvents() method:
Free text search terms to find events that match these terms in any
field, except for extended properties.
|
BBjVector |
SharedExtendedProperty!
Extended properties constraint specified as propertyName = value.
|
Boolean |
ShowDeleted!
Whether to include deleted events (with status equals "cancelled")
in the result.
|
Boolean |
ShowHiddenInvitations!
Whether to include hidden invitations in the result.
|
BBjNumber |
SingleEvents!
Whether to expand recurring events into instances and only return
single one-off events and instances of recurring events, but not the
underlying recurring events themselves.
|
BBjString |
SyncToken!
Token obtained from the nextSyncToken field returned on the last page
of results from the previous list request.
|
Date |
TimeMax!
Filter for getEvents() method:
Upper bound (exclusive) for an event's start time to filter by.
|
Date |
TimeMin!
Lower bound (inclusive) for an event's end time to filter by.
|
BBjString |
TimeZone!
Filter for getEvents() method:
Time zone used in the response.
|
Date |
UpdatedMin!
Lower bound for an event's last modification time (as a RFC 3339
timestamp) to filter by.
|
Constructor and Description |
---|
GCalendar(GCalendarAPI api!,
CalendarListEntry wrappedCalendar!)
Constructor
|
Modifier and Type | Method and Description |
---|---|
GEvent |
addEvent(GEvent event!)
Add an event to the calendar.
|
void |
deleteEvent(GEvent event!)
Delete an event in the calendar.
|
BBjString |
getAccessRole()
Get access role.
|
BBjString |
getBackgroundColor()
Get background color.
|
BBjVector |
getBusyTimes(Date startDate!,
Date endDate!) |
BBjString |
getColorId()
Get color id.
|
GEvents |
getDeletedEvents()
Gets deleted events
|
BBjString |
getDescription()
Description of the calendar.
|
BBjString |
getEtag()
ETag for the calendar.
|
GEvents |
getEvents()
Get all events (like scheduled appointments) associated with this
calendar.
|
GEvents |
getEvents(BBjString retrieveToken!)
Get all events (like scheduled appointments) associated with this
calendar using a token that represents a datetime when events were last retrieved.
|
GEvents |
getEvents(DateTime timeMin!,
DateTime timeMax!)
Get all events (like scheduled appointments) associated with this
calendar that fall in between the specified date range.
|
BBjString |
getForegroundColor()
Get foreground color.
|
BBjNumber |
getHidden()
Returns whether calendar is suppressed from displaying.
|
BBjString |
getId()
Returns the calendar's Id string.
|
BBjString |
getKind()
Specifies the type of Google resource.
|
BBjString |
getLocation()
Get Calendar's location.
|
static Date |
getRelativeDate(BBjNumber field,
BBjNumber amount) |
BBjString |
getSummary()
Retrieves the calendar's summary.
|
BBjString |
getSummaryOverride()
Retrieves the calendar's summary override.
|
BBjString |
getTimeZone()
Retrieves the calendar's timezone.
|
BBjNumber |
isDeleted()
Indicates whether this calendar has been deleted.
|
BBjNumber |
isPrimary()
Specifies whether this is the user's default calendar.
|
BBjNumber |
isSelected()
Indicates whether the calendar is selected.
|
GCalendar |
set(BBjString fieldName!,
Object value!)
Can be used to set JSON properties in the calendar.
|
GCalendar |
setAccessRole(BBjString accessRole!)
Set access role.
|
GCalendar |
setBackgroundColor(BBjString backgroundColor!)
Set the background color of the calendar.
|
GCalendar |
setColorId(BBjString colorId!)
Set color id
|
GCalendar |
setDeleted(BBjNumber deleted!)
Set calendar's "deleted" attribute
|
GCalendar |
setDescription(BBjString description!)
Set calendar's description
|
GCalendar |
setEtag(BBjString etag!)
Set calendar's "deleted" attribute
|
GEvent |
updateEvent(GEvent event!)
Update an event in the calendar.
|
public Boolean AlwaysIncludeEmail!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString ICalUID!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjNumber MaxAttendees!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjNumber MaxResults!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString OrderBy!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString PageToken!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjVector PrivateExtendedProperty!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString Q!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjVector SharedExtendedProperty!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Boolean ShowDeleted!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Boolean ShowHiddenInvitations!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjNumber SingleEvents!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString SyncToken!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Date TimeMax!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Date TimeMin!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString TimeZone!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Date UpdatedMin!
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public GCalendar(GCalendarAPI api!, CalendarListEntry wrappedCalendar!)
wrappedCalendar!
- CalendarListEntry that will be wrapped
by this class. Can not be null.public GEvents getEvents()
public GEvents getEvents(DateTime timeMin!, DateTime timeMax!)
timeMin!
- DateTime that specifies the lower data range.timeMax!
- DateTime that specifies the higher data range.public GEvents getEvents(BBjString retrieveToken!)
retrieveToken!
- token that represents a datetime when events were last retrieved.public GEvent addEvent(GEvent event!)
event!
- Event to be added to the calendar.!ERROR
- = 300 A Google Calendar API Error has occurredpublic GEvent updateEvent(GEvent event!)
event!
- Event to be updated in the calendar. Event must already
exist in the calendar.
REM * @return The event object as updated by the calendar.!ERROR
- = 300 A Google Calendar API Error has occurredpublic void deleteEvent(GEvent event!)
event!
- Event to be deleted in the calendar. Event must already
exist in the calendar.!ERROR
- = 300 A Google Calendar API Error has occurredpublic BBjString getAccessRole()
public BBjString getBackgroundColor()
public BBjString getColorId()
public BBjNumber isDeleted()
public GEvents getDeletedEvents()
public BBjString getDescription()
public BBjString getEtag()
http://en.wikipedia.org/wiki/HTTP_ETag
public BBjString getForegroundColor()
public BBjNumber getHidden()
public BBjString getId()
public BBjString getKind()
public BBjString getLocation()
public BBjNumber isPrimary()
public BBjNumber isSelected()
public BBjString getSummary()
public BBjString getSummaryOverride()
public BBjString getTimeZone()
public GCalendar set(BBjString fieldName!, Object value!)
fieldName!
- Name of the property/variable/field to setvalue!
- What value to set the property to.See the structure under the heading "Resource Representations"
public GCalendar setAccessRole(BBjString accessRole!)
accessRole!
- String representing access role.public GCalendar setBackgroundColor(BBjString backgroundColor!)
public GCalendar setColorId(BBjString colorId!)
colorId!
- String representing the color ID.public GCalendar setDeleted(BBjNumber deleted!)
deleted!
- Can be 0 or non-zero:public GCalendar setDescription(BBjString description!)
description!
- A string containing the text of the calendar's description.public GCalendar setEtag(BBjString etag!)
deleted!
- Can be 0 or non-zero:public static Date getRelativeDate(BBjNumber field, BBjNumber amount)