node-groupme
Version:
The only GroupMe API library that isn't a million years old.
25 lines • 735 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const __1 = require("..");
class PollOption extends __1.Base {
constructor(poll, data) {
super(poll.client, data.id);
this.poll = poll;
this.title = data.title;
this.votes = data.votes ? data.votes : 0;
this.voters = data.voter_ids;
}
_patch(data) {
if (data.title !== undefined)
this.title = data.title;
if (data.votes !== undefined)
this.votes = data.votes;
this.voters = data.voter_ids;
return this;
}
vote() {
throw new Error('Method not implemented.');
}
}
exports.default = PollOption;
//# sourceMappingURL=PollOption.js.map