aboutsummaryrefslogtreecommitdiff
path: root/tests/replies
diff options
context:
space:
mode:
Diffstat (limited to 'tests/replies')
-rw-r--r--tests/replies/agency.json24
-rw-r--r--tests/replies/device.json19
-rw-r--r--tests/replies/devices.json0
-rw-r--r--tests/replies/error.json4
4 files changed, 47 insertions, 0 deletions
diff --git a/tests/replies/agency.json b/tests/replies/agency.json
new file mode 100644
index 0000000..6c1b365
--- /dev/null
+++ b/tests/replies/agency.json
@@ -0,0 +1,24 @@
+{
+ "result": "success",
+ "message": {
+ "agency": {
+ "id": "12345",
+ "name": "Test Agency",
+ "address": "123 Main St.",
+ "city": "City",
+ "state": "AZ",
+ "latitude": 40,
+ "longitude": 70,
+ "devices": [
+ {
+ "id": 1,
+ "uri": "https://access.active911.com/interface/open_api/api/devices/1"
+ },
+ {
+ "id": 2,
+ "uri": "https://access.active911.com/interface/open_api/api/devices/2"
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/replies/device.json b/tests/replies/device.json
new file mode 100644
index 0000000..b3dc1ee
--- /dev/null
+++ b/tests/replies/device.json
@@ -0,0 +1,19 @@
+{
+ "result": "success",
+ "message": {
+ "device": {
+ "id": 1,
+ "name": "Test Device",
+ "latitude": 41,
+ "longitude": 71,
+ "position_accuracy": "100",
+ "position_timestamp": "2014-01-01 00:00:00",
+ "agencies": [
+ {
+ "id": "12345",
+ "uri": "https://access.active911.com/interface/open_api/api/"
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/replies/devices.json b/tests/replies/devices.json
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/replies/devices.json
diff --git a/tests/replies/error.json b/tests/replies/error.json
new file mode 100644
index 0000000..c9ccbef
--- /dev/null
+++ b/tests/replies/error.json
@@ -0,0 +1,4 @@
+{
+ "result": "error",
+ "message": "Test Error Message"
+}