mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-01 02:48:43 +00:00
Response skeleton
This commit is contained in:
parent
23f9ace93a
commit
f89a99426f
15
Message/Response/Resposne.js
Normal file
15
Message/Response/Resposne.js
Normal 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 || {}));
|
||||
Loading…
Reference in New Issue
Block a user