public interface IGmailClient extends IBaseGmailClient
Represents the interface for Gmail client
| Modifier and Type | Method and Description |
|---|---|
void |
clearCalendar(String calendarId)
Clears a calendar.
|
AccessControlRule |
createAccessRule(String calendarId,
AccessControlRule role)
Creates access rule
|
Appointment |
createAppointment(String calendarId,
Appointment appointment)
Creates an appointment.
|
String |
createCalendar(Calendar calendar)
Creates a calendar.
|
String |
createCalendar(Calendar calendar,
boolean useColorRgbFormat)
Creates a calendar.
|
String |
createContact(Contact contact)
Creates contact for specified email
|
String |
createContact(Contact contact,
String emailAddress)
Creates contact for specified email
|
ContactPhoto |
createContactPhoto(Contact contact,
byte[] imageData)
Creates contact photo
|
void |
deleteAccessRule(String calendarId,
String roleId)
Deletes access rule
|
void |
deleteAppointment(String calendarId,
String appointmentId)
Deletes an appointment.
|
void |
deleteCalendar(String calendarId)
Deletes a calendar.
|
void |
deleteContact(String contactUri)
Deletes specified contact
|
void |
deleteContactPhoto(ContactPhoto contactPhoto)
Deletes contact photo
|
AccessControlRule |
fetchAccessRule(String calendarId,
String roleId)
Fetches access rule
|
Appointment |
fetchAppointment(String calendarId,
String appointmentId)
Fetches appointment by identifier.
|
ExtendedCalendar |
fetchCalendar(String calendarId)
Fetches calendar by identifier.
|
Contact[] |
getAllContacts()
Fetches all contacts.
|
ContactGroupCollection |
getAllGroups()
Fetches all contact groups.
|
ColorsInfo |
getColors()
Gets color information
|
Contact |
getContact(Contact contact) |
Contact |
getContact(String contactUri)
Fetches contact
|
Contact[] |
getContactsFromGroup(String groupId)
Fetches contacts belonging to the group specified.
|
FreebusyResponse |
getFreebusyInfo(FreebusyQuery query)
Gets free/busy information
|
ContactPhoto |
getPhoto(ContactPhoto photo)
Fetches a contact photo
|
ContactPhoto |
getPhoto(String photoUri)
Fetches a contact photo
|
String |
getSetting(String setting)
Gets settings by the name
|
com.aspose.ms.System.Collections.Generic.Dictionary<String,String> |
getSettings()
Gets settings dictionary
|
Appointment |
importAppointment(String calendarId,
Appointment appointment)
Imports appointment to calendar
|
AccessControlRule[] |
listAccessRules(String calendarId)
Gets list of access rules
|
Appointment[] |
listAppointmentInstances(String calendarId,
String appointmentId)
Gets list of an appointment instances for calendar.
|
Appointment[] |
listAppointments(String calendarId)
Gets list of an appointments for calendar.
|
ExtendedCalendar[] |
listCalendars()
Gets array of calendars.
|
ExtendedCalendar[] |
listCalendars(int minAccessRole,
boolean showHidden)
Gets array of calendars.
|
Appointment |
moveAppointment(String sourceCalendarId,
String destinationCalendarId,
String appointmentId)
Moves an appointment to another calendar.
|
Appointment |
moveAppointment(String sourceCalendarId,
String destinationCalendarId,
String appointmentId,
boolean sendNotifications)
Moves an appointment to another calendar.
|
AccessControlRule |
updateAccessRule(String calendarId,
AccessControlRule role)
Updates access rule
|
Appointment |
updateAppointment(String calendarId,
Appointment appointment)
Updates an appointment.
|
void |
updateCalendar(Calendar calendar)
Updates a calendar
|
void |
updateCalendar(Calendar calendar,
boolean useColorRgbFormat)
Updates a calendar
|
Contact |
updateContact(Contact contact)
Updates contact
|
void |
updateContactPhoto(ContactPhoto contactPhoto)
Creates or updates contact photo
|
close, getAccessToken, getDefaultEmail, getProxy, getTimeout, refreshToken, setAccessToken, setProxy, setTimeoutExtendedCalendar[] listCalendars()
Gets array of calendars.
ExtendedCalendar[] listCalendars(int minAccessRole, boolean showHidden)
Gets array of calendars.
minAccessRole - The effective access role that the authenticated user has on the calendar.showHidden - Show hidden calendarsString createCalendar(Calendar calendar)
Creates a calendar.
calendar - An instance of calendar object to create.String createCalendar(Calendar calendar, boolean useColorRgbFormat)
Creates a calendar.
calendar - An instance of calendar object to create.useColorRgbFormat - Indicates whether color rgb format is used.void updateCalendar(Calendar calendar)
Updates a calendar
calendar - An instance of calendar object to update.void updateCalendar(Calendar calendar, boolean useColorRgbFormat)
Updates a calendar
calendar - An instance of calendar object to update.useColorRgbFormat - Indicates whether color rgb format is used.ExtendedCalendar fetchCalendar(String calendarId)
Fetches calendar by identifier.
calendarId - Calendar identifier.void deleteCalendar(String calendarId)
Deletes a calendar.
calendarId - Calendar identifier.void clearCalendar(String calendarId)
Clears a calendar.
calendarId - Calendar identifier.Appointment[] listAppointments(String calendarId)
Gets list of an appointments for calendar.
calendarId - Calendar identifier.Appointment[] listAppointmentInstances(String calendarId, String appointmentId)
Gets list of an appointment instances for calendar.
calendarId - Calendar identifier.appointmentId - Appointment identifier.Appointment createAppointment(String calendarId, Appointment appointment)
Creates an appointment.
calendarId - Calendar identifier.appointment - An instance of appointment object to create.Appointment importAppointment(String calendarId, Appointment appointment)
Imports appointment to calendar
calendarId - Calendar identifier.appointment - An instance of appointment object to import.Appointment fetchAppointment(String calendarId, String appointmentId)
Fetches appointment by identifier.
calendarId - Calendar identifier.appointmentId - Appointment identifier.Appointment moveAppointment(String sourceCalendarId, String destinationCalendarId, String appointmentId)
Moves an appointment to another calendar.
sourceCalendarId - Identifier of source calendar.destinationCalendarId - Identifier of destination calendar.appointmentId - Appointment identifier.Appointment moveAppointment(String sourceCalendarId, String destinationCalendarId, String appointmentId, boolean sendNotifications)
Moves an appointment to another calendar.
sourceCalendarId - Identifier of source calendar.destinationCalendarId - Identifier of destination calendar.appointmentId - Appointment identifier.sendNotifications - Specifies whether notification should be sent.Appointment updateAppointment(String calendarId, Appointment appointment)
Updates an appointment.
calendarId - Calendar identifier.appointment - An instance of appointment object to update.void deleteAppointment(String calendarId, String appointmentId)
Deletes an appointment.
calendarId - Calendar identifier.appointmentId - Appointment identifier.AccessControlRule createAccessRule(String calendarId, AccessControlRule role)
Creates access rule
calendarId - Calendar identifier.role - Access control ruleAccessControlRule updateAccessRule(String calendarId, AccessControlRule role)
Updates access rule
calendarId - Calendar identifier.role - Access control ruleAccessControlRule fetchAccessRule(String calendarId, String roleId)
Fetches access rule
calendarId - Calendar identifier.roleId - Role identifier.void deleteAccessRule(String calendarId, String roleId)
Deletes access rule
calendarId - Calendar identifier.roleId - Role identifier.AccessControlRule[] listAccessRules(String calendarId)
Gets list of access rules
calendarId - Calendar identifier.com.aspose.ms.System.Collections.Generic.Dictionary<String,String> getSettings()
Gets settings dictionary
String getSetting(String setting)
Gets settings by the name
setting - Setting nameFreebusyResponse getFreebusyInfo(FreebusyQuery query)
Gets free/busy information
query - Query to get free/busy informationColorsInfo getColors()
Gets color information
ContactGroupCollection getAllGroups()
Fetches all contact groups.
WebException - when operation failsContact getContact(String contactUri)
Fetches contact
contactUri - String, that represents contact's uriContact object, that represents a contact of gmailWebException - when operation failsContact getContact(Contact contact)
contact - Contact to refreshContact object, that represents a contact of gmailWebException - when operation failsContact[] getContactsFromGroup(String groupId)
Fetches contacts belonging to the group specified.
groupId - string that represents group id for a contactArgumentNullException - groupId is null or empty.WebException - when operation failsContact[] getAllContacts()
Fetches all contacts.
WebException - when operation failsContactPhoto getPhoto(ContactPhoto photo)
Fetches a contact photo
photo - ContactPhoto object with identifierContactPhoto getPhoto(String photoUri)
Fetches a contact photo
photoUri - Uri of an image.String createContact(Contact contact)
Creates contact for specified email
contact - A contact to create.String createContact(Contact contact, String emailAddress)
Creates contact for specified email
contact - A contact to create.emailAddress - Email addressContact updateContact(Contact contact)
Updates contact
contact - A contact to update.void deleteContact(String contactUri)
Deletes specified contact
contactUri - Contact urivoid deleteContactPhoto(ContactPhoto contactPhoto)
Deletes contact photo
contactPhoto - contact photovoid updateContactPhoto(ContactPhoto contactPhoto)
Creates or updates contact photo
contactPhoto - contact photoContactPhoto createContactPhoto(Contact contact, byte[] imageData)
Creates contact photo
contact - contact photoimageData - image dataCopyright (c) 2008-2021 Aspose Pty Ltd. All Rights Reserved.