wowtoken.app

git clone https://git.emily.sh/wowtoken-app/wowtoken.app.git
Log | Files | Refs | README | LICENSE

datum.js (328B)


      1 export default class Datum {
      2     constructor(time, price) {
      3         this._time = time;
      4         this._price = price;
      5     }
      6 
      7     getTime() {
      8         return this._time;
      9     }
     10 
     11     getPrice() {
     12         return this._price;
     13     }
     14 
     15     getX() {
     16         return this.getTime();
     17     }
     18 
     19     getY() {
     20         return this.getPrice();
     21     }
     22 }