From bf9e4680eb466bcb7c9cb1bef567252bb1f2bb7d Mon Sep 17 00:00:00 2001 From: Runt <qingingrunt2010@qq.com> Date: Fri, 27 Jun 2025 05:32:55 +0000 Subject: [PATCH] 1 --- LiveProject/data/DeviceInfo.swift | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/LiveProject/data/DeviceInfo.swift b/LiveProject/data/DeviceInfo.swift index e69de29..e3313f4 100644 --- a/LiveProject/data/DeviceInfo.swift +++ b/LiveProject/data/DeviceInfo.swift @@ -0,0 +1,21 @@ +// +// DeviceInfo.swift +// LiveProject +// +// Created by 倪路朋 on 6/26/25. +// + + +struct DeviceInfo : Hashable { + let name:String + let type:StreamType + let deviceId:String; + + func hash(into hasher: inout Hasher){ + hasher.combine(deviceId) + } + + static func == (lhs: DeviceInfo, rhs: DeviceInfo) -> Bool { + lhs.deviceId == rhs.deviceId + } +} -- Gitblit v1.9.1