ListEventQueryParams

public final class ListEventQueryParams implements IQueryParams

Class representation of the query parameters for listing events.

Constructors

Link copied to clipboard
public ListEventQueryParams ListEventQueryParams(@Json(name = "calendar_id") String calendarId, @Json(name = "limit") Integer limit, @Json(name = "page_token") String pageToken, @Json(name = "show_cancelled") Boolean showCancelled, @Json(name = "title") String title, @Json(name = "description") String description, @Json(name = "location") String location, @Json(name = "end") String end, @Json(name = "start") String start, @Json(name = "metadata_pair") Map<String, String> metadataPair, @Json(name = "expand_recurring") Boolean expandRecurring, @Json(name = "busy") Boolean busy, @Json(name = "participants") String orderBy, @Json(name = "ical_uid") String icalUid, @Json(name = "master_event_id") String masterEventId, @Json(name = "updated_before") Long updatedBefore, @Json(name = "updated_after") Long updatedAfter, @Json(name = "attendees") List<String> attendees, @Json(name = "event_type") EventType eventType)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
private final List<String> attendees

Filter for events that include the specified attendees. This parameter accepts a comma-delimited list of email addresses. (Not supported for virtual calendars)

Link copied to clipboard
private final Boolean busy

Returns events with a busy status of true.

Link copied to clipboard
private final String calendarId

Specify calendar ID of the event. "primary" is a supported value indicating the user's primary calendar.

Link copied to clipboard
private final String description

Return events matching the specified description. Graph: NOT supported

Link copied to clipboard
private final String end

Return events ending before the specified unix timestamp. Defaults to a month from now. Not respected by metadata filtering.

Link copied to clipboard
private final EventType eventType

Filter for events with the specified event type. You can pass this query parameter multiple times to select or exclude multiple event types. (Google only)

Link copied to clipboard
private final Boolean expandRecurring

If true, the response will include an event for each occurrence of a recurring event within the requested time range. If false, only a single primary event will be returned for each recurring event. Cannot be used when filtering on metadata. Defaults to false.

Link copied to clipboard
private final String icalUid

Filter for events with the specified ical_uid. You cannot apply other filters if you use this parameter. (Not supported for iCloud)

Link copied to clipboard
private final Integer limit

The maximum number of objects to return. This field defaults to 50. The maximum allowed value is 200.

Link copied to clipboard
private final String location

Return events matching the specified location.

Link copied to clipboard
private final String masterEventId

Filter for instances of recurring events with the specified master_event_id. masterEventId is not respected by metadata filtering. (Not supported for iCloud)

Link copied to clipboard
private final Map<String, String> metadataPair

Pass in your metadata key and value pair to search for metadata.

Link copied to clipboard
private final String orderBy

Order results by the specified field. Currently only start is supported.

Link copied to clipboard
private final String pageToken

An identifier that specifies which page of data to return. This value should be taken from the ListResponse.nextCursor response field.

Link copied to clipboard
private final Boolean showCancelled

Return events that have a status of cancelled. If an event is recurring, then it returns no matter the value set. Different providers have different semantics for cancelled events.

Link copied to clipboard
private final String start

Return events starting after the specified unix timestamp. Defaults to the current timestamp. Not respected by metadata filtering.

Link copied to clipboard
private final String title

Return events matching the specified title.

Link copied to clipboard
private final Long updatedAfter

Filter for events that have been updated after the specified time, in Unix epoch format. updatedAfter is not respected by metadata filtering. (Google, Microsoft, and EWS only)

Link copied to clipboard
private final Long updatedBefore

Filter for events that have been updated after the specified time, in Unix epoch format. updatedBefore is not respected by metadata filtering. (Google, Microsoft, and EWS only)

Functions

Link copied to clipboard

Convert the query parameters to a json-formatted map.

Link copied to clipboard
public final List<String> getAttendees()

Filter for events that include the specified attendees. This parameter accepts a comma-delimited list of email addresses. (Not supported for virtual calendars)

Link copied to clipboard
public final Boolean getBusy()

Returns events with a busy status of true.

Link copied to clipboard
public final String getCalendarId()

Specify calendar ID of the event. "primary" is a supported value indicating the user's primary calendar.

Link copied to clipboard
public final String getDescription()

Return events matching the specified description. Graph: NOT supported

Link copied to clipboard
public final String getEnd()

Return events ending before the specified unix timestamp. Defaults to a month from now. Not respected by metadata filtering.

Link copied to clipboard
public final EventType getEventType()

Filter for events with the specified event type. You can pass this query parameter multiple times to select or exclude multiple event types. (Google only)

Link copied to clipboard
public final Boolean getExpandRecurring()

If true, the response will include an event for each occurrence of a recurring event within the requested time range. If false, only a single primary event will be returned for each recurring event. Cannot be used when filtering on metadata. Defaults to false.

Link copied to clipboard
public final String getIcalUid()

Filter for events with the specified ical_uid. You cannot apply other filters if you use this parameter. (Not supported for iCloud)

Link copied to clipboard
public final Integer getLimit()

The maximum number of objects to return. This field defaults to 50. The maximum allowed value is 200.

Link copied to clipboard
public final String getLocation()

Return events matching the specified location.

Link copied to clipboard
public final String getMasterEventId()

Filter for instances of recurring events with the specified master_event_id. masterEventId is not respected by metadata filtering. (Not supported for iCloud)

Link copied to clipboard
public final Map<String, String> getMetadataPair()

Pass in your metadata key and value pair to search for metadata.

Link copied to clipboard
public final String getOrderBy()

Order results by the specified field. Currently only start is supported.

Link copied to clipboard
public final String getPageToken()

An identifier that specifies which page of data to return. This value should be taken from the ListResponse.nextCursor response field.

Link copied to clipboard
public final Boolean getShowCancelled()

Return events that have a status of cancelled. If an event is recurring, then it returns no matter the value set. Different providers have different semantics for cancelled events.

Link copied to clipboard
public final String getStart()

Return events starting after the specified unix timestamp. Defaults to the current timestamp. Not respected by metadata filtering.

Link copied to clipboard
public final String getTitle()

Return events matching the specified title.

Link copied to clipboard
public final Long getUpdatedAfter()

Filter for events that have been updated after the specified time, in Unix epoch format. updatedAfter is not respected by metadata filtering. (Google, Microsoft, and EWS only)

Link copied to clipboard
public final Long getUpdatedBefore()

Filter for events that have been updated after the specified time, in Unix epoch format. updatedBefore is not respected by metadata filtering. (Google, Microsoft, and EWS only)