23 lines
520 B
Swift
23 lines
520 B
Swift
//
|
|
// ChatRoomViewModel.swift
|
|
// SodaLive
|
|
//
|
|
// Created by klaus on 9/2/25.
|
|
//
|
|
|
|
import Foundation
|
|
import Combine
|
|
import Moya
|
|
|
|
final class ChatRoomViewModel: ObservableObject {
|
|
// MARK: - Published State
|
|
@Published var isLoading: Bool = false
|
|
@Published var errorMessage: String = ""
|
|
@Published var isShowPopup = false
|
|
|
|
// MARK: - Private
|
|
private let userRepository = UserRepository()
|
|
private let repository = ChatRoomRepository()
|
|
private var subscription = Set<AnyCancellable>()
|
|
}
|