Package com.calclab.emite.core.events

Examples of com.calclab.emite.core.events.RequestFailedEvent


      itemNode.setAttribute("jid", item.getJID().toString());

      session.sendIQ("roster", iq, new IQCallback() {
        @Override
        public void onIQSuccess(final IQ iq) {
          eventBus.fireEventFromSource(new RequestFailedEvent("rosterItemRemove", "remove roster item failed", iq), this);
        }

        @Override
        public void onIQFailure(final IQ iq) {
        }
View Full Code Here


      item.addStanzaTo(iq.addQuery(XmppNamespaces.ROSTER));

      session.sendIQ("roster", iq, new IQCallback() {
        @Override
        public void onIQSuccess(final IQ iq) {
          eventBus.fireEventFromSource(new RequestFailedEvent("rosterItemUpdate", "update roster item failed", iq), this);
        }

        @Override
        public void onIQFailure(final IQ iq) {
        }
View Full Code Here

    }

    session.sendIQ("roster", iq, new IQCallback() {
      @Override
      public void onIQSuccess(final IQ iq) {
        eventBus.fireEventFromSource(new RequestFailedEvent("rosterItemsUpdate", "update several roster items failed", iq), this);
      }

      @Override
      public void onIQFailure(final IQ iq) {
      }
View Full Code Here

          eventBus.fireEventFromSource(new RosterRetrievedEvent(getItems()), this);
        }

        @Override
        public void onIQFailure(final IQ iq) {
          eventBus.fireEventFromSource(new RequestFailedEvent("roster request", "couldn't retrieve the roster", iq), this);
        }
      });
    }
  }
View Full Code Here

    item.addStanzaTo(iq.addQuery(XmppNamespaces.ROSTER));

    session.sendIQ("roster", iq, new IQCallback() {
      @Override
      public void onIQSuccess(final IQ iq) {
        eventBus.fireEventFromSource(new RequestFailedEvent("rosterItem", "roster item can't be updated", iq), this);
      }

      @Override
      public void onIQFailure(final IQ iq) {
      }
View Full Code Here

TOP

Related Classes of com.calclab.emite.core.events.RequestFailedEvent

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.