-
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.
- ์ ์ ์ ์ ๋ณด๋ฅผ ๋ด๋ ์ํฐํฐ๋ฅผ ์์ฑํ์ต๋๋ค Co-Authored-By: Youngkyu Song <[email protected]>
- Loading branch information
1 parent
7e93cf6
commit c7da50e
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...ther/DomainLayer/PhotoGetherDomain/PhotoGetherDomainInterface/Entity/UserInfoEntity.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,30 @@ | ||
import Foundation | ||
|
||
public struct UserInfoEntity: Identifiable { | ||
public var id: String | ||
public var nickname: String | ||
public var isHost: Bool | ||
public var viewPosition: ViewPosition | ||
public var roomID: String? | ||
|
||
public enum ViewPosition: Int { | ||
case topLeading | ||
case topTrailing | ||
case bottomLeading | ||
case bottomTrailing | ||
} | ||
|
||
public init( | ||
id: String, | ||
nickname: String, | ||
isHost: Bool, | ||
viewPosition: ViewPosition, | ||
roomID: String? = nil | ||
) { | ||
self.id = id | ||
self.nickname = nickname | ||
self.isHost = isHost | ||
self.viewPosition = viewPosition | ||
self.roomID = roomID | ||
} | ||
} |