Skip to content

Commit

Permalink
Chore: Removed underscored variables and getters from all annotation …
Browse files Browse the repository at this point in the history
…files (#83)
  • Loading branch information
pramodsum authored Apr 21, 2017
1 parent 461070d commit ac838d2
Show file tree
Hide file tree
Showing 25 changed files with 670 additions and 866 deletions.
125 changes: 11 additions & 114 deletions src/lib/annotations/Annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,120 +35,17 @@ class Annotation {
* @return {Annotation} Instance of annotation
*/
constructor(data) {
this._annotationID = data.annotationID;
this._fileVersionID = data.fileVersionID;
this._threadID = data.threadID;
this._thread = data.thread;
this._type = data.type;
this._text = data.text;
this._location = data.location;
this._user = data.user;
this._permissions = data.permissions;
this._created = data.created;
this._modified = data.modified;
}

//--------------------------------------------------------------------------
// Getters
//--------------------------------------------------------------------------

/**
* Gets annotationID.
*
* @return {string} annotationID
*/
get annotationID() {
return this._annotationID;
}

/**
* Gets fileVersionID.
*
* @return {string} fileVersionID
*/
get fileVersionID() {
return this._fileVersionID;
}

/**
* Gets threadID.
*
* @return {string} threadID
*/
get threadID() {
return this._threadID;
}

/**
* Gets thread.
*
* @return {string} thread
*/
get thread() {
return this._thread;
}

/**
* Gets type.
*
* @return {string} type
*/
get type() {
return this._type;
}

/**
* Gets text.
*
* @return {string} text
*/
get text() {
return this._text;
}

/**
* Gets location.
*
* @return {Object} location
*/
get location() {
return this._location;
}

/**
* Gets user.
*
* @return {Object} user
*/
get user() {
return this._user;
}

/**
* Gets permissions.
*
* @return {Object} permissions
*/
get permissions() {
return this._permissions;
}

/**
* Gets created.
*
* @return {number} created
*/
get created() {
return this._created;
}

/**
* Gets modified.
*
* @return {number} modified
*/
get modified() {
return this._modified;
this.annotationID = data.annotationID;
this.fileVersionID = data.fileVersionID;
this.threadID = data.threadID;
this.thread = data.thread;
this.type = data.type;
this.text = data.text;
this.location = data.location;
this.user = data.user;
this.permissions = data.permissions;
this.created = data.created;
this.modified = data.modified;
}
}

Expand Down
Loading

0 comments on commit ac838d2

Please sign in to comment.