You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2021/02/09 04:29:50 UTC
[james-project] 22/33: JAMES-3491 StateChangeEvent Serialization
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 1b59476c1f90ac6ebe67cd16cf020d505feae996
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Fri Feb 5 10:55:31 2021 +0700
JAMES-3491 StateChangeEvent Serialization
---
.../src/main/scala/org/apache/james/jmap/change/StateChange.scala | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/change/StateChange.scala b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/change/StateChange.scala
index 312aa72..101b592 100644
--- a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/change/StateChange.scala
+++ b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/change/StateChange.scala
@@ -51,7 +51,6 @@ case class StateChangeEvent(eventId: EventId,
username: Username,
mailboxState: Option[State],
emailState: Option[State]) extends Event {
-
def asStateChange: StateChange =
StateChange(Map(AccountId.from(username).fold(
failure => throw new IllegalArgumentException(failure),
@@ -60,9 +59,9 @@ case class StateChangeEvent(eventId: EventId,
MailboxTypeName.asMap(mailboxState) ++
EmailTypeName.asMap(emailState))))
- override def getUsername: Username = username
+ override val getUsername: Username = username
- override def isNoop: Boolean = mailboxState.isEmpty && emailState.isEmpty
+ override val isNoop: Boolean = mailboxState.isEmpty && emailState.isEmpty
- override def getEventId: EventId = eventId
+ override val getEventId: EventId = eventId
}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org