src/app/tasks/model/task-definition.ts
Properties |
Methods |
|
constructor(name: string, dslText: string, composed: boolean, status: string)
|
Defined in src/app/tasks/model/task-definition.ts:11
|
Static fromJSON | ||||||||
fromJSON(input: )
|
||||||||
Defined in src/app/tasks/model/task-definition.ts:20
|
||||||||
Parameters :
Returns :
TaskDefinition
|
Static pageFromJSON | ||||||||
pageFromJSON(input: )
|
||||||||
Defined in src/app/tasks/model/task-definition.ts:24
|
||||||||
Parameters :
Returns :
Page<TaskDefinition>
|
Public composed |
composed:
|
Type : boolean
|
Defined in src/app/tasks/model/task-definition.ts:9
|
Public dslText |
dslText:
|
Type : string
|
Defined in src/app/tasks/model/task-definition.ts:7
|
Public name |
name:
|
Type : string
|
Defined in src/app/tasks/model/task-definition.ts:5
|
Public status |
status:
|
Type : string
|
Defined in src/app/tasks/model/task-definition.ts:11
|
import { Page } from 'src/app/shared/model';
export class TaskDefinition {
public name: string;
public dslText: string;
public composed: boolean;
public status: string;
constructor(name: string, dslText: string, composed: boolean, status: string) {
this.name = name;
this.dslText = dslText;
this.composed = composed;
this.status = status;
}
static fromJSON(input): TaskDefinition {
return new TaskDefinition(input.name, input.dslText, input.composed, input.status);
}
static pageFromJSON(input): Page<TaskDefinition> {
const page = Page.fromJSON<TaskDefinition>(input);
if (input && input._embedded && input._embedded.taskDefinitionResourceList) {
page.items = input._embedded.taskDefinitionResourceList.map(TaskDefinition.fromJSON);
}
return page;
}
}