コード例 #1
0
  /**
   * dismissReminderRaw listenable future.
   *
   * @return the listenable future
   */
  public ListenableFuture<String> dismissReminderRaw() {

    Request request = getResolver().createRequest();
    request.setVerb(HttpVerb.POST);

    request.getUrl().appendPathComponent("microsoft.graph.dismissReminder");

    ListenableFuture<OrcResponse> future = oDataExecute(request);
    return transformToStringListenableFuture(future);
  }
コード例 #2
0
  /**
   * search listenable future.
   *
   * @param q the q
   * @return the listenable future
   */
  public ListenableFuture<DriveItem> search(String q) {

    java.util.Map<String, Object> map = new java.util.HashMap<String, Object>();
    map.put("q", q);

    Request request = getResolver().createRequest();
    request.setVerb(HttpVerb.GET);
    String parameters = getFunctionParameters(map);

    request.getUrl().appendPathComponent("microsoft.graph.search(" + parameters + ")");

    ListenableFuture<OrcResponse> future = oDataExecute(request);

    return transformToEntityListenableFuture(
        transformToStringListenableFuture(future), DriveItem.class, getResolver());
  }
コード例 #3
0
  /**
   * restoreRaw listenable future.
   *
   * @param identifierUris the identifierUris
   * @return the listenable future
   */
  public ListenableFuture<String> restoreRaw(String identifierUris) {

    java.util.Map<String, String> map = new java.util.HashMap<String, String>();

    map.put("identifierUris", identifierUris);

    Request request = getResolver().createRequest();
    request.setVerb(HttpVerb.POST);

    request.setContent(
        getResolver().getJsonSerializer().jsonObjectFromJsonMap(map).getBytes(Constants.UTF8));

    request.getUrl().appendPathComponent("Microsoft.Graph.restore");

    ListenableFuture<OrcResponse> future = oDataExecute(request);
    return transformToStringListenableFuture(future);
  }
  /**
   * checkMemberGroupsRaw listenable future.
   *
   * @param groupIds the groupIds
   * @return the listenable future
   */
  public ListenableFuture<String> checkMemberGroupsRaw(String groupIds) {

    java.util.Map<String, String> map = new java.util.HashMap<String, String>();

    map.put("groupIds", groupIds);

    Request request = getResolver().createRequest();
    request.setVerb(HttpVerb.POST);

    request.setContent(
        getResolver().getJsonSerializer().jsonObjectFromJsonMap(map).getBytes(Constants.UTF8));

    request.getUrl().appendPathComponent("Microsoft.DirectoryServices.checkMemberGroups");

    ListenableFuture<OrcResponse> future = oDataExecute(request);
    return transformToStringListenableFuture(future);
  }
コード例 #5
0
  /**
   * snoozeReminderRaw listenable future.
   *
   * @param newReminderTime the newReminderTime
   * @return the listenable future
   */
  public ListenableFuture<String> snoozeReminderRaw(String newReminderTime) {

    java.util.Map<String, String> map = new java.util.HashMap<String, String>();

    map.put("NewReminderTime", newReminderTime);

    Request request = getResolver().createRequest();
    request.setVerb(HttpVerb.POST);

    request.setContent(
        getResolver().getJsonSerializer().jsonObjectFromJsonMap(map).getBytes(Constants.UTF8));

    request.getUrl().appendPathComponent("microsoft.graph.snoozeReminder");

    ListenableFuture<OrcResponse> future = oDataExecute(request);
    return transformToStringListenableFuture(future);
  }
コード例 #6
0
  /**
   * tentativelyAcceptRaw listenable future.
   *
   * @param comment the comment @param sendResponse the sendResponse
   * @return the listenable future
   */
  public ListenableFuture<String> tentativelyAcceptRaw(String comment, String sendResponse) {

    java.util.Map<String, String> map = new java.util.HashMap<String, String>();

    map.put("Comment", comment);
    map.put("SendResponse", sendResponse);

    Request request = getResolver().createRequest();
    request.setVerb(HttpVerb.POST);

    request.setContent(
        getResolver().getJsonSerializer().jsonObjectFromJsonMap(map).getBytes(Constants.UTF8));

    request.getUrl().appendPathComponent("microsoft.graph.tentativelyAccept");

    ListenableFuture<OrcResponse> future = oDataExecute(request);
    return transformToStringListenableFuture(future);
  }