react-native-star-io10
Version:
react-native-star-io10 is a library for supporting application development for Star Micronics devices.
36 lines (27 loc) • 718 B
text/typescript
export class StarSpoolJobSettings {
_isRetryEnabled: boolean = true;
_timeout: number = 0;
_note: string = "";
get isRetryEnabled(): boolean {
return this._isRetryEnabled;
}
get timeout(): number {
return this._timeout;
}
get note(): string {
return this._note;
}
constructor(isRetryEnabled: boolean, timeout: number, note: string = "") {
this._isRetryEnabled = isRetryEnabled;
if (timeout < 0) {
this._timeout = 0;
}
else if (3600 < timeout) {
this._timeout = 3600;
}
else {
this._timeout = timeout;
}
this._note = note;
}
}