All files / src/models/Data PrjTaskManagementData.ts

0% Statements 0/27
100% Branches 0/0
0% Functions 0/12
0% Lines 0/25

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124                                                                                                                                                                                                                                                       
import { fieldConfig } from 'src/classes/decorators/FieldConfigDecorator';
import { ImplementsStatic } from 'src/classes/decorators/ImplementsStatic';
import { toStringField } from 'src/classes/decorators/ToStringFieldDecorator';
import { Inject } from 'src/libs/DependencyInjection/decorators/Inject';
import type {
    IStatusType,
    IStatusType_,
} from 'src/libs/StatusType/interfaces/IStatusType';
import { Priority, Energy, HistoryEntries } from 'src/types/PrjTypes';
import { IPrjData_ } from './interfaces/IPrjData';
import { IPrjTaskManagementData } from './interfaces/IPrjTaskManagementData';
import { PrjData } from './PrjData';
 
/**
 * Implementation of the PrjTaskManagementModel class.
 */
@ImplementsStatic<IPrjData_<unknown>>()
export class PrjTaskManagementData
    extends PrjData<PrjTaskManagementData>
    implements IPrjTaskManagementData
{
    @Inject('IStatusType_')
    protected _IStatusType!: IStatusType_;
 
    protected _status: IStatusType | null | undefined;
    protected _priority: Priority | null | undefined;
    protected _energy: Energy | null | undefined;
    protected _due: string | null | undefined;
    protected _history: HistoryEntries | null | undefined;
    protected _aliases: string[] | null | undefined;
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get status(): IStatusType | null | undefined {
        return this._status;
    }
 
    /**
     * @inheritdoc
     */
    set status(value: unknown) {
        this._status = new this._IStatusType(value);
    }
 
    /**
     * @inheritdoc
     */
    @fieldConfig()
    get priority(): Priority | null | undefined {
        return this._priority;
    }
 
    /**
     * @inheritdoc
     */
    set priority(value: Priority | null | undefined) {
        this._priority = value;
    }
 
    /**
     * @inheritdoc
     */
    @fieldConfig()
    get energy(): Energy | null | undefined {
        return this._energy;
    }
 
    /**
     * @inheritdoc
     */
    set energy(value: Energy | null | undefined) {
        this._energy = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get due(): string | null | undefined {
        return this._due;
    }
 
    /**
     * @inheritdoc
     */
    set due(value: string | null | undefined) {
        this._due = value;
    }
 
    /**
     * @inheritdoc
     */
    @fieldConfig()
    get history(): HistoryEntries | null | undefined {
        return this._history;
    }
 
    /**
     * @inheritdoc
     */
    set history(value: HistoryEntries | null | undefined) {
        this._history = value;
    }
 
    /**
     * @inheritdoc
     */
    @fieldConfig()
    get aliases(): string[] | null | undefined {
        return this._aliases;
    }
 
    /**
     * @inheritdoc
     */
    set aliases(value: string[] | null | undefined) {
        this._aliases = value;
    }
}
 
Zur TypeDoc-Dokumentation