Exemplo n.º 1
0
 /**
  * Returns the presence status of this transport.
  *
  * @return the presence status of this transport.
  */
 public PresenceStatus getStatus() {
   if (contactResource != null) return contactResource.getPresenceStatus();
   else return contact.getPresenceStatus();
 }
Exemplo n.º 2
0
  /**
   * Returns the resource name of this chat transport. This is for example the name of the user
   * agent from which the contact is logged.
   *
   * @return The display name of this chat transport resource.
   */
  public String getResourceName() {
    if (contactResource != null) return contactResource.getResourceName();

    return null;
  }