Package com.google.wave.api.OperationRequest

Examples of com.google.wave.api.OperationRequest.Parameter


    OperationRequest notifyOp = new OperationRequest(OperationType.ROBOT_NOTIFY.method(), "op1");
    protocolVersion = OperationUtil.getProtocolVersion(Collections.singletonList(notifyOp));
    assertEquals("Notify op as first op without version parameter should return default",
        ProtocolVersion.DEFAULT, protocolVersion);

    Parameter versionParameter =
        Parameter.of(ParamsProperty.PROTOCOL_VERSION, ProtocolVersion.V2_1.getVersionString());
    notifyOp = new OperationRequest(OperationType.ROBOT_NOTIFY.method(), "op1", versionParameter);
    protocolVersion = OperationUtil.getProtocolVersion(Collections.singletonList(notifyOp));
    assertEquals(
        "Notify op as first op should return its version", ProtocolVersion.V2_1, protocolVersion);
View Full Code Here


   * @param query the query to execute.
   * @param index the index from which to return results.
   * @param numresults the number of results to return.
   */
  public void search(String query, Integer index, Integer numresults) {
    Parameter queryParam = Parameter.of(ParamsProperty.QUERY, query);
    Parameter indexParam = Parameter.of(ParamsProperty.INDEX, index);
    Parameter numresultsParam = Parameter.of(ParamsProperty.NUM_RESULTS, numresults);
    appendOperation(OperationType.ROBOT_SEARCH, queryParam, indexParam, numresultsParam);
  }
View Full Code Here

   * @param query the query to execute.
   * @param index the index from which to return results.
   * @param numresults the number of results to return.
   */
  public void search(String query, Integer index, Integer numresults) {
    Parameter queryParam = Parameter.of(ParamsProperty.QUERY, query);
    Parameter indexParam = Parameter.of(ParamsProperty.INDEX, index);
    Parameter numresultsParam = Parameter.of(ParamsProperty.NUM_RESULTS, numresults);
    appendOperation(OperationType.ROBOT_SEARCH, queryParam, indexParam, numresultsParam);
  }
View Full Code Here

TOP

Related Classes of com.google.wave.api.OperationRequest.Parameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.