Make attachment ids available in string form

Since JS can't handle 8 byte longs (!)

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-03-05 12:49:25 -08:00
parent 3b9a76c1f2
commit 934d7e0f02
1 changed files with 8 additions and 0 deletions

View File

@ -23,11 +23,15 @@ public class AttachmentDescriptor {
@JsonProperty
private long id;
@JsonProperty
private String idString;
@JsonProperty
private String location;
public AttachmentDescriptor(long id, String location) {
this.id = id;
this.idString = String.valueOf(id);
this.location = location;
}
@ -40,4 +44,8 @@ public class AttachmentDescriptor {
public String getLocation() {
return location;
}
public String getIdString() {
return idString;
}
}