//
//  Speaker.swift
//  SMOO
//
//  Created by 허재 on 2021/05/22.
//

import Foundation


struct User: Codable, Equatable {
    
    let userId: String
    
    let groupId: Int
    let channelId: Int
    
    let userName: String
    let userProfileURL: String
    let userPosition: String
    
    let userLocation: UserLocation
    
    let isSpeaking: Bool
    let isEnabled: Bool
    
}

struct UserForColumn: Codable, Equatable, Hashable {
    let userName: String
    let userProfileURL: String
    let userPosition: String
    
    let isSpeaking: Bool
    let isEnabled: Bool
}

struct UserColumn: Codable, Equatable, Hashable {
    let channelName: String
    let users: [UserForColumn]
}

struct UsersList: Codable, Equatable {
    let columns: [UserColumn]
    
    static let mocked: UsersList = UsersList(
        columns: [
            UserColumn(channelName: "Organizing Office",
                                         users: [
                                            UserForColumn(userName: "kim changhyun", userProfileURL: "", userPosition: "Staff", isSpeaking: true, isEnabled: true),
                                            UserForColumn(userName: "baek kimchi", userProfileURL: "", userPosition: "Manager", isSpeaking: false, isEnabled: true),
                                            UserForColumn(userName: "lee jinsung", userProfileURL: "", userPosition: "Staff", isSpeaking: false, isEnabled: true),
                                            UserForColumn(userName: "heo jae", userProfileURL: "", userPosition: "Staff", isSpeaking: false, isEnabled: false)
                                        ]),
            UserColumn(channelName: "10:30 Confference",
                                         users: [
                                            UserForColumn(userName: "lee dohyun", userProfileURL: "", userPosition: "Staff", isSpeaking: false, isEnabled: true),
                                            UserForColumn(userName: "lee kyungsup", userProfileURL: "", userPosition: "Staff", isSpeaking: false, isEnabled: true)
                                        ]),
            UserColumn(channelName: "Attendance",
                                         users: [
                                            UserForColumn(userName: "kim sungjin", userProfileURL: "", userPosition: "Manager", isSpeaking: true, isEnabled: true),
                                            UserForColumn(userName: "baek minkyu", userProfileURL: "", userPosition: "Staff", isSpeaking: false, isEnabled: true),
                                            UserForColumn(userName: "heo hyunjun", userProfileURL: "", userPosition: "Staff", isSpeaking: false, isEnabled: true),
                                            UserForColumn(userName: "lee changsup", userProfileURL: "", userPosition: "Manager", isSpeaking: false, isEnabled: true),
                                            UserForColumn(userName: "oh jaehyuk", userProfileURL: "", userPosition: "Staff", isSpeaking: false, isEnabled: true),
                                            UserForColumn(userName: "lee kyungsup", userProfileURL: "", userPosition: "Staff", isSpeaking: false, isEnabled: false),
                                            UserForColumn(userName: "chae hyunwook", userProfileURL: "", userPosition: "Staff", isSpeaking: false, isEnabled: true),
                                            UserForColumn(userName: "micro soft", userProfileURL: "https://i.imgur.com/jHOXkpc.png", userPosition: "Staff", isSpeaking: false, isEnabled: true)
                                        ])]
    )
}

