made presences object final in contact
This commit is contained in:
parent
7f45e210af
commit
beb216c300
|
@ -45,7 +45,7 @@ public class Contact implements ListItem, Blockable {
|
||||||
protected String photoUri;
|
protected String photoUri;
|
||||||
protected JSONObject keys = new JSONObject();
|
protected JSONObject keys = new JSONObject();
|
||||||
protected JSONArray groups = new JSONArray();
|
protected JSONArray groups = new JSONArray();
|
||||||
protected Presences presences = new Presences();
|
protected final Presences presences = new Presences();
|
||||||
protected Account account;
|
protected Account account;
|
||||||
protected Avatar avatar;
|
protected Avatar avatar;
|
||||||
|
|
||||||
|
@ -222,10 +222,6 @@ public class Contact implements ListItem, Blockable {
|
||||||
return this.presences;
|
return this.presences;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPresences(Presences pres) {
|
|
||||||
this.presences = pres;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void updatePresence(final String resource, final Presence presence) {
|
public void updatePresence(final String resource, final Presence presence) {
|
||||||
this.presences.updatePresence(resource, presence);
|
this.presences.updatePresence(resource, presence);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue