Class UserDTO
- java.lang.Object
-
- tech.cassandre.trading.bot.dto.user.UserDTO
-
public final class UserDTO extends Object
DTO representing user information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserDTO.UserDTOBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserDTO.UserDTOBuilder
builder()
boolean
equals(Object o)
Optional<AccountDTO>
getAccountById(String accountId)
Find an account with its id.Map<String,AccountDTO>
getAccounts()
The accounts owned by the user.String
getId()
User ID (usually username).ZonedDateTime
getTimestamp()
Getter timestamp.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getAccountById
public Optional<AccountDTO> getAccountById(String accountId)
Find an account with its id.- Parameters:
accountId
- account id- Returns:
- account
-
getTimestamp
public ZonedDateTime getTimestamp()
Getter timestamp.- Returns:
- timestamp
-
builder
public static UserDTO.UserDTOBuilder builder()
-
getId
public String getId()
User ID (usually username).
-
getAccounts
public Map<String,AccountDTO> getAccounts()
The accounts owned by the user.
-
-