generated from 2martens/template-service
Added MeetingState to symbolize limited options
This commit is contained in:
parent
379b619d89
commit
02efc1b76a
|
@ -50,7 +50,7 @@ public class Meeting {
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
||||||
@Schema(description = "current status of the meeting", allowableValues = "terminiert, eingeladen, durchgeführt", nullable = true)
|
@Schema(description = "current status of the meeting", allowableValues = "terminiert, eingeladen, durchgeführt", nullable = true)
|
||||||
private final String meetingState;
|
private final MeetingState meetingState;
|
||||||
|
|
||||||
@Schema(description = "True if this meeting was cancelled")
|
@Schema(description = "True if this meeting was cancelled")
|
||||||
private final boolean cancelled;
|
private final boolean cancelled;
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
package de.twomartens.oparlservice.entity;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Getter(onMethod_={@JsonValue})
|
||||||
|
@ToString
|
||||||
|
public enum MeetingState {
|
||||||
|
SCHEDULED("terminiert"),
|
||||||
|
INVITED("eingeladen"),
|
||||||
|
FINISHED("durchgeführt");
|
||||||
|
|
||||||
|
private final String value;
|
||||||
|
}
|
Loading…
Reference in New Issue