From f89a99426f4ea95d5d1aebb967a3c921a78f7f40 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 25 Mar 2016 21:38:25 +0100 Subject: [PATCH] Response skeleton --- Message/Response/Resposne.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Message/Response/Resposne.js diff --git a/Message/Response/Resposne.js b/Message/Response/Resposne.js new file mode 100644 index 0000000..8e89c0d --- /dev/null +++ b/Message/Response/Resposne.js @@ -0,0 +1,15 @@ +(function (uriFactory, undefined) { + jsOMS.Message.Response.Response = function (data) { + this.responses = data; + }; + + jsOMS.Message.Response.Response.prototype.get = function(id) + { + return this.responses[id]; + }; + + jsOMS.Message.Response.Response.prototype.getByIndex = function(index) + { + return this.responses[Object.keys(this.responses).sort()[index]]; + }; +}(window.jsOMS = window.jsOMS || {})); \ No newline at end of file