This commit is contained in:
2025-10-02 18:01:23 +02:00
parent 210611bbbe
commit e7784f31bb
44 changed files with 1787 additions and 93 deletions

View File

@@ -1,5 +1,8 @@
package de.iwomm.propify_api.dto;
import de.iwomm.propify_api.entity.FederalState;
import de.iwomm.propify_api.entity.PropertyStatus;
import java.util.List;
import java.util.UUID;
@@ -10,21 +13,25 @@ public class PropertyDTO {
private String houseNumber;
private String zipCode;
private String city;
private String country;
private FederalState federalState;
private String notes;
private List<AttachmentDTO> attachments;
private PropertyStatusDTO propertyStatus;
public PropertyDTO(UUID id, String name, String street, String houseNumber, String zipCode, String city, String country, String notes, List<AttachmentDTO> attachments) {
public PropertyDTO(UUID id, String name, String street, String houseNumber,
String zipCode, String city, FederalState federalState, String notes,
List<AttachmentDTO> attachments, PropertyStatusDTO propertyStatus) {
this.id = id;
this.name = name;
this.street = street;
this.houseNumber = houseNumber;
this.zipCode = zipCode;
this.city = city;
this.country = country;
this.federalState = federalState;
this.notes = notes;
this.attachments = attachments;
this.propertyStatus = propertyStatus;
}
public UUID getId() {
@@ -83,14 +90,6 @@ public class PropertyDTO {
this.notes = notes;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public List<AttachmentDTO> getAttachments() {
return attachments;
}
@@ -98,4 +97,20 @@ public class PropertyDTO {
public void setAttachments(List<AttachmentDTO> attachments) {
this.attachments = attachments;
}
public PropertyStatusDTO getPropertyStatus() {
return propertyStatus;
}
public void setPropertyStatus(PropertyStatusDTO propertyStatus) {
this.propertyStatus = propertyStatus;
}
public FederalState getFederalState() {
return federalState;
}
public void setFederalState(FederalState federalState) {
this.federalState = federalState;
}
}