-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- JoinRoomRequestMessage는 Request를 서버에 전달할 때 담길 메시지입니다 - JoinRoomResponseMessage는 Response로 내려올 메시지입니다 - JoinRoomEntity는 JoinRoomResponseMessage의 Entity입니다 Co-Authored-By: Youngkyu Song <[email protected]>
- Loading branch information
1 parent
232d506
commit 080cecf
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
.../DataLayer/PhotoGetherData/PhotoGetherData/Interface/Message/JoinRoomRequestMessage.swift
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,5 @@ | ||
import Foundation | ||
|
||
public struct JoinRoomRequestMessage: Encodable { | ||
public let roomID: String | ||
} |
16 changes: 16 additions & 0 deletions
16
...DataLayer/PhotoGetherData/PhotoGetherData/Interface/Message/JoinRoomResponseMessage.swift
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,16 @@ | ||
import Foundation | ||
import PhotoGetherDomainInterface | ||
|
||
public struct JoinRoomResponseMessage: Decodable { | ||
public let userID: String | ||
public let clientsID: [String] | ||
|
||
public init(userID: String, clientsID: [String]) { | ||
self.userID = userID | ||
self.clientsID = clientsID | ||
} | ||
|
||
public func toEntity() -> JoinRoomEntity { | ||
JoinRoomEntity(userID: self.userID, clientsID: self.clientsID) | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ther/DomainLayer/PhotoGetherDomain/PhotoGetherDomainInterface/Entity/JoinRoomEntity.swift
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,11 @@ | ||
import Foundation | ||
|
||
public struct JoinRoomEntity { | ||
public let userID: String | ||
public let clientsID: [String] | ||
|
||
public init(userID: String, clientsID: [String]) { | ||
self.userID = userID | ||
self.clientsID = clientsID | ||
} | ||
} |