Examples of XmppInviteRequest


Examples of com.google.appengine.api.xmpp.XMPPServicePb.XmppInviteRequest

  }

  @Override
  public void sendInvitation(JID jabberId, JID fromJid) {
    checkArgument(jabberId != null, "Jabber ID cannot be null");
    XmppInviteRequest request = new XmppInviteRequest();
    request.setJid(jabberId.getId());
    if (fromJid != null) {
      request.setFromJid(fromJid.getId());
    }

    byte[] responseBytes;
    try {
      responseBytes = ApiProxy.makeSyncCall(PACKAGE, "SendInvite", request.toByteArray());
    } catch (ApiProxy.ApplicationException ex) {
      switch (XmppServiceError.ErrorCode.valueOf(ex.getApplicationError())) {
        case INVALID_JID:
          throw new IllegalArgumentException("Invalid jabber ID: " + jabberId);
        case UNSPECIFIED_ERROR:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.