Skip to content
Snippets Groups Projects
Commit f39aafea authored by Larbi Gharib's avatar Larbi Gharib
Browse files

Fixed conversationId encode to string

Change-Id: I723a0e355dea26ef0d8fbfe3d46c29bbf3bd5313
parent 7e43308d
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ public class ContactCodec implements Encoder, Decoder { ...@@ -17,7 +17,7 @@ public class ContactCodec implements Encoder, Decoder {
* "banned" : false, * "banned" : false,
* "uri" : "520290d7f45e5811fe5af637d328e7fbf5e8cab9", * "uri" : "520290d7f45e5811fe5af637d328e7fbf5e8cab9",
* "removed" : 0, * "removed" : 0,
* "conversationId": 6a61013979964f70c8fb9183a8b238d58a1846ed * "conversationId": "6a61013979964f70c8fb9183a8b238d58a1846ed"
* } * }
*/ */
@Override @Override
...@@ -51,7 +51,7 @@ public class ContactCodec implements Encoder, Decoder { ...@@ -51,7 +51,7 @@ public class ContactCodec implements Encoder, Decoder {
Contact ct = (Contact) o; Contact ct = (Contact) o;
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("{\"uri\":\"").append(ct.getUri()).append("\","); sb.append("{\"uri\":\"").append(ct.getUri()).append("\",");
sb.append("\"conversationId\":").append(ct.getConversationId()).append(","); sb.append("\"conversationId\":\"").append(ct.getConversationId()).append("\",");
switch (ct.getStatus()){ switch (ct.getStatus()){
case 'A': case 'A':
sb.append("\"added\":").append(ct.getTimestamp()); sb.append("\"added\":").append(ct.getTimestamp());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment