Response skeleton

This commit is contained in:
Dennis Eichhorn 2016-03-25 21:38:25 +01:00
parent 23f9ace93a
commit f89a99426f

View File

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