Skip to content

Instantly share code, notes, and snippets.

@hkakutalua
Created May 28, 2020 22:50
Show Gist options
  • Save hkakutalua/2208cf6c50e94c289bb5a2ae9b545940 to your computer and use it in GitHub Desktop.
Save hkakutalua/2208cf6c50e94c289bb5a2ae9b545940 to your computer and use it in GitHub Desktop.
PersonReadDto
package com.example.partialupdates.controllers.dtos;
import java.time.OffsetDateTime;
public class PersonReadDto {
private final long id;
private final String firstName;
private final String lastName;
private final OffsetDateTime birthday;
private final String bio;
private final String imageUrl;
public PersonReadDto(long id, String firstName, String lastName, OffsetDateTime birthday, String bio, String imageUrl) {
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
this.birthday = birthday;
this.bio = bio;
this.imageUrl = imageUrl;
}
public long getId() {
return id;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public OffsetDateTime getBirthday() {
return birthday;
}
public String getBio() {
return bio;
}
public String getImageUrl() {
return imageUrl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment