This commit is contained in:
Sabiq Ihab 2017-06-21 00:53:20 +00:00
parent f3902ffc16
commit 15a25f0ef3
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,37 @@
package com.iluwatar.cqrs.dto;
public class AuthorDTO {
private String name;
private String email;
private String username;
public AuthorDTO(String name, String email, String username) {
super();
this.name = name;
this.email = email;
this.username = username;
}
public AuthorDTO() {
super();
}
public String getName() {
return name;
}
public String getEmail() {
return email;
}
public String getUsername() {
return username;
}
@Override
public String toString() {
return "AuthorDTO [name=" + name + ", email=" + email + ", username=" + username + "]";
}
}

View File

@ -0,0 +1,26 @@
package com.iluwatar.cqrs.dto;
public class BookDTO {
private String title;
private double price;
public BookDTO(String title, double price) {
super();
this.title = title;
this.price = price;
}
public BookDTO() {
super();
}
public String getTitle() {
return title;
}
public double getPrice() {
return price;
}
}