2016-12-13 22:01:05 -05:00
|
|
|
/* eslint-disable no-unused-vars, space-before-function-paren */
|
|
|
|
|
2016-08-10 13:29:55 -04:00
|
|
|
class ListLabel {
|
2016-08-01 09:18:30 -04:00
|
|
|
constructor (obj) {
|
2016-08-04 11:16:50 -04:00
|
|
|
this.id = obj.id;
|
2016-08-01 09:18:30 -04:00
|
|
|
this.title = obj.title;
|
2016-08-04 11:16:50 -04:00
|
|
|
this.color = obj.color;
|
2016-08-19 09:45:19 -04:00
|
|
|
this.textColor = obj.text_color;
|
2016-08-08 09:30:38 -04:00
|
|
|
this.description = obj.description;
|
2016-08-09 17:05:17 -04:00
|
|
|
this.priority = (obj.priority !== null) ? obj.priority : Infinity;
|
2016-08-01 09:18:30 -04:00
|
|
|
}
|
|
|
|
}
|
2016-12-14 01:51:53 -05:00
|
|
|
|
|
|
|
window.ListLabel = ListLabel;
|