wireguard-apple/WireGuard/Models/Tunnel+CoreDataProperties.s...

55 lines
1.5 KiB
Swift
Raw Normal View History

2018-05-23 19:49:10 +00:00
//
// Copyright © 2018 WireGuard LLC. All rights reserved.
2018-05-23 19:49:10 +00:00
//
import Foundation
import CoreData
2018-05-26 07:17:36 +00:00
extension Tunnel {
2018-05-23 19:49:10 +00:00
2018-05-26 07:17:36 +00:00
@nonobjc public class func fetchRequest() -> NSFetchRequest<Tunnel> {
return NSFetchRequest<Tunnel>(entityName: "Tunnel")
2018-05-23 19:49:10 +00:00
}
2018-08-08 04:59:56 +00:00
@NSManaged public var tunnelIdentifier: String?
2018-05-23 20:13:09 +00:00
@NSManaged public var title: String?
@NSManaged public var interface: Interface?
2018-05-29 20:21:44 +00:00
@NSManaged public var peers: NSOrderedSet?
2018-05-23 20:13:09 +00:00
}
// MARK: Generated accessors for peers
2018-05-26 07:17:36 +00:00
extension Tunnel {
2018-05-23 20:13:09 +00:00
2018-05-29 20:21:44 +00:00
@objc(insertObject:inPeersAtIndex:)
@NSManaged public func insertIntoPeers(_ value: Peer, at idx: Int)
@objc(removeObjectFromPeersAtIndex:)
@NSManaged public func removeFromPeers(at idx: Int)
@objc(insertPeers:atIndexes:)
@NSManaged public func insertIntoPeers(_ values: [Peer], at indexes: NSIndexSet)
@objc(removePeersAtIndexes:)
@NSManaged public func removeFromPeers(at indexes: NSIndexSet)
@objc(replaceObjectInPeersAtIndex:withObject:)
@NSManaged public func replacePeers(at idx: Int, with value: Peer)
@objc(replacePeersAtIndexes:withPeers:)
@NSManaged public func replacePeers(at indexes: NSIndexSet, with values: [Peer])
2018-05-23 20:13:09 +00:00
@objc(addPeersObject:)
@NSManaged public func addToPeers(_ value: Peer)
@objc(removePeersObject:)
@NSManaged public func removeFromPeers(_ value: Peer)
@objc(addPeers:)
2018-05-29 20:21:44 +00:00
@NSManaged public func addToPeers(_ values: NSOrderedSet)
2018-05-23 20:13:09 +00:00
@objc(removePeers:)
2018-05-29 20:21:44 +00:00
@NSManaged public func removeFromPeers(_ values: NSOrderedSet)
2018-05-23 20:13:09 +00:00
2018-05-23 19:49:10 +00:00
}