Package com.levelonelabs.aim

Examples of com.levelonelabs.aim.AIMBuddy


  public long buddyListLastModified() {
    return System.currentTimeMillis();
  }

  public synchronized boolean isBuddyOnline(String buddyName) {
    AIMBuddy buddy = getBuddy(buddyName);
    boolean online = buddy != null && buddy.isOnline();
    return online;
  }
View Full Code Here


    boolean online = buddy != null && buddy.isOnline();
    return online;
  }

  public synchronized AIMBuddy getBuddy(String buddyName) {
    AIMBuddy buddy;
    if (_sender == null) {
      buddy = null;
    }
    else {
      buddy = _sender.getBuddy(buddyName);
      if (buddy == null) {
        _sender.addBuddy(new AIMBuddy(buddyName));
        buddy = _sender.getBuddy(buddyName);
      }
    }
    return buddy;
  }
View Full Code Here

    return buddy;
  }

  public synchronized void addBuddy(String buddyName) {
    if (_sender != null) {
      _sender.addBuddy(new AIMBuddy(buddyName));
    }
  }
View Full Code Here

    }
  }

  public void removeBuddy(String buddyName) {
    if (_sender != null) {
      _sender.removeBuddy(new AIMBuddy(buddyName));
    }
  }
View Full Code Here

    return false;
  }

  public synchronized void sendMessage(String buddyName, String message, boolean ignoreIfOffline) throws MessageException {
    if (_sender != null) {
      AIMBuddy buddy = getBuddy(buddyName);
      if (buddy != null) {
        if (!buddy.isOnline()) {
          if (!ignoreIfOffline) {
            throw new BuddyOfflineException("The buddy '" + buddyName + "' is not online.");
          }
        }
        else {
View Full Code Here

TOP

Related Classes of com.levelonelabs.aim.AIMBuddy

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.