/** * Begins an asynchronous request to retrieve the latest events associated * with a pull subscription. 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 subscriptionId The id of the pull subscription for which to get the events * @param watermark The watermark representing the point in time where to start * receiving events * @return An IAsynResult that references the asynchronous request * @throws Exception */ public IAsyncResult beginGetEvents(AsyncCallback callback, Object state, String subscriptionId, String watermark) throws Exception { return this.buildGetEventsRequest(subscriptionId, watermark) .beginExecute(callback); }
/** * Retrieves the latests events associated with a pull subscription. * Calling this method results in a call to EWS. * * @param subscriptionId the subscription id * @param waterMark the water mark * @return A GetEventsResults containing a list of events associated with * the subscription. * @throws Exception the exception */ public GetEventsResults getEvents(String subscriptionId, String waterMark) throws Exception { return this.buildGetEventsRequest(subscriptionId, waterMark).execute() .getResponseAtIndex(0).getResults(); }
/** * Begins an asynchronous request to retrieve the latest events associated * with a pull subscription. 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 subscriptionId The id of the pull subscription for which to get the events * @param watermark The watermark representing the point in time where to start * receiving events * @return An IAsynResult that references the asynchronous request * @throws Exception */ public IAsyncResult beginGetEvents(AsyncCallback callback, Object state, String subscriptionId, String watermark) throws Exception { return this.buildGetEventsRequest(subscriptionId, watermark) .beginExecute(callback); }
/** * Retrieves the latests events associated with a pull subscription. * Calling this method results in a call to EWS. * * @param subscriptionId the subscription id * @param waterMark the water mark * @return A GetEventsResults containing a list of events associated with * the subscription. * @throws Exception the exception */ public GetEventsResults getEvents(String subscriptionId, String waterMark) throws Exception { return this.buildGetEventsRequest(subscriptionId, waterMark).execute() .getResponseAtIndex(0).getResults(); }