Identity.java

 1package im.conversations.android.xmpp.model.disco.info;
 2
 3import im.conversations.android.annotation.XmlElement;
 4import im.conversations.android.xmpp.model.Extension;
 5
 6@XmlElement
 7public class Identity extends Extension {
 8    public Identity() {
 9        super(Identity.class);
10    }
11
12    public String getCategory() {
13        return this.getAttribute("category");
14    }
15
16    public String getType() {
17        return this.getAttribute("type");
18    }
19
20    public String getLang() {
21        return this.getAttribute("xml:lang");
22    }
23
24    public String getIdentityName() {
25        return this.getAttribute("name");
26    }
27
28    public void setIdentityName(final String name) {
29        this.setAttribute("name", name);
30    }
31
32    public void setType(final String type) {
33        this.setAttribute("type", type);
34    }
35
36    public void setCategory(final String category) {
37        this.setAttribute("category", category);
38    }
39}