This repository has been archived by the owner on May 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
665e13e
commit 7792aa3
Showing
6 changed files
with
90 additions
and
41 deletions.
There are no files selected for viewing
39 changes: 0 additions & 39 deletions
39
...st/kotlin/com/studentcenter/weave/bootstrap/meeting/controller/MeetingEventHandlerTest.kt
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
domain/src/main/kotlin/com/studentcenter/weave/domain/chat/entity/ChatMember.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.studentcenter.weave.domain.chat.entity | ||
|
||
import com.studentcenter.weave.domain.common.DomainEntity | ||
import com.studentcenter.weave.support.common.uuid.UuidCreator | ||
import java.util.* | ||
|
||
data class ChatMember( | ||
override val id: UUID = UuidCreator.create(), | ||
val userId: UUID, | ||
val lastReadMessageId: UUID? = null, | ||
) : DomainEntity { | ||
|
||
companion object { | ||
|
||
fun create(userId: UUID): ChatMember { | ||
return ChatMember(userId = userId) | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...estFixtures/kotlin/com/studentcenter/weave/domain/chat/entity/ChatMemberFixtureFactory.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.studentcenter.weave.domain.chat.entity | ||
|
||
import com.studentcenter.weave.support.common.uuid.UuidCreator | ||
import java.util.* | ||
|
||
object ChatMemberFixtureFactory { | ||
|
||
fun create( | ||
id: UUID = UuidCreator.create(), | ||
userId: UUID = UuidCreator.create(), | ||
lastReadMessageId: UUID? = null, | ||
): ChatMember { | ||
return ChatMember( | ||
id = id, | ||
userId = userId, | ||
lastReadMessageId = lastReadMessageId, | ||
) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters