feat(chat-room): 채팅방에 필요한 기본적인 파일 추가

This commit is contained in:
Yu Sung
2025-09-03 17:37:23 +09:00
parent 6b445fff7c
commit a42edbe99c
9 changed files with 119 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
//
// ChatRoomHeaderView.swift
// SodaLive
//
// Created by klaus on 9/3/25.
//
import SwiftUI
struct ChatRoomHeaderView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
}
}
#Preview {
ChatRoomHeaderView()
}

View File

@@ -16,6 +16,7 @@ final class ChatRoomViewModel: ObservableObject {
@Published var isShowPopup = false
// MARK: - Private
private let userRepository = UserRepository()
private let repository = ChatRoomRepository()
private var subscription = Set<AnyCancellable>()
}

View File

@@ -0,0 +1,18 @@
//
// DisclaimerView.swift
// SodaLive
//
// Created by klaus on 9/3/25.
//
import SwiftUI
struct DisclaimerView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
}
}
#Preview {
DisclaimerView()
}

View File

@@ -0,0 +1,18 @@
//
// MessageInputView.swift
// SodaLive
//
// Created by klaus on 9/3/25.
//
import SwiftUI
struct MessageInputView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
}
}
#Preview {
MessageInputView()
}

View File

@@ -5,4 +5,6 @@
// Created by klaus on 9/2/25.
//
import Foundation
struct ChatQuotaPurchaseRequest: Encodable {
let container: String = "ios"
}

View File

@@ -5,4 +5,7 @@
// Created by klaus on 9/2/25.
//
import Foundation
struct ChatQuotaStatusResponse: Decodable {
let totalRemaining: Int
let nextRechargeAtEpoch: Int64
}

View File

@@ -0,0 +1,18 @@
//
// ChatBgSelectionView.swift
// SodaLive
//
// Created by klaus on 9/3/25.
//
import SwiftUI
struct ChatBgSelectionView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
}
}
#Preview {
ChatBgSelectionView()
}

View File

@@ -0,0 +1,18 @@
//
// ChatSettingsView.swift
// SodaLive
//
// Created by klaus on 9/3/25.
//
import SwiftUI
struct ChatSettingsView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
}
}
#Preview {
ChatSettingsView()
}

View File

@@ -0,0 +1,21 @@
//
// ChatSettingsViewModel.swift
// SodaLive
//
// Created by klaus on 9/3/25.
//
import Foundation
import Combine
import Moya
final class ChatSettingsViewModel: ObservableObject {
// MARK: - Published State
@Published var isLoading: Bool = false
@Published var errorMessage: String = ""
@Published var isShowPopup = false
// MARK: - Private
private let repository = ChatRoomRepository()
private var subscription = Set<AnyCancellable>()
}