Skip to content

Commit

Permalink
feat: Draft the Column class.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-coster committed Jul 2, 2021
1 parent 4ba0de9 commit b2318a7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/lib/entities/BravoColumn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { BravoEntity } from '$lib/BravoEntity.js';
import { DataFavroColumn } from '$/types/FavroColumnTypes.js';

export class BravoColumn extends BravoEntity<DataFavroColumn> {
get columnId() {
return this._data.columnId;
}
get widgetCommonId() {
return this._data.widgetCommonId;
}
get name() {
return this._data.name;
}
get organizationId() {
return this._data.organizationId;
}
get position() {
return this._data.position;
}
get cardCount() {
return this._data.cardCount;
}
get timeSum() {
return this._data.timeSum;
}
get estimationSum() {
return this._data.estimationSum;
}
equals(column: BravoColumn) {
return this.hasSameConstructor(column) && this.columnId === column.columnId;
}
}

0 comments on commit b2318a7

Please sign in to comment.