Esempio n. 1
0
 public MUCRole.Affiliation getAffiliation() {
   return MUCRole.Affiliation.values()[affiliation];
 }
 /**
  * Calculates and sets the extended presence information to add to the presence. The information
  * to add contains the user's jid, affiliation and role.
  */
 private void calculateExtendedInformation() {
   ElementUtil.setProperty(extendedInformation, "x.item:jid", user.getAddress().toString());
   ElementUtil.setProperty(extendedInformation, "x.item:affiliation", affiliation.toString());
   ElementUtil.setProperty(extendedInformation, "x.item:role", role.toString());
 }