Skip to content
Snippets Groups Projects
Select Git revision
  • 5d89839379bd492de0edbd7f5349af883b374c7d
  • master default
2 results

target-available.model.ts

Blame
  • target-available.model.ts 647 B
    import { TargetType } from "./enumeration/target-type.model";
    
    export interface ITargetAvailable {
      id?: number;
      type?: TargetType;
      code?: string;
      value?: string;
      //createdDate?: dayjs.Dayjs | null;
      createdBy?: string | null;
    }
    
    export class TargetAvailable implements ITargetAvailable {
      constructor(
        public id?: number,
        public type?: TargetType,
        public code?: string,
        public value?: string,
        //public createdDate?: dayjs.Dayjs | null,
        public createdBy?: string | null
      ) {}
    }
    
    export function getTargetAvailableIdentifier(targetAvailable: ITargetAvailable): number | undefined {
      return targetAvailable.id;
    }