DeviceIdentifier
public struct DeviceIdentifier : Codable, Equatable, Hashable
extension DeviceIdentifier: Fixture
A Nanoleaf device identifier.
-
Device name.
Declaration
Swift
public var name: String -
Device type.
Declaration
Swift
public var type: String -
Device domain.
Declaration
Swift
public var domain: String
-
Initialize a new
DeviceIdentifierinstance.Declaration
Swift
public init( name: String, type: String, domain: String )Parameters
nameThe device’s name.
typeThe device type.
domainThe device’s domain.
-
Create a fixture.
Declaration
Swift
public static func fixture(_ configure: ((inout `Self`) -> Void)? = nil) -> DeviceIdentifierParameters
configureA closure to configure the fixture.
Return Value
A
Deviceinstance.
DeviceIdentifier Structure Reference