UNPKG

@appshuttle.io/turing

Version:
78 lines (53 loc) 1.3 kB
const Frame = require('./Attributes/Frame/Frame') const View = require('./Attributes/View') const Subview = require('./Attributes/Subview') const Title = require('./Attributes/Title/Title') const Actions = require('./Attributes/Actions/Actions') class SHLabel { constructor(parameters) { this.id = parameters.id this.type = parameters.type this.index = parameters.index this.frame = new Frame(parameters.frame) this.view = new View(parameters.view) this.title = new Title(parameters.title) this.actions = new Actions(parameters.actions) } getId() { return this.id } getType() { return this.type } getIndex() { return this.index } setIndex(index) { this.index = index } getFrame() { return this.frame } setFrame(frame) { this.frame = frame } getView() { return this.view } setView(view) { this.view = view } getTitle() { return this.title } setTitle(title) { this.title = title } getActions() { return this.actions } setActions(actions) { this.actions = actions } } module.exports = SHLabel