Created
May 28, 2020 22:50
-
-
Save hkakutalua/2208cf6c50e94c289bb5a2ae9b545940 to your computer and use it in GitHub Desktop.
PersonReadDto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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