mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
33 lines
638 B
TypeScript
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;
|
|
}
|
|
}
|
|
}
|