50 lines
948 B
Java
Raw Normal View History

2018-10-21 18:19:00 +05:30
package com.baeldung.akkahttp;
2018-10-21 18:40:44 +05:30
import java.io.Serializable;
2018-12-16 20:42:33 +01:00
public interface UserMessages {
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
class ActionPerformed implements Serializable {
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
private static final long serialVersionUID = 1L;
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
private final String description;
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
public ActionPerformed(String description) {
this.description = description;
2018-10-21 18:19:00 +05:30
}
2018-12-16 20:42:33 +01:00
public String getDescription() {
return description;
2018-10-21 18:19:00 +05:30
}
2018-12-16 20:42:33 +01:00
}
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
class CreateUserMessage implements Serializable {
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
private static final long serialVersionUID = 1L;
private final User user;
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
public CreateUserMessage(User user) {
this.user = user;
2018-10-21 18:19:00 +05:30
}
2018-12-16 20:42:33 +01:00
public User getUser() {
return user;
}
}
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
class GetUserMessage implements Serializable {
private static final long serialVersionUID = 1L;
private final Long userId;
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
public GetUserMessage(Long userId) {
this.userId = userId;
}
2018-10-21 18:19:00 +05:30
2018-12-16 20:42:33 +01:00
public Long getUserId() {
return userId;
2018-10-21 18:19:00 +05:30
}
2018-12-16 20:42:33 +01:00
}
2018-10-21 18:19:00 +05:30
}