Runt
2025-06-27 e21b1c797955a231f2bcf71818e0259fbb6aeba1
LiveProject/data/DeviceInfo.swift
@@ -0,0 +1,22 @@
//
//  DeviceInfo.swift
//  LiveProject
//
//  Created by 倪路朋 on 6/26/25.
//
import SwiftUI
struct DeviceInfo : Hashable {
    let name:String
    let type:StreamType
    let deviceId:String;
    var icon : (any View)? = nil;
    func hash(into hasher: inout Hasher){
        hasher.combine(deviceId)
    }
    static func == (lhs: DeviceInfo, rhs: DeviceInfo) -> Bool {
        lhs.deviceId == rhs.deviceId
    }
}