Java Code Examples for org.jivesoftware.smack.packet.RosterPacket#ItemStatus

The following examples show how to use org.jivesoftware.smack.packet.RosterPacket#ItemStatus . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RosterEntry.java    From AndroidPNClient with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new roster entry.
 *
 * @param user the user.
 * @param name the nickname for the entry.
 * @param type the subscription type.
 * @param status the subscription status (related to subscriptions pending to be approbed).
 * @param connection a connection to the XMPP server.
 */
RosterEntry(String user, String name, RosterPacket.ItemType type,
            RosterPacket.ItemStatus status, Roster roster, Connection connection) {
    this.user = user;
    this.name = name;
    this.type = type;
    this.status = status;
    this.roster = roster;
    this.connection = connection;
}
 
Example 2
Source File: RosterEntry.java    From saros with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new roster entry.
 *
 * @param user the user.
 * @param name the nickname for the entry.
 * @param type the subscription type.
 * @param status the subscription status (related to subscriptions pending to be approbed).
 * @param connection a connection to the XMPP server.
 */
RosterEntry(
    String user,
    String name,
    RosterPacket.ItemType type,
    RosterPacket.ItemStatus status,
    Roster roster,
    Connection connection) {
  this.user = user;
  this.name = name;
  this.type = type;
  this.status = status;
  this.roster = roster;
  this.connection = connection;
}
 
Example 3
Source File: RosterEntry.java    From AndroidPNClient with Apache License 2.0 2 votes vote down vote up
/**
 * Updates the state of the entry with the new values.
 *
 * @param name the nickname for the entry.
 * @param type the subscription type.
 * @param status the subscription status (related to subscriptions pending to be approbed).
 */
void updateState(String name, RosterPacket.ItemType type, RosterPacket.ItemStatus status) {
    this.name = name;
    this.type = type;
    this.status = status;
}
 
Example 4
Source File: RosterEntry.java    From AndroidPNClient with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the roster subscription status of the entry. When the status is
 * RosterPacket.ItemStatus.SUBSCRIPTION_PENDING, the contact has to answer the
 * subscription request.
 *
 * @return the status.
 */
public RosterPacket.ItemStatus getStatus() {
    return status;
}
 
Example 5
Source File: RosterEntry.java    From saros with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Updates the state of the entry with the new values.
 *
 * @param name the nickname for the entry.
 * @param type the subscription type.
 * @param status the subscription status (related to subscriptions pending to be approbed).
 */
void updateState(String name, RosterPacket.ItemType type, RosterPacket.ItemStatus status) {
  this.name = name;
  this.type = type;
  this.status = status;
}
 
Example 6
Source File: RosterEntry.java    From saros with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the roster subscription status of the entry. When the status is
 * RosterPacket.ItemStatus.SUBSCRIPTION_PENDING, the contact has to answer the subscription
 * request.
 *
 * @return the status.
 */
public RosterPacket.ItemStatus getStatus() {
  return status;
}