Use short type labels in JSON API instead of long Java-like namespaces

This commit is contained in:
Torsten Grote
2018-10-03 13:44:25 -03:00
parent ea749f2128
commit 6f54718756
7 changed files with 19 additions and 23 deletions

View File

@@ -89,7 +89,7 @@ It returns a JSON array of private messages:
"seen": true,
"sent": true,
"timestamp": 1537376633850,
"type": "org.briarproject.briar.api.messaging.PrivateMessageHeader"
"type": "PrivateMessage"
}
```
@@ -172,9 +172,9 @@ it will send a JSON object to connected websocket clients:
"seen": false,
"sent": false,
"timestamp": 1537389146088,
"type": "org.briarproject.briar.api.messaging.PrivateMessageHeader"
"type": "PrivateMessage"
},
"name": "org.briarproject.briar.api.messaging.event.PrivateMessageReceivedEvent",
"name": "PrivateMessageReceivedEvent",
"type": "event"
}
```