Package com.google.wave.api.robot

Examples of com.google.wave.api.robot.Capability


  private static Capability deserialize(ProtoRobotCapability data) {
    List<Context> contexts = Lists.newArrayList();
    for (String str: data.getContextList()) {
      contexts.add(Context.valueOf(str));
    }
    return new Capability(EventType.valueOf(data.getEventType()), contexts, data.getFilter());
  }
View Full Code Here


      EventMessageBundle messages) {
    if (!isEventFilteredOut(event)) {
      // Add the given blip to the required blip lists with the context
      // specified by the robot's capabilities.
      if (!Strings.isNullOrEmpty(blipId)) {
        Capability capability = capabilities.get(event.getType());
        List<Context> contexts;
        if (capability == null) {
          contexts = Capability.DEFAULT_CONTEXT;
        } else {
          contexts = capability.getContexts();
        }
        messages.requireBlip(blipId, contexts);
      }
      // Add the event to the bundle.
      messages.addEvent(event);
View Full Code Here

TOP

Related Classes of com.google.wave.api.robot.Capability

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.