Files
NativeScript/e2e/ui-tests-app/app/test-example-model.ts
2019-09-19 15:40:31 +03:00

33 lines
638 B
TypeScript

import { Observable } from "tns-core-modules/data/observable";
export class TestExample extends Observable {
private _name: string;
private _path: string;
constructor(name: string, path: string) {
super();
this._name = name;
this._path = path;
}
get name(): string {
return this._name;
}
set name(value: string) {
if (this._name !== value) {
this._name = value;
}
}
get path(): string {
return this._path;
}
set path(value: string) {
if (this._path !== value) {
this._path = value;
}
}
}