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