Пример #1
0
 public String getResource() {
   Element el = getChildByName(NS_JABBER_CLIENT, RESOURCE);
   if (el != null) {
     return el.getText();
   } else {
     return Config.getInstance().getProperty(Config.YUP_RESOURCE, "Lampiro");
   }
 }
Пример #2
0
 public String getShow() {
   Element el = getChildByName(NS_JABBER_CLIENT, SHOW);
   if (el != null) {
     return el.getText();
   } else {
     return null;
   }
 }
Пример #3
0
 public int getPriority() {
   Element el = this.getChildByName(NS_JABBER_CLIENT, PRIORITY);
   if (el != null) {
     return Integer.parseInt(el.getText());
   } else {
     return 0;
   }
 }
Пример #4
0
 public String getStatus() {
   Element el = this.getChildByName(NS_JABBER_CLIENT, STATUS);
   if (el != null) {
     return el.getText();
   } else {
     return null;
   }
 }