From fd9e596552db632a74acf288c63f468e0353f557 Mon Sep 17 00:00:00 2001 From: AnthorNet Date: Thu, 16 Apr 2015 09:50:57 +0200 Subject: [PATCH 1/2] Added examples JSON for both schemas --- examples/commodity-v0.1.json | 18 +++++++++++++++++ examples/commodity-v2.0-draft.json | 32 ++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 examples/commodity-v0.1.json create mode 100644 examples/commodity-v2.0-draft.json diff --git a/examples/commodity-v0.1.json b/examples/commodity-v0.1.json new file mode 100644 index 0000000..dfea54f --- /dev/null +++ b/examples/commodity-v0.1.json @@ -0,0 +1,18 @@ +{ + "$schemaRef": "http://schemas.elite-markets.net/eddn/commodity/1", + "header": { + "uploaderID": "abcdef0123456789", + "softwareName": "My Awesome Market Uploader", + "softwareVersion": "v3.14" + }, + "message": { + "systemName": "Eranin", + "stationName": "Azeban Orbital", + "itemName": "Gold", + "buyPrice": 1024, + "stationStock": 7, + "sellPrice": 1138, + "demand": 42, + "timestamp": "2014-11-17T12:34:56+00:00" + } +} \ No newline at end of file diff --git a/examples/commodity-v2.0-draft.json b/examples/commodity-v2.0-draft.json new file mode 100644 index 0000000..5ec2081 --- /dev/null +++ b/examples/commodity-v2.0-draft.json @@ -0,0 +1,32 @@ +{ + "$schemaRef": "http://schemas.elite-markets.net/eddn/commodity/2", + "header": { + "uploaderID": "abcdef0123456789", + "softwareName": "My Awesome Market Uploader", + "softwareVersion": "v3.14" + }, + "message": { + "systemName": "Eranin", + "stationName": "Azeban Orbital", + "timestamp": "2014-11-17T12:34:56+00:00" + "commodities" : [ + { + "name": "Gold", + "buyPrice": 1024, + "supply": 7, + "supplyLevel": "Low", + "sellPrice": 1138, + "demand": 42, + "demandLevel": "Med" + }, + { + "name": "Explosives", + "buyPrice": 999, + "supply": 1500, + "supplyLevel": "Low", + "sellPrice": 0, + "demand": 0 + } + ] + } +} \ No newline at end of file From 5b2b2138a4ecc373dcd5699a97a1c85107151333 Mon Sep 17 00:00:00 2001 From: AnthorNet Date: Thu, 16 Apr 2015 10:01:43 +0200 Subject: [PATCH 2/2] Moved Client.py to examples --- {src/eddn => examples/Python}/Client.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {src/eddn => examples/Python}/Client.py (100%) diff --git a/src/eddn/Client.py b/examples/Python/Client.py similarity index 100% rename from src/eddn/Client.py rename to examples/Python/Client.py