Skip to content

Commit

Permalink
feat/#95 :: UserInfoEntity ์ƒ์„ฑ
Browse files Browse the repository at this point in the history
- ์œ ์ €์˜ ์ •๋ณด๋ฅผ ๋‹ด๋Š” ์—”ํ‹ฐํ‹ฐ๋ฅผ ์ƒ์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค

Co-Authored-By: Youngkyu Song <[email protected]>
  • Loading branch information
Kiyoung-Kim-57 and youn9k committed Nov 25, 2024
1 parent 7e93cf6 commit c7da50e
Showing 1 changed file with 30 additions and 0 deletions.
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
}
}

0 comments on commit c7da50e

Please sign in to comment.