misc: swift difference

This commit is contained in:
mrFq1
2023-09-08 22:17:43 +08:00
parent 1f155f7e4b
commit a25ca56d1c
8 changed files with 155 additions and 175 deletions

View File

@@ -5,7 +5,6 @@
//
import Cocoa
import DifferenceKit
struct DBConnectionSnapShot: Codable {
let downloadTotal: Int
@@ -49,7 +48,7 @@ struct DBMetaConnectionData: Codable, Hashable {
}
class DBConnectionObject: NSObject, Differentiable {
class DBConnectionObject: NSObject {
@objc let id: String
@objc let host: String
@objc let sniffHost: String
@@ -67,9 +66,6 @@ class DBConnectionObject: NSObject, Differentiable {
@objc let destinationIP: String?
@objc let type: String
var differenceIdentifier: String {
return id
}
func isContentEqual(to source: DBConnectionObject) -> Bool {
download == source.download &&