java-tutorials/web-modules/play-modules/websockets/app/dto/MessageDTO.java

61 lines
1.1 KiB
Java
Raw Normal View History

2024-04-30 12:20:08 -04:00
package dto;
public class MessageDTO {
private String userId;
private String id;
private String title;
private String body;
public MessageDTO() {
}
public MessageDTO(String userId, String id, String title, String body) {
this.userId = userId;
this.id = id;
this.title = title;
this.body = body;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
@Override
public String toString() {
return "MessageDTO{" +
"userId='" + userId + '\'' +
", id='" + id + '\'' +
", title='" + title + '\'' +
", body='" + body + '\'' +
'}';
}
}