1package im.conversations.android.xmpp.model.avatar;
2
3import eu.siacs.conversations.xml.Namespace;
4import im.conversations.android.annotation.XmlElement;
5import im.conversations.android.xmpp.model.Extension;
6
7@XmlElement(namespace = Namespace.AVATAR_METADATA)
8public class Info extends Extension {
9
10 public Info() {
11 super(Info.class);
12 }
13
14 public long getHeight() {
15 return this.getLongAttribute("height");
16 }
17
18 public long getWidth() {
19 return this.getLongAttribute("width");
20 }
21
22 public long getBytes() {
23 return this.getLongAttribute("bytes");
24 }
25
26 public String getType() {
27 return this.getAttribute("type");
28 }
29
30 public String getUrl() {
31 return this.getAttribute("url");
32 }
33
34 public String getId() {
35 return this.getAttribute("id");
36 }
37
38 public void setBytes(final long size) {
39 this.setAttribute("bytes", size);
40 }
41
42 public void setId(final String id) {
43 this.setAttribute("id", id);
44 }
45
46 public void setHeight(final long height) {
47 this.setAttribute("height", height);
48 }
49
50 public void setWidth(final long width) {
51 this.setAttribute("width", width);
52 }
53
54 public void setType(final String type) {
55 this.setAttribute("type", type);
56 }
57}