/** * Begins an asynchronous request to subscribes to pull notification. * Calling this method results in a call to EWS. * * @param callback The AsyncCallback delegate. * @param state An object that contains state information for this request. * @param folderIds The Ids of the folder to subscribe to. * @param timeout The timeout, in minutes, after which the subscription expires. * Timeout must be between 1 and 1440. * @param watermark An optional watermark representing a previously opened * subscription. * @param eventTypes The event types to subscribe to. * @return An IAsyncResult that references the asynchronous request. * @throws Exception */ public AsyncRequestResult beginSubscribeToPullNotifications( AsyncCallback callback, Object state, Iterable<FolderId> folderIds, int timeout, String watermark, EventType... eventTypes) throws Exception { EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); return this.buildSubscribeToPullNotificationsRequest(folderIds, timeout, watermark, eventTypes).beginExecute(callback); }
/** * Begins an asynchronous request to subscribe to pull notification on all * folder in the authenticated user's mailbox. Calling this method results * in a call to EWS. * * @param callback The AsyncCallback delegate. * @param state An object that contains state information for this request. * @param timeout The timeout, in minutes, after which the subscription expires. * Timeout must be between 1 and 1440. * @param watermark An optional watermark representing a previously opened * subscription. * @param eventTypes The event types to subscribe to. * @return An IAsyncResult that references the asynchronous request. * @throws Exception */ public IAsyncResult beginSubscribeToPullNotificationsOnAllFolders(AsyncCallback callback, Object state, int timeout, String watermark, EventType... eventTypes) throws Exception { EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, "BeginSubscribeToPullNotificationsOnAllFolders"); return this.buildSubscribeToPullNotificationsRequest(null, timeout, watermark, eventTypes).beginExecute( null); }
/** * Subscribes to pull notification. Calling this method results in a call * to EWS. * * @param folderIds The Ids of the folder to subscribe to * @param timeout The timeout, in minutes, after which the subscription expires. * Timeout must be between 1 and 1440. * @param watermark An optional watermark representing a previously opened * subscription. * @param eventTypes The event types to subscribe to. * @return A PullSubscription representing the new subscription. * @throws Exception on error */ public PullSubscription subscribeToPullNotifications( Iterable<FolderId> folderIds, int timeout, String watermark, EventType... eventTypes) throws Exception { EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); return this.buildSubscribeToPullNotificationsRequest(folderIds, timeout, watermark, eventTypes).execute().getResponseAtIndex(0) .getSubscription(); }
/** * Subscribes to pull notification on all folder in the authenticated * user's mailbox. Calling this method results in a call to EWS. * * @param timeout the timeout * @param watermark the watermark * @param eventTypes the event types * @return A PullSubscription representing the new subscription. * @throws Exception the exception */ public PullSubscription subscribeToPullNotificationsOnAllFolders( int timeout, String watermark, EventType... eventTypes) throws Exception { EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, "SubscribeToPullNotificationsOnAllFolders"); return this.buildSubscribeToPullNotificationsRequest(null, timeout, watermark, eventTypes).execute().getResponseAtIndex(0) .getSubscription(); }
/** * Begins an asynchronous request to subscribes to pull notification. * Calling this method results in a call to EWS. * * @param callback The AsyncCallback delegate. * @param state An object that contains state information for this request. * @param folderIds The Ids of the folder to subscribe to. * @param timeout The timeout, in minutes, after which the subscription expires. * Timeout must be between 1 and 1440. * @param watermark An optional watermark representing a previously opened * subscription. * @param eventTypes The event types to subscribe to. * @return An IAsyncResult that references the asynchronous request. * @throws Exception */ public AsyncRequestResult beginSubscribeToPullNotifications( AsyncCallback callback, Object state, Iterable<FolderId> folderIds, int timeout, String watermark, EventType... eventTypes) throws Exception { EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); return this.buildSubscribeToPullNotificationsRequest(folderIds, timeout, watermark, eventTypes).beginExecute(callback); }
/** * Begins an asynchronous request to subscribe to pull notification on all * folder in the authenticated user's mailbox. Calling this method results * in a call to EWS. * * @param callback The AsyncCallback delegate. * @param state An object that contains state information for this request. * @param timeout The timeout, in minutes, after which the subscription expires. * Timeout must be between 1 and 1440. * @param watermark An optional watermark representing a previously opened * subscription. * @param eventTypes The event types to subscribe to. * @return An IAsyncResult that references the asynchronous request. * @throws Exception */ public IAsyncResult beginSubscribeToPullNotificationsOnAllFolders(AsyncCallback callback, Object state, int timeout, String watermark, EventType... eventTypes) throws Exception { EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, "BeginSubscribeToPullNotificationsOnAllFolders"); return this.buildSubscribeToPullNotificationsRequest(null, timeout, watermark, eventTypes).beginExecute( null); }
/** * Subscribes to pull notification. Calling this method results in a call * to EWS. * * @param folderIds The Ids of the folder to subscribe to * @param timeout The timeout, in minutes, after which the subscription expires. * Timeout must be between 1 and 1440. * @param watermark An optional watermark representing a previously opened * subscription. * @param eventTypes The event types to subscribe to. * @return A PullSubscription representing the new subscription. * @throws Exception on error */ public PullSubscription subscribeToPullNotifications( Iterable<FolderId> folderIds, int timeout, String watermark, EventType... eventTypes) throws Exception { EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); return this.buildSubscribeToPullNotificationsRequest(folderIds, timeout, watermark, eventTypes).execute().getResponseAtIndex(0) .getSubscription(); }
/** * Subscribes to pull notification on all folder in the authenticated * user's mailbox. Calling this method results in a call to EWS. * * @param timeout the timeout * @param watermark the watermark * @param eventTypes the event types * @return A PullSubscription representing the new subscription. * @throws Exception the exception */ public PullSubscription subscribeToPullNotificationsOnAllFolders( int timeout, String watermark, EventType... eventTypes) throws Exception { EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, "SubscribeToPullNotificationsOnAllFolders"); return this.buildSubscribeToPullNotificationsRequest(null, timeout, watermark, eventTypes).execute().getResponseAtIndex(0) .getSubscription(); }