22 lines
		
	
	
		
			470 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			470 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 repository = ChatRoomRepository()
 | 
						|
    private var subscription = Set<AnyCancellable>()
 | 
						|
}
 |