jsOMS/Message/Response/Resposne.js

15 lines
445 B
JavaScript

(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 || {}));