package com.plannaplan.responses.models; import com.plannaplan.entities.Groups; import com.plannaplan.types.GroupType; public class AssignmentResponse { private Long id; private int day; private String time; private String lecturer; private String room; private int capacity; private GroupType type; public AssignmentResponse(Groups group) { this.id = group.getId(); this.day = group.getDay().label; this.time = group.getTimeString(); this.lecturer = group.getLecturer().toString(); this.room = group.getRoom(); this.capacity = group.getCapacity(); this.type = group.getType(); } public GroupType getType() { return type; } public int getCapacity() { return capacity; } public String getRoom() { return room; } public String getLecturer() { return lecturer; } public String getTime() { return time; } public int getDay() { return day; } public Long getId() { return id; } }