metadata.js 295 B

12345678910111213
  1. class Metadata {
  2. constructor(obj) {
  3. this.dl = +obj.dl || 0;
  4. this.dlimit = +obj.dlimit || 1;
  5. this.pwd = String(obj.pwd) === 'true';
  6. this.owner = obj.owner;
  7. this.metadata = obj.metadata;
  8. this.auth = obj.auth;
  9. this.nonce = obj.nonce;
  10. }
  11. }
  12. module.exports = Metadata;