Merge branch 'master' of C:\Users\катя\IdeaProjects\ng-tracker with conflicts.
This commit is contained in:
parent
9013baa209
commit
0341a823d2
19
src/main/java/ru/ulstu/timeline/model/EventStatusDto.java
Normal file
19
src/main/java/ru/ulstu/timeline/model/EventStatusDto.java
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
package ru.ulstu.timeline.model;
|
||||||
|
|
||||||
|
public class EventStatusDto {
|
||||||
|
private final String id;
|
||||||
|
private final String name;
|
||||||
|
|
||||||
|
public EventStatusDto(Event.EventStatus status) {
|
||||||
|
this.id = status.name();
|
||||||
|
this.name = status.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user