Service.js 484 B

12345678910111213141516171819202122232425
  1. /**
  2. * Service.js
  3. *
  4. * @author realor
  5. */
  6. class Service {
  7. constructor(name, description = null, url = null, username = null, password = null) {
  8. this.name = name
  9. this.description = description
  10. this.url = url
  11. this.username = username
  12. this.password = password
  13. }
  14. getParameters() {
  15. return this
  16. }
  17. setParameters(parameters) {
  18. Object.assign(this, parameters)
  19. }
  20. }
  21. export { Service }