2017-04-30 14:55:15 +00:00
|
|
|
import { Input } from '@angular/core';
|
2017-04-03 20:33:18 +00:00
|
|
|
import 'rxjs/add/operator/map';
|
|
|
|
|
|
|
|
|
|
|
|
export class Product {
|
|
|
|
|
2017-04-30 14:55:15 +00:00
|
|
|
@Input() private _sName: string;
|
2017-04-19 12:50:28 +00:00
|
|
|
@Input() private _nId: number;
|
2017-04-03 20:33:18 +00:00
|
|
|
constructor() {
|
|
|
|
|
|
|
|
}
|
2017-04-19 12:50:28 +00:00
|
|
|
public get nId(): number {
|
|
|
|
return this._nId
|
|
|
|
}
|
|
|
|
public set nId(id: number) {
|
|
|
|
this._nId = id;
|
|
|
|
}
|
2017-04-30 14:55:15 +00:00
|
|
|
public get sName(): string {
|
|
|
|
return this._sName
|
2017-04-03 20:33:18 +00:00
|
|
|
}
|
2017-04-30 14:55:15 +00:00
|
|
|
public set sName(name: string) {
|
|
|
|
this._sName = name;
|
2017-04-03 20:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|