//
//  OnlineViewModel.swift
//  NaADae
//
//  Created by UPs Lee on 2022/05/08.
//  Copyright © 2022 Kira. All rights reserved.
//

import Foundation

import RxCocoa
import RxSwift

final class OnlineViewModel: BaseViewModel {
  
  struct Input {
  }
  
  struct Output {
    let list = BehaviorRelay<[OnlineModel]>(value: [])
  }
  
  
  
  // MARK: - Property
  
  let input = Input()
  let output = Output()
  
  private let bag = DisposeBag()
  
  private let data = [
    OnlineModel(password: 123, title: "UPs와 함께", maker: "UPs", count: 2),
    OnlineModel(password: nil, title: "UPs와 함께", maker: "UPs", count: 2),
    OnlineModel(password: nil, title: "UPs와 함께", maker: "UPs", count: 2),
    OnlineModel(password: 123, title: "UPs와 함께", maker: "UPs", count: 2),
    OnlineModel(password: 123, title: "UPs와 함께", maker: "UPs", count: 2),
  ]
  
  // MARK: - Interface
  
  override init() {
    super.init()
    
    self.output.list.accept(data)
  }
}
