public class UserStatusChangedEvent extends Object implements Event
| Constructor and Description |
|---|
UserStatusChangedEvent(Long userId,
UserStatus oldStatus,
UserStatus newStatus)
Create a new event describing the status change.
|
| Modifier and Type | Method and Description |
|---|---|
UserStatus |
getNewStatus() |
UserStatus |
getOldStatus() |
Long |
getUserId() |
public UserStatusChangedEvent(Long userId, UserStatus oldStatus, UserStatus newStatus)
userId - The ID of the user whose status changedoldStatus - the previous statusnewStatus - the new statuspublic UserStatus getNewStatus()
public UserStatus getOldStatus()
public Long getUserId()
Copyright © 2019 Communote team. All rights reserved.