1 | var ChangesetComment = function(data) {
|
2 | this.id = data.comment_id;
|
3 | this.timestamp = data.comment_timestamp;
|
4 | this.comment = data.comment;
|
5 | this.userID = data.user_id;
|
6 | this.userName = data.user_name;
|
7 | return this;
|
8 | };
|
9 |
|
10 | ChangesetComment.prototype.getJSON = function() {
|
11 | return {
|
12 | 'id': this.id,
|
13 | 'timestamp': this.timestamp,
|
14 | 'comment': this.comment,
|
15 | 'userID': this.userID,
|
16 | 'userName': this.userName
|
17 | };
|
18 | };
|
19 |
|
20 | module.exports = ChangesetComment; |
\ | No newline at end of file |