mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 11:24:18 +00:00
52 lines
869 B
JavaScript
52 lines
869 B
JavaScript
|
cqi.status = {};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* A base class from which all other status inherit.
|
||
|
*/
|
||
|
cqi.status.CQiStatus = class CQiStatus {
|
||
|
constructor() {
|
||
|
this.code = undefined;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
cqi.status.StatusOk = class StatusOk extends cqi.status.CQiStatus {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.code = 257;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
cqi.status.StatusConnectOk = class StatusConnectOk extends cqi.status.CQiStatus {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.code = 258;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
cqi.status.StatusByeOk = class StatusByeOk extends cqi.status.CQiStatus {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.code = 259;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
cqi.status.StatusPingOk = class StatusPingOk extends cqi.status.CQiStatus {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.code = 260;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
cqi.status.lookup = {
|
||
|
257: cqi.status.StatusOk,
|
||
|
258: cqi.status.StatusConnectOk,
|
||
|
259: cqi.status.StatusByeOk,
|
||
|
260: cqi.status.StatusPingOk
|
||
|
};
|