コード例 #1
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);
  }
  /**
   * 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);
  }
コード例 #3
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);
  }