aboutsummaryrefslogtreecommitdiffstats
path: root/Wireguard/Models/Interface+CoreDataProperties.swift
blob: c00886ac6a576403defcdc0652b344d55e9cecfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
//  Interface+CoreDataProperties.swift
//  WireGuard
//
//  Created by Jeroen Leenarts on 24-05-18.
//  Copyright © 2018 WireGuard. All rights reserved.
//
//

import Foundation
import CoreData

extension Interface {

    @nonobjc public class func fetchRequest() -> NSFetchRequest<Interface> {
        return NSFetchRequest<Interface>(entityName: "Interface")
    }

    @NSManaged public var fwMark: Int32
    @NSManaged public var listenPort: Int16
    @NSManaged public var privateKey: String?
    @NSManaged public var mtu: Int32
    @NSManaged public var dns: String?
    @NSManaged public var table: String?
    @NSManaged public var profile: Profile?
    @NSManaged public var adresses: NSSet?

}

// MARK: Generated accessors for adresses
extension Interface {

    @objc(addAdressesObject:)
    @NSManaged public func addToAdresses(_ value: Address)

    @objc(removeAdressesObject:)
    @NSManaged public func removeFromAdresses(_ value: Address)

    @objc(addAdresses:)
    @NSManaged public func addToAdresses(_ values: NSSet)

    @objc(removeAdresses:)
    @NSManaged public func removeFromAdresses(_ values: NSSet)

}