File

src/app/models/lrs/xapiresult.ts

Constructor

constructor(verb: XapiVerbs, duration: string)

Properties

duration
duration: string
success
success: boolean
import { LrsUtils } from "./lrsUtils";
import { LrsVerbs, XapiVerbs } from "./xapiverbs";

export class XApiResult {
	success: boolean;
	duration: string;

	constructor(verb: XapiVerbs, duration: string) {
		if (
			verb === LrsVerbs.passed ||
			verb === LrsVerbs.passedOnRetry ||
			verb === LrsVerbs.passedWithHelp ||
			verb === LrsVerbs.completed
		) {
			this.success = true;
		} else {
			this.success = false;
		}
		this.duration = duration;
	}
}

results matching ""

    No results matching ""