node-telegram-api/lib/classes/Base.js
mamal72 3f03ff9667 refactored Keyboard and Message class
add Base class
add set and get properties utils
2015-06-28 23:02:18 +04:30

16 lines
312 B
JavaScript

import {EventEmitter} from 'events';
import * as utils from '../utils';
export default class Base extends EventEmitter {
constructor() {
super();
}
setProperties(object) {
return utils.setProperties(this, object);
}
getProperties(object) {
return utils.getProperties(this, object);
}
}