SaveField.ts 597 B

1234567891011121314151617181920212223242526272829
  1. export class SaveField{
  2. public key:string;
  3. // public get Key():string{
  4. // return this.key;
  5. // }
  6. public val:string;
  7. // public get Val():string{
  8. // return this.val;
  9. // }
  10. public timeStamp:number;
  11. // public get TimeStamp():number{
  12. // return this.timeStamp;
  13. // }
  14. // public get DateTime():Date{
  15. // return new Date(this.timeStamp);
  16. // }
  17. constructor(key:string,defaultVal:string){
  18. this.key = key;
  19. this.val = defaultVal;
  20. this.timeStamp = Date.now();
  21. }
  22. // Save(){
  23. // }
  24. }