summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/diff_notes/models/note.js
blob: 04465aa507e431a267bf66e96ef207f4f7675aea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* eslint-disable camelcase, no-unused-vars */

class NoteModel {
  constructor(discussionId, noteObj) {
    this.discussionId = discussionId;
    this.id = noteObj.noteId;
    this.canResolve = noteObj.canResolve;
    this.resolved = noteObj.resolved;
    this.resolved_by = noteObj.resolvedBy;
    this.authorName = noteObj.authorName;
    this.authorAvatar = noteObj.authorAvatar;
    this.noteTruncated = noteObj.noteTruncated;
  }
}

window.NoteModel = NoteModel;