diff --git a/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h b/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h index ab6165f474f1ec..e295a3e66af649 100644 --- a/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h +++ b/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h @@ -55,23 +55,23 @@ class ReadAttribute : public ModelCommand { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [device - readAttributeWithEndpointID:[NSNumber numberWithUnsignedShort:endpointId] - clusterID:[NSNumber numberWithUnsignedInteger:mClusterId] - attributeID:[NSNumber numberWithUnsignedInteger:mAttributeId] - params:params - queue:callbackQueue - completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - if (error != nil) { - LogNSError("Error reading attribute", error); - } - if (values) { - for (id item in values) { - NSLog(@"Response Item: %@", [item description]); - } - } - SetCommandExitStatus(error); - }]; + [device readAttributePathWithEndpointID:[NSNumber numberWithUnsignedShort:endpointId] + clusterID:[NSNumber numberWithUnsignedInteger:mClusterId] + attributeID:[NSNumber numberWithUnsignedInteger:mAttributeId] + params:params + queue:callbackQueue + completion:^( + NSArray *> * _Nullable values, NSError * _Nullable error) { + if (error != nil) { + LogNSError("Error reading attribute", error); + } + if (values) { + for (id item in values) { + NSLog(@"Response Item: %@", [item description]); + } + } + SetCommandExitStatus(error); + }]; return CHIP_NO_ERROR; } @@ -129,7 +129,7 @@ class SubscribeAttribute : public ModelCommand { = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.autoResubscribe = mAutoResubscribe.HasValue() ? [NSNumber numberWithBool:mAutoResubscribe.Value()] : nil; - [device subscribeAttributeWithEndpointID:[NSNumber numberWithUnsignedShort:endpointId] + [device subscribeAttributePathWithEndpointID:[NSNumber numberWithUnsignedShort:endpointId] clusterID:[NSNumber numberWithUnsignedInteger:mClusterId] attributeID:[NSNumber numberWithUnsignedInteger:mAttributeId] minInterval:[NSNumber numberWithUnsignedInteger:mMinInterval] diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m index ec4ce5d69052ca..094ae11559b273 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m @@ -506,7 +506,7 @@ - (void)onPairingComplete:(NSError * _Nullable)error } else { MTRCommissioningParameters * params = [[MTRCommissioningParameters alloc] init]; params.deviceAttestationDelegate = [[CHIPToolDeviceAttestationDelegate alloc] initWithViewController:self]; - params.failSafeExpiryTimeoutSecs = @600; + params.failSafeExpiryTimeout = @600; NSError * error; if (![controller commissionDevice:deviceId commissioningParams:params error:&error]) { NSLog(@"Failed to commission Device %llu, with error %@", deviceId, error); @@ -674,7 +674,7 @@ - (void)commissionWithSSID:(NSString *)ssid password:(NSString *)password params.wifiSSID = [ssid dataUsingEncoding:NSUTF8StringEncoding]; params.wifiCredentials = [password dataUsingEncoding:NSUTF8StringEncoding]; params.deviceAttestationDelegate = [[CHIPToolDeviceAttestationDelegate alloc] initWithViewController:self]; - params.failSafeExpiryTimeoutSecs = @600; + params.failSafeExpiryTimeout = @600; uint64_t deviceId = MTRGetNextAvailableDeviceID() - 1; diff --git a/src/darwin/Framework/CHIP/MTRBaseDevice.h b/src/darwin/Framework/CHIP/MTRBaseDevice.h index 27f7349207580e..ea98603f196f81 100644 --- a/src/darwin/Framework/CHIP/MTRBaseDevice.h +++ b/src/darwin/Framework/CHIP/MTRBaseDevice.h @@ -184,14 +184,21 @@ extern NSString * const MTRArrayValueType; resubscriptionScheduled:(MTRDeviceResubscriptionScheduledHandler _Nullable)resubscriptionScheduled; /** - * Read attribute in a designated attribute path + * Reads the given attribute path from the device. + * + * nil values for endpointID, clusterID, attributeID indicate wildcards + * (e.g. nil attributeID means "read all the attributes from the endpoint(s) and + * cluster(s) that match endpointID/clusterID"). + * + * A non-nil attributeID along with a nil clusterID will only succeed if the + * attribute ID is for a global attribute that applies to all clusters. */ -- (void)readAttributeWithEndpointID:(NSNumber * _Nullable)endpointID - clusterID:(NSNumber * _Nullable)clusterID - attributeID:(NSNumber * _Nullable)attributeID - params:(MTRReadParams * _Nullable)params - queue:(dispatch_queue_t)queue - completion:(MTRDeviceResponseHandler)completion; +- (void)readAttributePathWithEndpointID:(NSNumber * _Nullable)endpointID + clusterID:(NSNumber * _Nullable)clusterID + attributeID:(NSNumber * _Nullable)attributeID + params:(MTRReadParams * _Nullable)params + queue:(dispatch_queue_t)queue + completion:(MTRDeviceResponseHandler)completion; /** * Write to attribute in a designated attribute path @@ -203,8 +210,8 @@ extern NSString * const MTRArrayValueType; * * @param completion response handler will receive either values or error. * - * Received values are an NSArray object with response-value element as described in - * readAttributeWithEndpointID:clusterID:attributeID:queue:completion:. + * Received values are documented in the definition of + * MTRDeviceResponseHandler. */ - (void)writeAttributeWithEndpointID:(NSNumber *)endpointID clusterID:(NSNumber *)clusterID @@ -235,17 +242,24 @@ extern NSString * const MTRArrayValueType; completion:(MTRDeviceResponseHandler)completion; /** - * Subscribe an attribute in a designated attribute path + * Subscribes to the given attribute path on the device. + * + * nil values for endpointID, clusterID, attributeID indicate wildcards + * (e.g. nil attributeID means "read all the attributes from the endpoint(s) and + * cluster(s) that match endpointID/clusterID"). + * + * A non-nil attributeID along with a nil clusterID will only succeed if the + * attribute ID is for a global attribute that applies to all clusters. */ -- (void)subscribeAttributeWithEndpointID:(NSNumber * _Nullable)endpointID - clusterID:(NSNumber * _Nullable)clusterID - attributeID:(NSNumber * _Nullable)attributeID - minInterval:(NSNumber *)minInterval - maxInterval:(NSNumber *)maxInterval - params:(MTRSubscribeParams * _Nullable)params - queue:(dispatch_queue_t)queue - reportHandler:(MTRDeviceResponseHandler)reportHandler - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished; +- (void)subscribeAttributePathWithEndpointID:(NSNumber * _Nullable)endpointID + clusterID:(NSNumber * _Nullable)clusterID + attributeID:(NSNumber * _Nullable)attributeID + minInterval:(NSNumber *)minInterval + maxInterval:(NSNumber *)maxInterval + params:(MTRSubscribeParams * _Nullable)params + queue:(dispatch_queue_t)queue + reportHandler:(MTRDeviceResponseHandler)reportHandler + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished; /** * Deregister all local report handlers for a remote device @@ -279,9 +293,9 @@ extern NSString * const MTRArrayValueType; @end @interface MTRAttributePath : NSObject -@property (nonatomic, readonly, strong, nonnull) NSNumber * endpoint; -@property (nonatomic, readonly, strong, nonnull) NSNumber * cluster; -@property (nonatomic, readonly, strong, nonnull) NSNumber * attribute; +@property (nonatomic, readonly, copy) NSNumber * endpoint; +@property (nonatomic, readonly, copy) NSNumber * cluster; +@property (nonatomic, readonly, copy) NSNumber * attribute; + (instancetype)attributePathWithEndpointID:(NSNumber *)endpointID clusterID:(NSNumber *)clusterID @@ -292,9 +306,9 @@ extern NSString * const MTRArrayValueType; @end @interface MTREventPath : NSObject -@property (nonatomic, readonly, strong, nonnull) NSNumber * endpoint; -@property (nonatomic, readonly, strong, nonnull) NSNumber * cluster; -@property (nonatomic, readonly, strong, nonnull) NSNumber * event; +@property (nonatomic, readonly, copy) NSNumber * endpoint; +@property (nonatomic, readonly, copy) NSNumber * cluster; +@property (nonatomic, readonly, copy) NSNumber * event; + (instancetype)eventPathWithEndpointID:(NSNumber *)endpointID clusterID:(NSNumber *)clusterID eventID:(NSNumber *)eventID; @@ -303,9 +317,9 @@ extern NSString * const MTRArrayValueType; @end @interface MTRCommandPath : NSObject -@property (nonatomic, readonly, strong, nonnull) NSNumber * endpoint; -@property (nonatomic, readonly, strong, nonnull) NSNumber * cluster; -@property (nonatomic, readonly, strong, nonnull) NSNumber * command; +@property (nonatomic, readonly, copy) NSNumber * endpoint; +@property (nonatomic, readonly, copy) NSNumber * cluster; +@property (nonatomic, readonly, copy) NSNumber * command; + (instancetype)commandPathWithEndpointID:(NSNumber *)endpointID clusterID:(NSNumber *)clusterID commandID:(NSNumber *)commandID; @@ -314,25 +328,27 @@ extern NSString * const MTRArrayValueType; @end @interface MTRAttributeReport : NSObject -@property (nonatomic, readonly, strong, nonnull) MTRAttributePath * path; +@property (nonatomic, readonly, copy) MTRAttributePath * path; // value is nullable because nullable attributes can have nil as value. -@property (nonatomic, readonly, strong, nullable) id value; +@property (nonatomic, readonly, copy, nullable) id value; // If this specific path resulted in an error, the error (in the // MTRInteractionErrorDomain or MTRErrorDomain) that corresponds to this // path. -@property (nonatomic, readonly, strong, nullable) NSError * error; +@property (nonatomic, readonly, copy, nullable) NSError * error; @end @interface MTREventReport : NSObject -@property (nonatomic, readonly, strong, nonnull) MTREventPath * path; -@property (nonatomic, readonly, strong, nonnull) NSNumber * eventNumber; // chip::EventNumber type (uint64_t) -@property (nonatomic, readonly, strong, nonnull) NSNumber * priority; // chip::app::PriorityLevel type (uint8_t) -@property (nonatomic, readonly, strong, nonnull) NSNumber * timestamp; // chip::app::Timestamp.mValue type (uint64_t) -@property (nonatomic, readonly, strong, nullable) id value; +@property (nonatomic, readonly, copy) MTREventPath * path; +@property (nonatomic, readonly, copy) NSNumber * eventNumber; // EventNumber type (uint64_t) +@property (nonatomic, readonly, copy) NSNumber * priority; // PriorityLevel type (uint8_t) +@property (nonatomic, readonly, copy) NSNumber * timestamp; // Timestamp type (uint64_t) +// An instance of one of the event payload interfaces. +@property (nonatomic, readonly, copy) id value; + // If this specific path resulted in an error, the error (in the // MTRInteractionErrorDomain or MTRErrorDomain) that corresponds to this // path. -@property (nonatomic, readonly, strong, nullable) NSError * error; +@property (nonatomic, readonly, copy, nullable) NSError * error; @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/MTRBaseDevice.mm b/src/darwin/Framework/CHIP/MTRBaseDevice.mm index deb08ece22dc55..3447e7351260e2 100644 --- a/src/darwin/Framework/CHIP/MTRBaseDevice.mm +++ b/src/darwin/Framework/CHIP/MTRBaseDevice.mm @@ -301,7 +301,7 @@ - (void)invalidateCASESession - (void)subscribeWithQueue:(dispatch_queue_t)queue minInterval:(NSNumber *)minInterval maxInterval:(NSNumber *)maxInterval - params:(nullable MTRSubscribeParams *)params + params:(MTRSubscribeParams * _Nullable)params attributeCacheContainer:(MTRAttributeCacheContainer * _Nullable)attributeCacheContainer attributeReportHandler:(MTRDeviceReportHandler _Nullable)attributeReportHandler eventReportHandler:(MTRDeviceReportHandler _Nullable)eventReportHandler @@ -771,12 +771,12 @@ void OnDeallocatePaths(chip::app::ReadPrepareParams && aReadPrepareParams) overr Platform::UniquePtr mReadClient; }; -- (void)readAttributeWithEndpointID:(NSNumber *)endpointID - clusterID:(NSNumber *)clusterID - attributeID:(NSNumber *)attributeID - params:(MTRReadParams * _Nullable)params - queue:(dispatch_queue_t)queue - completion:(MTRDeviceResponseHandler)completion +- (void)readAttributePathWithEndpointID:(NSNumber * _Nullable)endpointID + clusterID:(NSNumber * _Nullable)clusterID + attributeID:(NSNumber * _Nullable)attributeID + params:(MTRReadParams * _Nullable)params + queue:(dispatch_queue_t)queue + completion:(MTRDeviceResponseHandler)completion { endpointID = (endpointID == nil) ? nil : [endpointID copy]; clusterID = (clusterID == nil) ? nil : [clusterID copy]; @@ -1114,15 +1114,15 @@ new MTRDataValueDictionaryCallbackBridge(queue, self, completion, }); } -- (void)subscribeAttributeWithEndpointID:(NSNumber * _Nullable)endpointID - clusterID:(NSNumber * _Nullable)clusterID - attributeID:(NSNumber * _Nullable)attributeID - minInterval:(NSNumber *)minInterval - maxInterval:(NSNumber *)maxInterval - params:(MTRSubscribeParams * _Nullable)params - queue:(dispatch_queue_t)queue - reportHandler:(MTRDeviceResponseHandler)reportHandler - subscriptionEstablished:(MTRSubscriptionEstablishedHandler)subscriptionEstablished +- (void)subscribeAttributePathWithEndpointID:(NSNumber * _Nullable)endpointID + clusterID:(NSNumber * _Nullable)clusterID + attributeID:(NSNumber * _Nullable)attributeID + minInterval:(NSNumber *)minInterval + maxInterval:(NSNumber *)maxInterval + params:(MTRSubscribeParams * _Nullable)params + queue:(dispatch_queue_t)queue + reportHandler:(MTRDeviceResponseHandler)reportHandler + subscriptionEstablished:(MTRSubscriptionEstablishedHandler)subscriptionEstablished { if (self.isPASEDevice) { // We don't support subscriptions over PASE. @@ -1525,6 +1525,11 @@ ConcreteEventPath path(static_cast([endpointID unsignedShortVa return [[MTREventPath alloc] initWithPath:path]; } + +- (id)copyWithZone:(NSZone *)zone +{ + return [MTREventPath eventPathWithEndpointID:_endpoint clusterID:_cluster eventID:_event]; +} @end @implementation MTRCommandPath @@ -1545,10 +1550,15 @@ ConcreteCommandPath path(static_cast([endpointID unsignedShort return [[MTRCommandPath alloc] initWithPath:path]; } + +- (id)copyWithZone:(NSZone *)zone +{ + return [MTRCommandPath commandPathWithEndpointID:_endpoint clusterID:_cluster commandID:_command]; +} @end @implementation MTRAttributeReport -- (instancetype)initWithPath:(const ConcreteDataAttributePath &)path value:(nullable id)value error:(nullable NSError *)error +- (instancetype)initWithPath:(const ConcreteDataAttributePath &)path value:(id _Nullable)value error:(NSError * _Nullable)error { if (self = [super init]) { _path = [[MTRAttributePath alloc] initWithPath:path]; @@ -1564,8 +1574,8 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path eventNumber:(NSNumber *)eventNumber priority:(NSNumber *)priority timestamp:(NSNumber *)timestamp - value:(nullable id)value - error:(nullable NSError *)error + value:(id _Nullable)value + error:(NSError * _Nullable)error { if (self = [super init]) { _path = [[MTREventPath alloc] initWithPath:path]; diff --git a/src/darwin/Framework/CHIP/MTRBaseDevice_Internal.h b/src/darwin/Framework/CHIP/MTRBaseDevice_Internal.h index 3acfb162459393..f7451454a561db 100644 --- a/src/darwin/Framework/CHIP/MTRBaseDevice_Internal.h +++ b/src/darwin/Framework/CHIP/MTRBaseDevice_Internal.h @@ -75,8 +75,8 @@ NS_ASSUME_NONNULL_BEGIN @interface MTRAttributeReport () - (instancetype)initWithPath:(const chip::app::ConcreteDataAttributePath &)path - value:(nullable id)value - error:(nullable NSError *)error; + value:(id _Nullable)value + error:(NSError * _Nullable)error; @end @interface MTREventReport () @@ -84,8 +84,8 @@ NS_ASSUME_NONNULL_BEGIN eventNumber:(NSNumber *)eventNumber priority:(NSNumber *)priority timestamp:(NSNumber *)timestamp - value:(nullable id)value - error:(nullable NSError *)error; + value:(id _Nullable)value + error:(NSError * _Nullable)error; @end // Exported utility function diff --git a/src/darwin/Framework/CHIP/MTRCertificates.h b/src/darwin/Framework/CHIP/MTRCertificates.h index c9c03c806be2b7..d384c4486d17c0 100644 --- a/src/darwin/Framework/CHIP/MTRCertificates.h +++ b/src/darwin/Framework/CHIP/MTRCertificates.h @@ -20,6 +20,9 @@ #import +typedef NSData MTRCertificateDERBytes; +typedef NSData MTRCertificateTLVBytes; + NS_ASSUME_NONNULL_BEGIN @protocol MTRKeypair; @@ -27,7 +30,7 @@ NS_ASSUME_NONNULL_BEGIN @interface MTRCertificates : NSObject /** - * Generate a root (self-signed) X.509 DER encoded certificate that has the + * Create a root (self-signed) X.509 DER encoded certificate that has the * right fields to be a valid Matter root certificate. * * If issuerID is nil, a random issuer id is generated. Otherwise the provided @@ -39,13 +42,13 @@ NS_ASSUME_NONNULL_BEGIN * On failure returns nil and if "error" is not null sets *error to the relevant * error. */ -+ (nullable NSData *)generateRootCertificate:(id)keypair - issuerID:(nullable NSNumber *)issuerID - fabricID:(nullable NSNumber *)fabricID - error:(NSError * __autoreleasing _Nullable * _Nullable)error; ++ (MTRCertificateDERBytes * _Nullable)createRootCertificate:(id)keypair + issuerID:(NSNumber * _Nullable)issuerID + fabricID:(NSNumber * _Nullable)fabricID + error:(NSError * __autoreleasing _Nullable * _Nullable)error; /** - * Generate an intermediate X.509 DER encoded certificate that has the + * Create an intermediate X.509 DER encoded certificate that has the * right fields to be a valid Matter intermediate certificate. * * If issuerID is nil, a random issuer id is generated. Otherwise the provided @@ -57,15 +60,15 @@ NS_ASSUME_NONNULL_BEGIN * On failure returns nil and if "error" is not null sets *error to the relevant * error. */ -+ (nullable NSData *)generateIntermediateCertificate:(id)rootKeypair - rootCertificate:(NSData *)rootCertificate - intermediatePublicKey:(SecKeyRef)intermediatePublicKey - issuerID:(nullable NSNumber *)issuerID - fabricID:(nullable NSNumber *)fabricID - error:(NSError * __autoreleasing _Nullable * _Nullable)error; ++ (MTRCertificateDERBytes * _Nullable)createIntermediateCertificate:(id)rootKeypair + rootCertificate:(MTRCertificateDERBytes *)rootCertificate + intermediatePublicKey:(SecKeyRef)intermediatePublicKey + issuerID:(NSNumber * _Nullable)issuerID + fabricID:(NSNumber * _Nullable)fabricID + error:(NSError * __autoreleasing _Nullable * _Nullable)error; /** - * Generate an X.509 DER encoded certificate that has the + * Create an X.509 DER encoded certificate that has the * right fields to be a valid Matter operational certificate. * * signingKeypair and signingCertificate are the root or intermediate that is @@ -85,13 +88,13 @@ NS_ASSUME_NONNULL_BEGIN * On failure returns nil and if "error" is not null sets *error to the relevant * error. */ -+ (nullable NSData *)generateOperationalCertificate:(id)signingKeypair - signingCertificate:(NSData *)signingCertificate - operationalPublicKey:(SecKeyRef)operationalPublicKey - fabricID:(NSNumber *)fabricID - nodeID:(NSNumber *)nodeID - caseAuthenticatedTags:(NSArray * _Nullable)caseAuthenticatedTags - error:(NSError * __autoreleasing _Nullable * _Nullable)error; ++ (MTRCertificateDERBytes * _Nullable)createOperationalCertificate:(id)signingKeypair + signingCertificate:(MTRCertificateDERBytes *)signingCertificate + operationalPublicKey:(SecKeyRef)operationalPublicKey + fabricID:(NSNumber *)fabricID + nodeID:(NSNumber *)nodeID + caseAuthenticatedTags:(NSArray * _Nullable)caseAuthenticatedTags + error:(NSError * __autoreleasing _Nullable * _Nullable)error; /** * Check whether the given keypair's public key matches the given certificate's @@ -107,7 +110,7 @@ NS_ASSUME_NONNULL_BEGIN * of having the same public key and the same subject DN. Returns NO if public * keys or subject DNs cannot be extracted from the certificates. */ -+ (BOOL)isCertificate:(NSData *)certificate1 equalTo:(NSData *)certificate2; ++ (BOOL)isCertificate:(MTRCertificateDERBytes *)certificate1 equalTo:(MTRCertificateDERBytes *)certificate2; /** * Generate a PKCS#10 certificate signing request from a MTRKeypair. This can @@ -122,8 +125,8 @@ NS_ASSUME_NONNULL_BEGIN * On failure returns nil and if "error" is not null sets *error to the relevant * error. */ -+ (nullable NSData *)generateCertificateSigningRequest:(id)keypair - error:(NSError * __autoreleasing _Nullable * _Nullable)error; ++ (NSData * _Nullable)createCertificateSigningRequest:(id)keypair + error:(NSError * __autoreleasing _Nullable * _Nullable)error; /** * Convert the given X.509v3 DER encoded certificate to the Matter certificate @@ -133,7 +136,7 @@ NS_ASSUME_NONNULL_BEGIN * as a DER encoded X.509 certificate, or if the certificate cannot be * represented in the Matter certificate format). */ -+ (nullable NSData *)convertX509Certificate:(NSData *)x509Certificate; ++ (MTRCertificateTLVBytes * _Nullable)convertX509Certificate:(MTRCertificateDERBytes *)x509Certificate; @end diff --git a/src/darwin/Framework/CHIP/MTRCertificates.mm b/src/darwin/Framework/CHIP/MTRCertificates.mm index 8ebb033b8ca029..66ffecfc770b49 100644 --- a/src/darwin/Framework/CHIP/MTRCertificates.mm +++ b/src/darwin/Framework/CHIP/MTRCertificates.mm @@ -31,10 +31,10 @@ @implementation MTRCertificates -+ (nullable NSData *)generateRootCertificate:(id)keypair - issuerID:(nullable NSNumber *)issuerID - fabricID:(nullable NSNumber *)fabricID - error:(NSError * __autoreleasing *)error ++ (MTRCertificateDERBytes * _Nullable)createRootCertificate:(id)keypair + issuerID:(NSNumber * _Nullable)issuerID + fabricID:(NSNumber * _Nullable)fabricID + error:(NSError * __autoreleasing *)error { NSLog(@"Generating root certificate"); @@ -53,12 +53,12 @@ + (nullable NSData *)generateRootCertificate:(id)keypair return rootCert; } -+ (nullable NSData *)generateIntermediateCertificate:(id)rootKeypair - rootCertificate:(NSData *)rootCertificate - intermediatePublicKey:(SecKeyRef)intermediatePublicKey - issuerID:(nullable NSNumber *)issuerID - fabricID:(nullable NSNumber *)fabricID - error:(NSError * __autoreleasing *)error ++ (MTRCertificateDERBytes * _Nullable)createIntermediateCertificate:(id)rootKeypair + rootCertificate:(MTRCertificateDERBytes *)rootCertificate + intermediatePublicKey:(SecKeyRef)intermediatePublicKey + issuerID:(NSNumber * _Nullable)issuerID + fabricID:(NSNumber * _Nullable)fabricID + error:(NSError * __autoreleasing *)error { NSLog(@"Generating intermediate certificate"); @@ -78,13 +78,13 @@ + (nullable NSData *)generateIntermediateCertificate:(id)rootKeypair return intermediate; } -+ (nullable NSData *)generateOperationalCertificate:(id)signingKeypair - signingCertificate:(NSData *)signingCertificate - operationalPublicKey:(SecKeyRef)operationalPublicKey - fabricID:(NSNumber *)fabricID - nodeID:(NSNumber *)nodeID - caseAuthenticatedTags:(NSArray * _Nullable)caseAuthenticatedTags - error:(NSError * __autoreleasing _Nullable * _Nullable)error ++ (MTRCertificateDERBytes * _Nullable)createOperationalCertificate:(id)signingKeypair + signingCertificate:(MTRCertificateDERBytes *)signingCertificate + operationalPublicKey:(SecKeyRef)operationalPublicKey + fabricID:(NSNumber *)fabricID + nodeID:(NSNumber *)nodeID + caseAuthenticatedTags:(NSArray * _Nullable)caseAuthenticatedTags + error:(NSError * __autoreleasing _Nullable * _Nullable)error { NSLog(@"Generating operational certificate"); @@ -127,7 +127,7 @@ + (BOOL)keypair:(id)keypair matchesCertificate:(NSData *)certificate return certKeySpan.data_equal(keypairKeySpan); } -+ (BOOL)isCertificate:(NSData *)certificate1 equalTo:(NSData *)certificate2 ++ (BOOL)isCertificate:(MTRCertificateDERBytes *)certificate1 equalTo:(MTRCertificateDERBytes *)certificate2 { [MTRMemory ensureInit]; @@ -168,8 +168,8 @@ + (BOOL)isCertificate:(NSData *)certificate1 equalTo:(NSData *)certificate2 return subject1.IsEqual(subject2); } -+ (nullable NSData *)generateCertificateSigningRequest:(id)keypair - error:(NSError * __autoreleasing _Nullable * _Nullable)error ++ (NSData * _Nullable)createCertificateSigningRequest:(id)keypair + error:(NSError * __autoreleasing _Nullable * _Nullable)error { [MTRMemory ensureInit]; @@ -197,7 +197,7 @@ + (nullable NSData *)generateCertificateSigningRequest:(id)keypair return nil; } -+ (nullable NSData *)convertX509Certificate:(NSData *)x509Certificate ++ (MTRCertificateTLVBytes * _Nullable)convertX509Certificate:(MTRCertificateDERBytes *)x509Certificate { chip::ByteSpan x509CertBytes = AsByteSpan(x509Certificate); diff --git a/src/darwin/Framework/CHIP/MTRCluster.h b/src/darwin/Framework/CHIP/MTRCluster.h index 4dc53ecb3e09d8..14fc7aa7e95c83 100644 --- a/src/darwin/Framework/CHIP/MTRCluster.h +++ b/src/darwin/Framework/CHIP/MTRCluster.h @@ -54,8 +54,7 @@ NS_ASSUME_NONNULL_BEGIN * from the sever to the client (for the status response and actual write * request) within the timeout window. * - * This value is specified in milliseconds - * + * This value is specified in milliseconds. */ @property (nonatomic, copy, nullable) NSNumber * timedWriteTimeout; @@ -67,9 +66,6 @@ NS_ASSUME_NONNULL_BEGIN */ @property (nonatomic, copy, nullable) NSNumber * dataVersion; -- (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; - @end /** @@ -92,9 +88,6 @@ NS_ASSUME_NONNULL_BEGIN */ @property (nonatomic, copy, nullable) NSNumber * fabricFiltered; -- (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; - @end /** @@ -131,7 +124,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * autoResubscribe; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end diff --git a/src/darwin/Framework/CHIP/MTRCluster.mm b/src/darwin/Framework/CHIP/MTRCluster.mm index 480b80ade3ce00..4394782a8a4d73 100644 --- a/src/darwin/Framework/CHIP/MTRCluster.mm +++ b/src/darwin/Framework/CHIP/MTRCluster.mm @@ -51,7 +51,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRWriteParams alloc] init]; other.timedWriteTimeout = self.timedWriteTimeout; @@ -70,7 +70,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRReadParams alloc] init]; other.fabricFiltered = self.fabricFiltered; @@ -89,7 +89,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSubscribeParams alloc] init]; other.fabricFiltered = self.fabricFiltered; diff --git a/src/darwin/Framework/CHIP/MTRCluster_internal.h b/src/darwin/Framework/CHIP/MTRCluster_internal.h index 615b8eb732b48d..1ea8e80b01237c 100644 --- a/src/darwin/Framework/CHIP/MTRCluster_internal.h +++ b/src/darwin/Framework/CHIP/MTRCluster_internal.h @@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN @interface MTRCluster () @property (readonly, nonatomic) dispatch_queue_t callbackQueue; -- (nullable instancetype)initWithQueue:(dispatch_queue_t)queue; +- (instancetype _Nullable)initWithQueue:(dispatch_queue_t)queue; - (chip::ByteSpan)asByteSpan:(NSData *)value; - (chip::CharSpan)asCharSpan:(NSString *)value; @end diff --git a/src/darwin/Framework/CHIP/MTRCommissioningParameters.h b/src/darwin/Framework/CHIP/MTRCommissioningParameters.h index cbbb2a44a68d4a..5a5eeae69826f1 100644 --- a/src/darwin/Framework/CHIP/MTRCommissioningParameters.h +++ b/src/darwin/Framework/CHIP/MTRCommissioningParameters.h @@ -22,26 +22,34 @@ NS_ASSUME_NONNULL_BEGIN @protocol MTRDeviceAttestationDelegate; /** - * The class definition for the CHIPCommissioningParameters - * + * Information that can be provided to commissionWithNodeID to commision devices. */ @interface MTRCommissioningParameters : NSObject /** - * The CSRNonce + * The nonce to use when requesting a CSR for the node's operational + * certificate. + * + * If nil, a random nonce will be generated automatically. + * + * If not nil, must be 32 bytes of data. */ -@property (nonatomic, copy, nullable) NSData * CSRNonce; +@property (nonatomic, copy, nullable) NSData * csrNonce; /** - * The AttestationNonce + * The nonce to use when requesting attestation information from the device. + * + * If nil, a random nonce will be generated automatically. + * + * If not nil, must be 32 bytes of data. */ @property (nonatomic, copy, nullable) NSData * attestationNonce; /** - * The Wi-Fi SSID, if available. + * The Wi-Fi SSID, if available. */ @property (nonatomic, copy, nullable) NSData * wifiSSID; /** - * The Wi-Fi Credentials. Allowed to be nil or 0-length data for an open - * network, as long as wifiSSID is not nil. + * The Wi-Fi Credentials. Allowed to be nil or 0-length data for an open + * network, as long as wifiSSID is not nil. */ @property (nonatomic, copy, nullable) NSData * wifiCredentials; /** @@ -49,13 +57,20 @@ NS_ASSUME_NONNULL_BEGIN */ @property (nonatomic, copy, nullable) NSData * threadOperationalDataset; /** - * The Device Attestation status delegate + * An optional delegate that can be notified upon completion of device + * attestation. See documentation for MTRDeviceAttestationDelegate for + * details. */ @property (nonatomic, strong, nullable) id deviceAttestationDelegate; /** - * The timeout in secs to set for fail-safe when attestation fails + * The timeout, in seconds, to set for the fail-safe when calling into the + * deviceAttestationDelegate and waiting for it to respond. + * + * If nil, the fail-safe will not be extended before calling into the + * deviceAttestationDelegate. + */ -@property (nonatomic, copy, nullable) NSNumber * failSafeExpiryTimeoutSecs; +@property (nonatomic, copy, nullable) NSNumber * failSafeExpiryTimeout; @end diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 5260f63a24f589..9a9f0a3fd49e67 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -371,26 +371,26 @@ - (void)subscribeWithMinInterval:(uint16_t)minInterval maxInterval:(uint16_t)max MTRAsyncCallbackReadyHandler readyHandler = ^(MTRDevice * device, NSUInteger retryCount) { MTRBaseDevice * baseDevice = [[MTRBaseDevice alloc] initWithNodeID:@(self.nodeID) controller:self.deviceController]; - [baseDevice - readAttributeWithEndpointID:endpointID - clusterID:clusterID - attributeID:attributeID - params:params - queue:self.queue - completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - if (values) { - // Since the format is the same data-value dictionary, this looks like an attribute - // report - [self _handleAttributeReport:values]; - } - - // TODO: better retry logic - if (retryCount < 2) { - [workItem retryWork]; - } else { - [workItem endWork]; - } - }]; + [baseDevice readAttributePathWithEndpointID:endpointID + clusterID:clusterID + attributeID:attributeID + params:params + queue:self.queue + completion:^(NSArray *> * _Nullable values, + NSError * _Nullable error) { + if (values) { + // Since the format is the same data-value dictionary, this looks like an attribute + // report + [self _handleAttributeReport:values]; + } + + // TODO: better retry logic + if (retryCount < 2) { + [workItem retryWork]; + } else { + [workItem endWork]; + } + }]; }; workItem.readyHandler = readyHandler; [_asyncCallbackWorkQueue enqueueWorkItem:workItem]; diff --git a/src/darwin/Framework/CHIP/MTRDeviceController.h b/src/darwin/Framework/CHIP/MTRDeviceController.h index 7c0df10a11bb17..87dea50b3d1476 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController.h +++ b/src/darwin/Framework/CHIP/MTRDeviceController.h @@ -130,7 +130,7 @@ typedef void (^MTRDeviceConnectionCallback)(MTRBaseDevice * _Nullable device, NS * Attempts to retrieve the attestation challenge for a commissionee with the given Device ID. * Returns nil if given Device ID does not match an active commissionee, or if a Secure Session is not availale. */ -- (nullable NSData *)fetchAttestationChallengeForDeviceID:(uint64_t)deviceID; +- (NSData * _Nullable)fetchAttestationChallengeForDeviceID:(NSNumber *)deviceID; /** * Compute a PASE verifier and passcode ID for the desired setup pincode. diff --git a/src/darwin/Framework/CHIP/MTRDeviceController.mm b/src/darwin/Framework/CHIP/MTRDeviceController.mm index 3e48e719508316..04c8441fd7b91a 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceController.mm @@ -437,8 +437,8 @@ - (BOOL)commissionDevice:(uint64_t)deviceID VerifyOrReturn([self checkIsRunning:error]); chip::Controller::CommissioningParameters params; - if (commissioningParams.CSRNonce) { - params.SetCSRNonce(AsByteSpan(commissioningParams.CSRNonce)); + if (commissioningParams.csrNonce) { + params.SetCSRNonce(AsByteSpan(commissioningParams.csrNonce)); } if (commissioningParams.attestationNonce) { params.SetAttestationNonce(AsByteSpan(commissioningParams.attestationNonce)); @@ -459,9 +459,9 @@ - (BOOL)commissionDevice:(uint64_t)deviceID [self clearDeviceAttestationDelegateBridge]; chip::Optional timeoutSecs; - if (commissioningParams.failSafeExpiryTimeoutSecs) { + if (commissioningParams.failSafeExpiryTimeout) { timeoutSecs - = chip::MakeOptional(static_cast([commissioningParams.failSafeExpiryTimeoutSecs unsignedIntValue])); + = chip::MakeOptional(static_cast([commissioningParams.failSafeExpiryTimeout unsignedIntValue])); } BOOL shouldWaitAfterDeviceAttestation = NO; if ([commissioningParams.deviceAttestationDelegate @@ -634,7 +634,7 @@ + (nullable NSData *)computePaseVerifier:(uint32_t)setupPincode iterations:(uint return AsData(serializedBytes); } -- (nullable NSData *)fetchAttestationChallengeForDeviceID:(uint64_t)deviceID +- (NSData * _Nullable)fetchAttestationChallengeForDeviceID:(NSNumber *)deviceID { VerifyOrReturnValue([self checkIsRunning], nil); @@ -643,7 +643,7 @@ - (nullable NSData *)fetchAttestationChallengeForDeviceID:(uint64_t)deviceID VerifyOrReturn([self checkIsRunning]); chip::CommissioneeDeviceProxy * deviceProxy; - auto errorCode = self.cppCommissioner->GetDeviceBeingCommissioned(deviceID, &deviceProxy); + auto errorCode = self.cppCommissioner->GetDeviceBeingCommissioned([deviceID unsignedLongLongValue], &deviceProxy); auto success = ![self checkForError:errorCode logMsg:kErrorGetCommissionee error:nil]; VerifyOrReturn(success); diff --git a/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.h b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.h index c8b36fb830305e..9f180edf34404e 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.h +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.h @@ -16,6 +16,8 @@ #import +typedef NSData MTRCertificateDERBytes; + NS_ASSUME_NONNULL_BEGIN @protocol MTRKeypair; @@ -130,7 +132,7 @@ NS_ASSUME_NONNULL_BEGIN * 2) The subject DN must match the subject DN of the existing root * certificate. */ -@property (nonatomic, copy, nullable) NSData * rootCertificate; +@property (nonatomic, copy, nullable) MTRCertificateDERBytes * rootCertificate; /** * Intermediate certificate, in X.509 DER form, to use. @@ -162,7 +164,7 @@ NS_ASSUME_NONNULL_BEGIN * allows switching from using an intermediate CA to not using one. * */ -@property (nonatomic, copy, nullable) NSData * intermediateCertificate; +@property (nonatomic, copy, nullable) MTRCertificateDERBytes * intermediateCertificate; /** * Operational certificate, in X.509 DER form, to use. @@ -173,7 +175,7 @@ NS_ASSUME_NONNULL_BEGIN * If nil, an operational certificate will be determined as described in the * documentation for nodeID. */ -@property (nonatomic, copy, readonly, nullable) NSData * operationalCertificate; +@property (nonatomic, copy, readonly, nullable) MTRCertificateDERBytes * operationalCertificate; /** * Operational keypair to use. If operationalCertificate is not nil, the public @@ -212,9 +214,9 @@ NS_ASSUME_NONNULL_BEGIN * ipk must be 16 bytes in length. */ - (instancetype)initWithOperationalKeypair:(id)operationalKeypair - operationalCertificate:(NSData *)operationalCertificate - intermediateCertificate:(nullable NSData *)intermediateCertificate - rootCertificate:(NSData *)rootCertificate + operationalCertificate:(MTRCertificateDERBytes *)operationalCertificate + intermediateCertificate:(MTRCertificateDERBytes * _Nullable)intermediateCertificate + rootCertificate:(MTRCertificateDERBytes *)rootCertificate ipk:(NSData *)ipk; @end diff --git a/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.mm b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.mm index d01c7937350132..a32f5de46d64e3 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.mm @@ -49,9 +49,9 @@ - (instancetype)initWithSigningKeypair:(id)nocSigner fabricID:(NSNum } - (instancetype)initWithOperationalKeypair:(id)operationalKeypair - operationalCertificate:(NSData *)operationalCertificate - intermediateCertificate:(nullable NSData *)intermediateCertificate - rootCertificate:(NSData *)rootCertificate + operationalCertificate:(MTRCertificateDERBytes *)operationalCertificate + intermediateCertificate:(MTRCertificateDERBytes * _Nullable)intermediateCertificate + rootCertificate:(MTRCertificateDERBytes *)rootCertificate ipk:(NSData *)ipk { if (!(self = [super init])) { @@ -179,10 +179,10 @@ - (instancetype)initForNewFabric:(chip::FabricTable *)fabricTable if (self.rootCertificate == nil) { NSError * error; - self.rootCertificate = [MTRCertificates generateRootCertificate:self.nocSigner - issuerID:nil - fabricID:self.fabricID - error:&error]; + self.rootCertificate = [MTRCertificates createRootCertificate:self.nocSigner + issuerID:nil + fabricID:self.fabricID + error:&error]; if (error != nil || self.rootCertificate == nil) { MTR_LOG_ERROR("Failed to generate root certificate: %@", error); return nil; diff --git a/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams_Internal.h b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams_Internal.h index 889dba7d52c298..a448dc0901ab5a 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams_Internal.h +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams_Internal.h @@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN @interface MTRDeviceControllerStartupParams () // We want to be able to write to operationalCertificate in // MTRDeviceControllerStartupParamsInternal. -@property (nonatomic, copy, nullable) NSData * operationalCertificate; +@property (nonatomic, copy, nullable) MTRCertificateDERBytes * operationalCertificate; // Init method that just copies the values of all our ivars. - (instancetype)initWithParams:(MTRDeviceControllerStartupParams *)params; @@ -85,9 +85,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)initWithSigningKeypair:(id)nocSigner fabricID:(NSNumber *)fabricID ipk:(NSData *)ipk NS_UNAVAILABLE; - (instancetype)initWithOperationalKeypair:(id)operationalKeypair - operationalCertificate:(NSData *)operationalCertificate - intermediateCertificate:(nullable NSData *)intermediateCertificate - rootCertificate:(NSData *)rootCertificate + operationalCertificate:(MTRCertificateDERBytes *)operationalCertificate + intermediateCertificate:(MTRCertificateDERBytes * _Nullable)intermediateCertificate + rootCertificate:(MTRCertificateDERBytes *)rootCertificate ipk:(NSData *)ipk NS_UNAVAILABLE; @end diff --git a/src/darwin/Framework/CHIP/MTRDeviceOverXPC.m b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.m index 59994ce0a02ffc..f6166f93b30b30 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceOverXPC.m +++ b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.m @@ -49,12 +49,12 @@ - (instancetype)initWithController:(id)controller - (void)subscribeWithQueue:(dispatch_queue_t)queue minInterval:(NSNumber *)minInterval maxInterval:(NSNumber *)maxInterval - params:(nullable MTRSubscribeParams *)params + params:(MTRSubscribeParams * _Nullable)params attributeCacheContainer:(MTRAttributeCacheContainer * _Nullable)attributeCacheContainer - attributeReportHandler:(nullable void (^)(NSArray * value))attributeReportHandler - eventReportHandler:(nullable void (^)(NSArray * value))eventReportHandler + attributeReportHandler:(void (^_Nullable)(NSArray * value))attributeReportHandler + eventReportHandler:(void (^_Nullable)(NSArray * value))eventReportHandler errorHandler:(void (^)(NSError * error))errorHandler - subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler + subscriptionEstablished:(void (^_Nullable)(void))subscriptionEstablishedHandler resubscriptionScheduled:(MTRDeviceResubscriptionScheduledHandler _Nullable)resubscriptionScheduledHandler { MTR_LOG_DEBUG("Subscribing all attributes... Note that attributeReportHandler, eventReportHandler, and resubscriptionScheduled " @@ -91,12 +91,12 @@ - (void)subscribeWithQueue:(dispatch_queue_t)queue }]; } -- (void)readAttributeWithEndpointID:(NSNumber * _Nullable)endpointID - clusterID:(NSNumber * _Nullable)clusterID - attributeID:(NSNumber * _Nullable)attributeID - params:(MTRReadParams * _Nullable)params - queue:(dispatch_queue_t)queue - completion:(MTRDeviceResponseHandler)completion +- (void)readAttributePathWithEndpointID:(NSNumber * _Nullable)endpointID + clusterID:(NSNumber * _Nullable)clusterID + attributeID:(NSNumber * _Nullable)attributeID + params:(MTRReadParams * _Nullable)params + queue:(dispatch_queue_t)queue + completion:(MTRDeviceResponseHandler)completion { MTR_LOG_DEBUG("Reading attribute ..."); [_xpcConnection @@ -203,15 +203,15 @@ - (void)invokeCommandWithEndpointID:(NSNumber *)endpointID }]; } -- (void)subscribeAttributeWithEndpointID:(NSNumber * _Nullable)endpointID - clusterID:(NSNumber * _Nullable)clusterID - attributeID:(NSNumber * _Nullable)attributeID - minInterval:(NSNumber *)minInterval - maxInterval:(NSNumber *)maxInterval - params:(MTRSubscribeParams * _Nullable)params - queue:(dispatch_queue_t)queue - reportHandler:(MTRDeviceResponseHandler)reportHandler - subscriptionEstablished:(void (^_Nullable)(void))subscriptionEstablishedHandler +- (void)subscribeAttributePathWithEndpointID:(NSNumber * _Nullable)endpointID + clusterID:(NSNumber * _Nullable)clusterID + attributeID:(NSNumber * _Nullable)attributeID + minInterval:(NSNumber *)minInterval + maxInterval:(NSNumber *)maxInterval + params:(MTRSubscribeParams * _Nullable)params + queue:(dispatch_queue_t)queue + reportHandler:(MTRDeviceResponseHandler)reportHandler + subscriptionEstablished:(void (^_Nullable)(void))subscriptionEstablishedHandler { MTR_LOG_DEBUG("Subscribing attribute ..."); [_xpcConnection getProxyHandleWithCompletion:^( diff --git a/src/darwin/Framework/CHIP/MTRDevicePairingDelegate.h b/src/darwin/Framework/CHIP/MTRDevicePairingDelegate.h index b4bd25652ae80b..0ecce764b66908 100644 --- a/src/darwin/Framework/CHIP/MTRDevicePairingDelegate.h +++ b/src/darwin/Framework/CHIP/MTRDevicePairingDelegate.h @@ -43,19 +43,19 @@ typedef NS_ENUM(NSUInteger, MTRPairingStatus) { * Notify the delegate when pairing is completed * */ -- (void)onPairingComplete:(nullable NSError *)error; +- (void)onPairingComplete:(NSError * _Nullable)error; /** * Notify the delegate when commissioning is completed * */ -- (void)onCommissioningComplete:(nullable NSError *)error; +- (void)onCommissioningComplete:(NSError * _Nullable)error; /** * Notify the delegate when pairing is deleted * */ -- (void)onPairingDeleted:(nullable NSError *)error; +- (void)onPairingDeleted:(NSError * _Nullable)error; @end diff --git a/src/darwin/Framework/CHIP/MTRError.h b/src/darwin/Framework/CHIP/MTRError.h index d0c91185b3de41..ffed8c8be3b9df 100644 --- a/src/darwin/Framework/CHIP/MTRError.h +++ b/src/darwin/Framework/CHIP/MTRError.h @@ -75,35 +75,26 @@ typedef NS_ERROR_ENUM(MTRErrorDomain, MTRErrorCode){ // clang-format off typedef NS_ERROR_ENUM(MTRInteractionErrorDomain, MTRInteractionErrorCode){ // These values come from the general status code table in the Matter - // Interaction Model specification. Do not change these values unless the - // specification changes. + // Interaction Model specification. MTRInteractionErrorCodeFailure = 0x01, MTRInteractionErrorCodeInvalidSubscription = 0x7d, MTRInteractionErrorCodeUnsupportedAccess = 0x7e, MTRInteractionErrorCodeUnsupportedEndpoint = 0x7f, MTRInteractionErrorCodeInvalidAction = 0x80, MTRInteractionErrorCodeUnsupportedCommand = 0x81, - // Gap in values is intentional. MTRInteractionErrorCodeInvalidCommand = 0x85, MTRInteractionErrorCodeUnsupportedAttribute = 0x86, MTRInteractionErrorCodeConstraintError = 0x87, MTRInteractionErrorCodeUnsupportedWrite = 0x88, MTRInteractionErrorCodeResourceExhausted = 0x89, - // Gap in values is intentional. MTRInteractionErrorCodeNotFound = 0x8b, MTRInteractionErrorCodeUnreportableAttribute = 0x8c, MTRInteractionErrorCodeInvalidDataType = 0x8d, - // Gap in values is intentional. MTRInteractionErrorCodeUnsupportedRead = 0x8f, - // Gap in values is intentional. MTRInteractionErrorCodeDataVersionMismatch = 0x92, - // Gap in values is intentional. MTRInteractionErrorCodeTimeout = 0x94, - // Gap in values is intentional. MTRInteractionErrorCodeBusy = 0x9c, - // Gap in values is intentional. MTRInteractionErrorCodeUnsupportedCluster = 0xc3, - // Gap in values is intentional. MTRInteractionErrorCodeNoUpstreamSubscription = 0xc5, MTRInteractionErrorCodeNeedsTimedInteraction = 0xc6, MTRInteractionErrorCodeUnsupportedEvent = 0xc7, diff --git a/src/darwin/Framework/CHIP/MTRError_Internal.h b/src/darwin/Framework/CHIP/MTRError_Internal.h index e5e58b3f0f9568..6eaba254b36398 100644 --- a/src/darwin/Framework/CHIP/MTRError_Internal.h +++ b/src/darwin/Framework/CHIP/MTRError_Internal.h @@ -23,8 +23,8 @@ NS_ASSUME_NONNULL_BEGIN @interface MTRError : NSObject -+ (nullable NSError *)errorForCHIPErrorCode:(CHIP_ERROR)errorCode; -+ (nullable NSError *)errorForIMStatus:(const chip::app::StatusIB &)status; ++ (NSError * _Nullable)errorForCHIPErrorCode:(CHIP_ERROR)errorCode; ++ (NSError * _Nullable)errorForIMStatus:(const chip::app::StatusIB &)status; + (CHIP_ERROR)errorToCHIPErrorCode:(NSError * _Nullable)error; @end diff --git a/src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.h b/src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.h index 673a43c8909abc..2f6bcb2ecf0b90 100644 --- a/src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.h +++ b/src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.h @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN @interface MTRManualSetupPayloadParser : NSObject - (instancetype)initWithDecimalStringRepresentation:(NSString *)decimalStringRepresentation; -- (nullable MTRSetupPayload *)populatePayload:(NSError * __autoreleasing *)error; +- (MTRSetupPayload * _Nullable)populatePayload:(NSError * __autoreleasing *)error; @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/MTROTAHeaderParser.mm b/src/darwin/Framework/CHIP/MTROTAHeaderParser.mm index 558d590e98e5c1..b796d8797f3023 100644 --- a/src/darwin/Framework/CHIP/MTROTAHeaderParser.mm +++ b/src/darwin/Framework/CHIP/MTROTAHeaderParser.mm @@ -28,7 +28,7 @@ @implementation MTROTAHeader @end @implementation MTROTAHeaderParser -+ (nullable MTROTAHeader *)headerFromData:(NSData *)data error:(NSError * __autoreleasing *)error ++ (MTROTAHeader * _Nullable)headerFromData:(NSData *)data error:(NSError * __autoreleasing *)error { chip::OTAImageHeaderParser parser; diff --git a/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.h b/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.h index a3edfce8e600aa..b84672b791695f 100644 --- a/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.h +++ b/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.h @@ -29,8 +29,8 @@ typedef NS_ENUM(NSUInteger, MTROnboardingPayloadType) { @interface MTROnboardingPayloadParser : NSObject -+ (nullable MTRSetupPayload *)setupPayloadForOnboardingPayload:(NSString *)onboardingPayload - error:(NSError * __autoreleasing *)error; ++ (MTRSetupPayload * _Nullable)setupPayloadForOnboardingPayload:(NSString *)onboardingPayload + error:(NSError * __autoreleasing *)error; @end diff --git a/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.m b/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.m index 123da2918e8d5e..fb73932d5a3a42 100644 --- a/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.m +++ b/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.m @@ -27,8 +27,8 @@ + (bool)isQRCode:(NSString *)codeString return [codeString hasPrefix:@"MT:"]; } -+ (nullable MTRSetupPayload *)setupPayloadForOnboardingPayload:(NSString *)onboardingPayload - error:(NSError * __autoreleasing *)error ++ (MTRSetupPayload * _Nullable)setupPayloadForOnboardingPayload:(NSString *)onboardingPayload + error:(NSError * __autoreleasing *)error { MTRSetupPayload * payload; // MTROnboardingPayloadTypeNFC is of type QR code and handled same as QR code @@ -47,16 +47,16 @@ + (nullable MTRSetupPayload *)setupPayloadForOnboardingPayload:(NSString *)onboa return payload; } -+ (nullable MTRSetupPayload *)setupPayloadForQRCodeOnboardingPayload:(NSString *)onboardingPayload - error:(NSError * __autoreleasing *)error ++ (MTRSetupPayload * _Nullable)setupPayloadForQRCodeOnboardingPayload:(NSString *)onboardingPayload + error:(NSError * __autoreleasing *)error { MTRQRCodeSetupPayloadParser * qrCodeParser = [[MTRQRCodeSetupPayloadParser alloc] initWithBase38Representation:onboardingPayload]; return [qrCodeParser populatePayload:error]; } -+ (nullable MTRSetupPayload *)setupPayloadForManualCodeOnboardingPayload:(NSString *)onboardingPayload - error:(NSError * __autoreleasing *)error ++ (MTRSetupPayload * _Nullable)setupPayloadForManualCodeOnboardingPayload:(NSString *)onboardingPayload + error:(NSError * __autoreleasing *)error { MTRManualSetupPayloadParser * manualParser = [[MTRManualSetupPayloadParser alloc] initWithDecimalStringRepresentation:onboardingPayload]; diff --git a/src/darwin/Framework/CHIP/MTRPersistentStorageDelegate.h b/src/darwin/Framework/CHIP/MTRPersistentStorageDelegate.h index 248df57d67b60d..e1e36eaaebac2e 100644 --- a/src/darwin/Framework/CHIP/MTRPersistentStorageDelegate.h +++ b/src/darwin/Framework/CHIP/MTRPersistentStorageDelegate.h @@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN * Get the data for the given key. Returns nil if there is no data for the * key. */ -- (nullable NSData *)storageDataForKey:(NSString *)key; +- (NSData * _Nullable)storageDataForKey:(NSString *)key; /** * Set the data for the viven key to the given value. Returns YES if the key diff --git a/src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.h b/src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.h index ab0e6f63017496..9a93a52113405e 100644 --- a/src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.h +++ b/src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.h @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN @interface MTRQRCodeSetupPayloadParser : NSObject - (instancetype)initWithBase38Representation:(NSString *)base38Representation; -- (nullable MTRSetupPayload *)populatePayload:(NSError * __autoreleasing *)error; +- (MTRSetupPayload * _Nullable)populatePayload:(NSError * __autoreleasing *)error; @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/MTRSetupPayload.h b/src/darwin/Framework/CHIP/MTRSetupPayload.h index 4b9c3298352e06..a3351648e5e2c6 100644 --- a/src/darwin/Framework/CHIP/MTRSetupPayload.h +++ b/src/darwin/Framework/CHIP/MTRSetupPayload.h @@ -77,7 +77,7 @@ typedef NS_ENUM(NSUInteger, MTROptionalQRCodeInfoType) { MTROptionalQRCodeInfoTy @property (nonatomic, copy) NSNumber * setupPasscode; @property (nonatomic, copy, nullable) NSString * serialNumber; -- (nullable NSArray *)getAllOptionalVendorData:(NSError * __autoreleasing *)error; +- (NSArray * _Nullable)getAllOptionalVendorData:(NSError * __autoreleasing *)error; /** * Generate a random Matter-valid setup passcode. @@ -93,7 +93,7 @@ typedef NS_ENUM(NSUInteger, MTROptionalQRCodeInfoType) { MTROptionalQRCodeInfoTy error:(NSError * __autoreleasing *)error; /** Get 11 digit manual entry code from the setup payload. */ -- (nullable NSString *)manualEntryCode; +- (NSString * _Nullable)manualEntryCode; @end diff --git a/src/darwin/Framework/CHIP/MTRSetupPayload.mm b/src/darwin/Framework/CHIP/MTRSetupPayload.mm index 7c2df4dbbdd178..b607a320dea6bc 100644 --- a/src/darwin/Framework/CHIP/MTRSetupPayload.mm +++ b/src/darwin/Framework/CHIP/MTRSetupPayload.mm @@ -182,7 +182,7 @@ - (void)encodeWithCoder:(NSCoder *)coder [coder encodeObject:self.serialNumber forKey:MTRSetupPayloadCodingKeySerialNumber]; } -- (nullable instancetype)initWithCoder:(NSCoder *)decoder +- (instancetype _Nullable)initWithCoder:(NSCoder *)decoder { NSNumber * version = [decoder decodeObjectOfClass:[NSNumber class] forKey:MTRSetupPayloadCodingKeyVersion]; NSNumber * vendorID = [decoder decodeObjectOfClass:[NSNumber class] forKey:MTRSetupPayloadCodingKeyVendorID]; @@ -208,7 +208,7 @@ - (nullable instancetype)initWithCoder:(NSCoder *)decoder return payload; } -- (nullable NSString *)manualEntryCode +- (NSString * _Nullable)manualEntryCode { CHIP_ERROR err = CHIP_NO_ERROR; std::string outDecimalString; diff --git a/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.h b/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.h index ad51b815e830cc..b22ab9ccf59389 100644 --- a/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.h +++ b/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.h @@ -79,18 +79,18 @@ extern size_t const MTRSizeThreadPANID; * returned. In particular, it's expected to be a 16-bit unsigned * integer stored as 2 bytes in host order. */ -- (nullable instancetype)initWithNetworkName:(NSString *)networkName - extendedPANID:(NSData *)extendedPANID - masterKey:(NSData *)masterKey - PSKc:(NSData *)PSKc - channel:(NSNumber *)channel - panID:(NSData *)panID; +- (instancetype _Nullable)initWithNetworkName:(NSString *)networkName + extendedPANID:(NSData *)extendedPANID + masterKey:(NSData *)masterKey + PSKc:(NSData *)PSKc + channel:(NSNumber *)channel + panID:(NSData *)panID; /** * Create a Thread Operational Dataset object with a RCP formatted active operational dataset. * This initializer will return nil if the input data cannot be parsed correctly */ -- (nullable instancetype)initWithData:(NSData *)data; +- (instancetype _Nullable)initWithData:(NSData *)data; /** * Get the underlying data that represents the Thread Active Operational Dataset diff --git a/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.mm b/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.mm index ffdd19e24bd134..37eb23175966da 100644 --- a/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.mm +++ b/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.mm @@ -35,12 +35,12 @@ @interface MTRThreadOperationalDataset () @implementation MTRThreadOperationalDataset -- (nullable instancetype)initWithNetworkName:(NSString *)networkName - extendedPANID:(NSData *)extendedPANID - masterKey:(NSData *)masterKey - PSKc:(NSData *)PSKc - channel:(NSNumber *)channel - panID:(NSData *)panID +- (instancetype _Nullable)initWithNetworkName:(NSString *)networkName + extendedPANID:(NSData *)extendedPANID + masterKey:(NSData *)masterKey + PSKc:(NSData *)PSKc + channel:(NSNumber *)channel + panID:(NSData *)panID { if (self = [super init]) { _networkName = networkName; @@ -110,7 +110,7 @@ - (BOOL)_checkDataLength:(NSData *)data expectedLength:(size_t)expectedLength return YES; } -- (nullable instancetype)initWithData:(NSData *)data +- (instancetype _Nullable)initWithData:(NSData *)data { chip::ByteSpan span = chip::ByteSpan((uint8_t *) data.bytes, data.length); auto dataset = chip::Thread::OperationalDataset(); diff --git a/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt b/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt index b0bcbf7054baed..fdd96b922ee701 100644 --- a/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt @@ -18,9 +18,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseCluster{{asUpperCamelCase name}} : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; {{#chip_cluster_commands}} - (void){{asLowerCamelCase name}}WithParams:(MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params * {{#unless (commandHasRequiredField .)}}_Nullable{{/unless}})params completion:({{>command_completion_type command=.}})completion; diff --git a/src/darwin/Framework/CHIP/templates/MTRClusters.zapt b/src/darwin/Framework/CHIP/templates/MTRClusters.zapt index d158b95d9d2192..07be8fe3d55287 100644 --- a/src/darwin/Framework/CHIP/templates/MTRClusters.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRClusters.zapt @@ -20,9 +20,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRCluster{{asUpperCamelCase name}} : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; {{#chip_cluster_commands}} - (void){{asLowerCamelCase name}}WithParams:(MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params * {{#unless (commandHasRequiredField .)}}_Nullable{{/unless}})params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:({{>command_completion_type command=.}})completion; diff --git a/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc-src.zapt b/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc-src.zapt index 32fd5af6e56875..94e7ffff02b86c 100644 --- a/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc-src.zapt @@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params alloc] init]; diff --git a/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc.zapt b/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc.zapt index 52b05b75f23a5e..8b7e54e4db3435 100644 --- a/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc.zapt @@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end {{/zcl_commands}} {{/zcl_clusters}} diff --git a/src/darwin/Framework/CHIP/templates/MTRStructsObjc-src.zapt b/src/darwin/Framework/CHIP/templates/MTRStructsObjc-src.zapt index 2c80d9e679fa40..123517520831b2 100644 --- a/src/darwin/Framework/CHIP/templates/MTRStructsObjc-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRStructsObjc-src.zapt @@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}} alloc] init]; @@ -50,7 +50,7 @@ NS_ASSUME_NONNULL_BEGIN return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Event alloc] init]; diff --git a/src/darwin/Framework/CHIP/templates/MTRStructsObjc.zapt b/src/darwin/Framework/CHIP/templates/MTRStructsObjc.zapt index f277bfd0838234..9e131db8c50d77 100644 --- a/src/darwin/Framework/CHIP/templates/MTRStructsObjc.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRStructsObjc.zapt @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN {{/zcl_struct_items}} - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end {{/zcl_structs}} @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN {{/zcl_event_fields}} - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end {{/zcl_events}} diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index ef3cba11672021..b6df75ed0536b5 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -30,9 +30,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterIdentify : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)identifyWithParams:(MTRIdentifyClusterIdentifyParams *)params completion:(MTRStatusCompletion)completion; - (void)triggerEffectWithParams:(MTRIdentifyClusterTriggerEffectParams *)params completion:(MTRStatusCompletion)completion; @@ -165,9 +165,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterGroups : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)addGroupWithParams:(MTRGroupsClusterAddGroupParams *)params completion:(void (^)(MTRGroupsClusterAddGroupResponseParams * _Nullable data, NSError * _Nullable error))completion; @@ -293,9 +293,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterScenes : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)addSceneWithParams:(MTRScenesClusterAddSceneParams *)params completion:(void (^)(MTRScenesClusterAddSceneResponseParams * _Nullable data, NSError * _Nullable error))completion; @@ -510,9 +510,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterOnOff : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)offWithParams:(MTROnOffClusterOffParams * _Nullable)params completion:(MTRStatusCompletion)completion; - (void)offWithCompletion:(MTRStatusCompletion)completion; @@ -708,9 +708,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterOnOffSwitchConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeSwitchTypeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -839,9 +839,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterLevelControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)moveToLevelWithParams:(MTRLevelControlClusterMoveToLevelParams *)params completion:(MTRStatusCompletion)completion; - (void)moveWithParams:(MTRLevelControlClusterMoveParams *)params completion:(MTRStatusCompletion)completion; @@ -1198,9 +1198,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterBinaryInputBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeActiveTextWithCompletion:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completion; - (void)writeAttributeActiveTextWithValue:(NSString * _Nonnull)value completion:(MTRStatusCompletion)completion; @@ -1457,9 +1457,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterDescriptor : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeDeviceTypeListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion; /** @@ -1614,9 +1614,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterBinding : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeBindingWithParams:(MTRReadParams * _Nullable)params completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion; @@ -1730,9 +1730,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterAccessControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeAclWithParams:(MTRReadParams * _Nullable)params completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion; @@ -1923,9 +1923,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterActions : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)instantActionWithParams:(MTRActionsClusterInstantActionParams *)params completion:(MTRStatusCompletion)completion; - (void)instantActionWithTransitionWithParams:(MTRActionsClusterInstantActionWithTransitionParams *)params @@ -2083,9 +2083,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)mfgSpecificPingWithParams:(MTRBasicClusterMfgSpecificPingParams * _Nullable)params completion:(MTRStatusCompletion)completion; @@ -2514,9 +2514,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterOtaSoftwareUpdateProvider : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)queryImageWithParams:(MTROtaSoftwareUpdateProviderClusterQueryImageParams *)params completion:(void (^)(MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams * _Nullable data, @@ -2619,9 +2619,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterOtaSoftwareUpdateRequestor : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)announceOtaProviderWithParams:(MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams *)params completion:(MTRStatusCompletion)completion; @@ -2788,9 +2788,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterLocalizationConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeActiveLocaleWithCompletion:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completion; - (void)writeAttributeActiveLocaleWithValue:(NSString * _Nonnull)value completion:(MTRStatusCompletion)completion; @@ -2920,9 +2920,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterTimeFormatLocalization : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeHourFormatWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; - (void)writeAttributeHourFormatWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion; @@ -3074,9 +3074,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterUnitLocalization : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeTemperatureUnitWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; - (void)writeAttributeTemperatureUnitWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion; @@ -3190,9 +3190,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterPowerSourceConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeSourcesWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion; /** @@ -3301,9 +3301,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterPowerSource : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeStatusWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -3911,9 +3911,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterGeneralCommissioning : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)armFailSafeWithParams:(MTRGeneralCommissioningClusterArmFailSafeParams *)params completion:(void (^)(MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable data, @@ -4114,9 +4114,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterNetworkCommissioning : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)scanNetworksWithParams:(MTRNetworkCommissioningClusterScanNetworksParams * _Nullable)params completion:(void (^)(MTRNetworkCommissioningClusterScanNetworksResponseParams * _Nullable data, @@ -4364,9 +4364,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterDiagnosticLogs : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)retrieveLogsRequestWithParams:(MTRDiagnosticLogsClusterRetrieveLogsRequestParams *)params completion:(void (^)(MTRDiagnosticLogsClusterRetrieveLogsResponseParams * _Nullable data, @@ -4464,9 +4464,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterGeneralDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)testEventTriggerWithParams:(MTRGeneralDiagnosticsClusterTestEventTriggerParams *)params completion:(MTRStatusCompletion)completion; @@ -4711,9 +4711,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterSoftwareDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)resetWatermarksWithParams:(MTRSoftwareDiagnosticsClusterResetWatermarksParams * _Nullable)params completion:(MTRStatusCompletion)completion; @@ -4878,9 +4878,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterThreadNetworkDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)resetCountsWithParams:(MTRThreadNetworkDiagnosticsClusterResetCountsParams * _Nullable)params completion:(MTRStatusCompletion)completion; @@ -6027,9 +6027,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterWiFiNetworkDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)resetCountsWithParams:(MTRWiFiNetworkDiagnosticsClusterResetCountsParams * _Nullable)params completion:(MTRStatusCompletion)completion; @@ -6338,9 +6338,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterEthernetNetworkDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)resetCountsWithParams:(MTREthernetNetworkDiagnosticsClusterResetCountsParams * _Nullable)params completion:(MTRStatusCompletion)completion; @@ -6579,9 +6579,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterBridgedDeviceBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeVendorNameWithCompletion:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completion; /** @@ -6916,9 +6916,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterSwitch : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeNumberOfPositionsWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -7061,9 +7061,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterAdministratorCommissioning : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)openCommissioningWindowWithParams:(MTRAdministratorCommissioningClusterOpenCommissioningWindowParams *)params completion:(MTRStatusCompletion)completion; @@ -7213,9 +7213,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterOperationalCredentials : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)attestationRequestWithParams:(MTROperationalCredentialsClusterAttestationRequestParams *)params completion:(void (^)(MTROperationalCredentialsClusterAttestationResponseParams * _Nullable data, @@ -7434,9 +7434,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterGroupKeyManagement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)keySetWriteWithParams:(MTRGroupKeyManagementClusterKeySetWriteParams *)params completion:(MTRStatusCompletion)completion; - (void)keySetReadWithParams:(MTRGroupKeyManagementClusterKeySetReadParams *)params @@ -7610,9 +7610,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterFixedLabel : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeLabelListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion; /** @@ -7721,9 +7721,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterUserLabel : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeLabelListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion; - (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value completion:(MTRStatusCompletion)completion; @@ -7836,9 +7836,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterBooleanState : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeStateValueWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -7947,9 +7947,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterModeSelect : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)changeToModeWithParams:(MTRModeSelectClusterChangeToModeParams *)params completion:(MTRStatusCompletion)completion; @@ -8146,9 +8146,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterDoorLock : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)lockDoorWithParams:(MTRDoorLockClusterLockDoorParams * _Nullable)params completion:(MTRStatusCompletion)completion; - (void)unlockDoorWithParams:(MTRDoorLockClusterUnlockDoorParams * _Nullable)params completion:(MTRStatusCompletion)completion; @@ -8973,9 +8973,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterWindowCovering : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)upOrOpenWithParams:(MTRWindowCoveringClusterUpOrOpenParams * _Nullable)params completion:(MTRStatusCompletion)completion; - (void)upOrOpenWithCompletion:(MTRStatusCompletion)completion; @@ -9479,9 +9479,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterBarrierControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)barrierControlGoToPercentWithParams:(MTRBarrierControlClusterBarrierControlGoToPercentParams *)params completion:(MTRStatusCompletion)completion; @@ -9778,9 +9778,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterPumpConfigurationAndControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeMaxPressureWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -10256,9 +10256,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterThermostat : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)setpointRaiseLowerWithParams:(MTRThermostatClusterSetpointRaiseLowerParams *)params completion:(MTRStatusCompletion)completion; @@ -11322,9 +11322,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterFanControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeFanModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; - (void)writeAttributeFanModeWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion; @@ -11612,9 +11612,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterThermostatUserInterfaceConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeTemperatureDisplayModeWithCompletion:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completion; @@ -11773,9 +11773,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterColorControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)moveToHueWithParams:(MTRColorControlClusterMoveToHueParams *)params completion:(MTRStatusCompletion)completion; - (void)moveHueWithParams:(MTRColorControlClusterMoveHueParams *)params completion:(MTRStatusCompletion)completion; @@ -12797,9 +12797,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterBallastConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributePhysicalMinLevelWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -13161,9 +13161,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterIlluminanceMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeMeasuredValueWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -13336,9 +13336,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterTemperatureMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeMeasuredValueWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -13495,9 +13495,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterPressureMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeMeasuredValueWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -13732,9 +13732,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterFlowMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeMeasuredValueWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -13891,9 +13891,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterRelativeHumidityMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeMeasuredValueWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -14050,9 +14050,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterOccupancySensing : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeOccupancyWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion; /** @@ -14414,9 +14414,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterWakeOnLan : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeMACAddressWithCompletion:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completion; /** @@ -14525,9 +14525,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterChannel : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)changeChannelWithParams:(MTRChannelClusterChangeChannelParams *)params completion:(void (^)(MTRChannelClusterChangeChannelResponseParams * _Nullable data, @@ -14679,9 +14679,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterTargetNavigator : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)navigateTargetWithParams:(MTRTargetNavigatorClusterNavigateTargetParams *)params completion:(void (^)(MTRTargetNavigatorClusterNavigateTargetResponseParams * _Nullable data, @@ -14810,9 +14810,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterMediaPlayback : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)playWithParams:(MTRMediaPlaybackClusterPlayParams * _Nullable)params completion: @@ -15068,9 +15068,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterMediaInput : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)selectInputWithParams:(MTRMediaInputClusterSelectInputParams *)params completion:(MTRStatusCompletion)completion; - (void)showInputStatusWithParams:(MTRMediaInputClusterShowInputStatusParams * _Nullable)params @@ -15204,9 +15204,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterLowPower : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)sleepWithParams:(MTRLowPowerClusterSleepParams * _Nullable)params completion:(MTRStatusCompletion)completion; - (void)sleepWithCompletion:(MTRStatusCompletion)completion; @@ -15303,9 +15303,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterKeypadInput : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)sendKeyWithParams:(MTRKeypadInputClusterSendKeyParams *)params completion: @@ -15403,9 +15403,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterContentLauncher : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)launchContentWithParams:(MTRContentLauncherClusterLaunchContentParams *)params completion:(void (^)(MTRContentLauncherClusterLaunchResponseParams * _Nullable data, @@ -15544,9 +15544,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterAudioOutput : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)selectOutputWithParams:(MTRAudioOutputClusterSelectOutputParams *)params completion:(MTRStatusCompletion)completion; - (void)renameOutputWithParams:(MTRAudioOutputClusterRenameOutputParams *)params completion:(MTRStatusCompletion)completion; @@ -15674,9 +15674,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterApplicationLauncher : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)launchAppWithParams:(MTRApplicationLauncherClusterLaunchAppParams *)params completion:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, @@ -15818,9 +15818,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterApplicationBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)readAttributeVendorNameWithCompletion:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completion; /** @@ -16043,9 +16043,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterAccountLogin : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)getSetupPINWithParams:(MTRAccountLoginClusterGetSetupPINParams *)params completion:(void (^)(MTRAccountLoginClusterGetSetupPINResponseParams * _Nullable data, @@ -16146,9 +16146,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterElectricalMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)getProfileInfoCommandWithParams:(MTRElectricalMeasurementClusterGetProfileInfoCommandParams * _Nullable)params completion:(MTRStatusCompletion)completion; @@ -18487,9 +18487,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRBaseClusterTestCluster : MTRCluster -- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)testWithParams:(MTRTestClusterClusterTestParams * _Nullable)params completion:(MTRStatusCompletion)completion; - (void)testWithCompletion:(MTRStatusCompletion)completion; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h index ebb3da1bd0daed..c2b9221a493a4a 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h @@ -32,9 +32,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterIdentify : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)identifyWithParams:(MTRIdentifyClusterIdentifyParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -75,9 +75,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterGroups : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)addGroupWithParams:(MTRGroupsClusterAddGroupParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -133,9 +133,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterScenes : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)addSceneWithParams:(MTRScenesClusterAddSceneParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -219,9 +219,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterOnOff : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)offWithParams:(MTROnOffClusterOffParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -306,9 +306,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterOnOffSwitchConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeSwitchTypeWithParams:(MTRReadParams * _Nullable)params; @@ -340,9 +340,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterLevelControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)moveToLevelWithParams:(MTRLevelControlClusterMoveToLevelParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -465,9 +465,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterBinaryInputBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeActiveTextWithParams:(MTRReadParams * _Nullable)params; - (void)writeAttributeActiveTextWithValue:(NSDictionary *)dataValueDictionary @@ -538,9 +538,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterDescriptor : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeDeviceTypeListWithParams:(MTRReadParams * _Nullable)params; @@ -571,9 +571,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterBinding : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeBindingWithParams:(MTRReadParams * _Nullable)params; - (void)writeAttributeBindingWithValue:(NSDictionary *)dataValueDictionary @@ -603,9 +603,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterAccessControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeAclWithParams:(MTRReadParams * _Nullable)params; - (void)writeAttributeAclWithValue:(NSDictionary *)dataValueDictionary @@ -648,9 +648,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterActions : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)instantActionWithParams:(MTRActionsClusterInstantActionParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -728,9 +728,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)mfgSpecificPingWithParams:(MTRBasicClusterMfgSpecificPingParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -816,9 +816,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterOtaSoftwareUpdateProvider : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)queryImageWithParams:(MTROtaSoftwareUpdateProviderClusterQueryImageParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -856,9 +856,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterOtaSoftwareUpdateRequestor : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)announceOtaProviderWithParams:(MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -899,9 +899,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterLocalizationConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeActiveLocaleWithParams:(MTRReadParams * _Nullable)params; - (void)writeAttributeActiveLocaleWithValue:(NSDictionary *)dataValueDictionary @@ -933,9 +933,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterTimeFormatLocalization : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeHourFormatWithParams:(MTRReadParams * _Nullable)params; - (void)writeAttributeHourFormatWithValue:(NSDictionary *)dataValueDictionary @@ -974,9 +974,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterUnitLocalization : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeTemperatureUnitWithParams:(MTRReadParams * _Nullable)params; - (void)writeAttributeTemperatureUnitWithValue:(NSDictionary *)dataValueDictionary @@ -1006,9 +1006,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterPowerSourceConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeSourcesWithParams:(MTRReadParams * _Nullable)params; @@ -1033,9 +1033,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterPowerSource : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeStatusWithParams:(MTRReadParams * _Nullable)params; @@ -1120,9 +1120,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterGeneralCommissioning : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)armFailSafeWithParams:(MTRGeneralCommissioningClusterArmFailSafeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1183,9 +1183,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterNetworkCommissioning : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)scanNetworksWithParams:(MTRNetworkCommissioningClusterScanNetworksParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1260,9 +1260,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterDiagnosticLogs : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)retrieveLogsRequestWithParams:(MTRDiagnosticLogsClusterRetrieveLogsRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1291,9 +1291,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterGeneralDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)testEventTriggerWithParams:(MTRGeneralDiagnosticsClusterTestEventTriggerParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1339,9 +1339,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterSoftwareDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)resetWatermarksWithParams:(MTRSoftwareDiagnosticsClusterResetWatermarksParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1380,9 +1380,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterThreadNetworkDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)resetCountsWithParams:(MTRThreadNetworkDiagnosticsClusterResetCountsParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1539,9 +1539,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterWiFiNetworkDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)resetCountsWithParams:(MTRWiFiNetworkDiagnosticsClusterResetCountsParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1598,9 +1598,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterEthernetNetworkDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)resetCountsWithParams:(MTREthernetNetworkDiagnosticsClusterResetCountsParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1649,9 +1649,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterBridgedDeviceBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeVendorNameWithParams:(MTRReadParams * _Nullable)params; @@ -1709,9 +1709,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterSwitch : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeNumberOfPositionsWithParams:(MTRReadParams * _Nullable)params; @@ -1740,9 +1740,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterAdministratorCommissioning : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)openCommissioningWindowWithParams:(MTRAdministratorCommissioningClusterOpenCommissioningWindowParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1787,9 +1787,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterOperationalCredentials : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)attestationRequestWithParams:(MTROperationalCredentialsClusterAttestationRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1864,9 +1864,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterGroupKeyManagement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)keySetWriteWithParams:(MTRGroupKeyManagementClusterKeySetWriteParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -1921,9 +1921,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterFixedLabel : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeLabelListWithParams:(MTRReadParams * _Nullable)params; @@ -1948,9 +1948,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterUserLabel : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeLabelListWithParams:(MTRReadParams * _Nullable)params; - (void)writeAttributeLabelListWithValue:(NSDictionary *)dataValueDictionary @@ -1980,9 +1980,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterBooleanState : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeStateValueWithParams:(MTRReadParams * _Nullable)params; @@ -2007,9 +2007,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterModeSelect : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)changeToModeWithParams:(MTRModeSelectClusterChangeToModeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -2059,9 +2059,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterDoorLock : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)lockDoorWithParams:(MTRDoorLockClusterLockDoorParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -2324,9 +2324,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterWindowCovering : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)upOrOpenWithParams:(MTRWindowCoveringClusterUpOrOpenParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -2436,9 +2436,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterBarrierControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)barrierControlGoToPercentWithParams:(MTRBarrierControlClusterBarrierControlGoToPercentParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -2523,9 +2523,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterPumpConfigurationAndControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeMaxPressureWithParams:(MTRReadParams * _Nullable)params; @@ -2614,9 +2614,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterThermostat : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)setpointRaiseLowerWithParams:(MTRThermostatClusterSetpointRaiseLowerParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -2893,9 +2893,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterFanControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeFanModeWithParams:(MTRReadParams * _Nullable)params; - (void)writeAttributeFanModeWithValue:(NSDictionary *)dataValueDictionary @@ -2970,9 +2970,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterThermostatUserInterfaceConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeTemperatureDisplayModeWithParams:(MTRReadParams * _Nullable)params; - (void)writeAttributeTemperatureDisplayModeWithValue:(NSDictionary *)dataValueDictionary @@ -3016,9 +3016,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterColorControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)moveToHueWithParams:(MTRColorControlClusterMoveToHueParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -3287,9 +3287,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterBallastConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributePhysicalMinLevelWithParams:(MTRReadParams * _Nullable)params; @@ -3390,9 +3390,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterIlluminanceMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params; @@ -3425,9 +3425,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterTemperatureMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params; @@ -3458,9 +3458,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterPressureMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params; @@ -3501,9 +3501,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterFlowMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params; @@ -3534,9 +3534,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterRelativeHumidityMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params; @@ -3567,9 +3567,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterOccupancySensing : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeOccupancyWithParams:(MTRReadParams * _Nullable)params; @@ -3662,9 +3662,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterWakeOnLan : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeMACAddressWithParams:(MTRReadParams * _Nullable)params; @@ -3689,9 +3689,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterChannel : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)changeChannelWithParams:(MTRChannelClusterChangeChannelParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -3734,9 +3734,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterTargetNavigator : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)navigateTargetWithParams:(MTRTargetNavigatorClusterNavigateTargetParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -3769,9 +3769,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterMediaPlayback : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)playWithParams:(MTRMediaPlaybackClusterPlayParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -3896,9 +3896,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterMediaInput : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)selectInputWithParams:(MTRMediaInputClusterSelectInputParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -3948,9 +3948,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterLowPower : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)sleepWithParams:(MTRLowPowerClusterSleepParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -3981,9 +3981,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterKeypadInput : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)sendKeyWithParams:(MTRKeypadInputClusterSendKeyParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -4012,9 +4012,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterContentLauncher : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)launchContentWithParams:(MTRContentLauncherClusterLaunchContentParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -4057,9 +4057,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterAudioOutput : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)selectOutputWithParams:(MTRAudioOutputClusterSelectOutputParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -4095,9 +4095,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterApplicationLauncher : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)launchAppWithParams:(MTRApplicationLauncherClusterLaunchAppParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -4145,9 +4145,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterApplicationBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (NSDictionary *)readAttributeVendorNameWithParams:(MTRReadParams * _Nullable)params; @@ -4186,9 +4186,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterAccountLogin : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)getSetupPINWithParams:(MTRAccountLoginClusterGetSetupPINParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -4228,9 +4228,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterElectricalMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)getProfileInfoCommandWithParams:(MTRElectricalMeasurementClusterGetProfileInfoCommandParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries @@ -4561,9 +4561,9 @@ NS_ASSUME_NONNULL_BEGIN */ @interface MTRClusterTestCluster : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; +- (instancetype _Nullable)initWithDevice:(MTRDevice *)device + endpoint:(NSNumber *)endpoint + queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (void)testWithParams:(MTRTestClusterClusterTestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h index e299b9c782e8e1..a7c1fa96dfc987 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h @@ -40,7 +40,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRIdentifyClusterTriggerEffectParams : NSObject @@ -64,7 +64,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterAddGroupParams : NSObject @@ -88,7 +88,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterAddGroupResponseParams : NSObject @@ -112,7 +112,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterViewGroupParams : NSObject @@ -134,7 +134,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterViewGroupResponseParams : NSObject @@ -160,7 +160,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterGetGroupMembershipParams : NSObject @@ -182,7 +182,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterGetGroupMembershipResponseParams : NSObject @@ -206,7 +206,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterRemoveGroupParams : NSObject @@ -228,7 +228,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterRemoveGroupResponseParams : NSObject @@ -252,7 +252,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterRemoveAllGroupsParams : NSObject /** @@ -272,7 +272,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupsClusterAddGroupIfIdentifyingParams : NSObject @@ -296,7 +296,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterAddSceneParams : NSObject @@ -326,7 +326,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterAddSceneResponseParams : NSObject @@ -352,7 +352,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterViewSceneParams : NSObject @@ -376,7 +376,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterViewSceneResponseParams : NSObject @@ -408,7 +408,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterRemoveSceneParams : NSObject @@ -432,7 +432,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterRemoveSceneResponseParams : NSObject @@ -458,7 +458,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterRemoveAllScenesParams : NSObject @@ -480,7 +480,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterRemoveAllScenesResponseParams : NSObject @@ -504,7 +504,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterStoreSceneParams : NSObject @@ -528,7 +528,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterStoreSceneResponseParams : NSObject @@ -554,7 +554,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterRecallSceneParams : NSObject @@ -580,7 +580,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterGetSceneMembershipParams : NSObject @@ -602,7 +602,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterGetSceneMembershipResponseParams : NSObject @@ -630,7 +630,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterEnhancedAddSceneParams : NSObject @@ -660,7 +660,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterEnhancedAddSceneResponseParams : NSObject @@ -686,7 +686,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterEnhancedViewSceneParams : NSObject @@ -710,7 +710,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterEnhancedViewSceneResponseParams : NSObject @@ -742,7 +742,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterCopySceneParams : NSObject @@ -772,7 +772,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterCopySceneResponseParams : NSObject @@ -798,7 +798,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROnOffClusterOffParams : NSObject /** @@ -818,7 +818,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROnOffClusterOnParams : NSObject /** @@ -838,7 +838,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROnOffClusterToggleParams : NSObject /** @@ -858,7 +858,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROnOffClusterOffWithEffectParams : NSObject @@ -882,7 +882,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROnOffClusterOnWithRecallGlobalSceneParams : NSObject /** @@ -902,7 +902,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROnOffClusterOnWithTimedOffParams : NSObject @@ -928,7 +928,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLevelControlClusterMoveToLevelParams : NSObject @@ -956,7 +956,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLevelControlClusterMoveParams : NSObject @@ -984,7 +984,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLevelControlClusterStepParams : NSObject @@ -1014,7 +1014,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLevelControlClusterStopParams : NSObject @@ -1038,7 +1038,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLevelControlClusterMoveToLevelWithOnOffParams : NSObject @@ -1066,7 +1066,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLevelControlClusterMoveWithOnOffParams : NSObject @@ -1094,7 +1094,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLevelControlClusterStepWithOnOffParams : NSObject @@ -1124,7 +1124,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLevelControlClusterStopWithOnOffParams : NSObject @@ -1148,7 +1148,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLevelControlClusterMoveToClosestFrequencyParams : NSObject @@ -1170,7 +1170,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterInstantActionParams : NSObject @@ -1194,7 +1194,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterInstantActionWithTransitionParams : NSObject @@ -1220,7 +1220,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterStartActionParams : NSObject @@ -1244,7 +1244,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterStartActionWithDurationParams : NSObject @@ -1270,7 +1270,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterStopActionParams : NSObject @@ -1294,7 +1294,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterPauseActionParams : NSObject @@ -1318,7 +1318,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterPauseActionWithDurationParams : NSObject @@ -1344,7 +1344,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterResumeActionParams : NSObject @@ -1368,7 +1368,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterEnableActionParams : NSObject @@ -1392,7 +1392,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterEnableActionWithDurationParams : NSObject @@ -1418,7 +1418,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterDisableActionParams : NSObject @@ -1442,7 +1442,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterDisableActionWithDurationParams : NSObject @@ -1468,7 +1468,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBasicClusterMfgSpecificPingParams : NSObject /** @@ -1488,7 +1488,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateProviderClusterQueryImageParams : NSObject @@ -1524,7 +1524,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams : NSObject @@ -1560,7 +1560,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateProviderClusterApplyUpdateRequestParams : NSObject @@ -1584,7 +1584,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseParams : NSObject @@ -1608,7 +1608,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams : NSObject @@ -1632,7 +1632,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams : NSObject @@ -1662,7 +1662,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralCommissioningClusterArmFailSafeParams : NSObject @@ -1686,7 +1686,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralCommissioningClusterArmFailSafeResponseParams : NSObject @@ -1710,7 +1710,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralCommissioningClusterSetRegulatoryConfigParams : NSObject @@ -1736,7 +1736,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams : NSObject @@ -1760,7 +1760,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralCommissioningClusterCommissioningCompleteParams : NSObject /** @@ -1780,7 +1780,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralCommissioningClusterCommissioningCompleteResponseParams : NSObject @@ -1804,7 +1804,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterScanNetworksParams : NSObject @@ -1828,7 +1828,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterScanNetworksResponseParams : NSObject @@ -1856,7 +1856,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams : NSObject @@ -1882,7 +1882,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams : NSObject @@ -1906,7 +1906,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterRemoveNetworkParams : NSObject @@ -1930,7 +1930,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterNetworkConfigResponseParams : NSObject @@ -1956,7 +1956,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterConnectNetworkParams : NSObject @@ -1980,7 +1980,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterConnectNetworkResponseParams : NSObject @@ -2006,7 +2006,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterReorderNetworkParams : NSObject @@ -2032,7 +2032,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDiagnosticLogsClusterRetrieveLogsRequestParams : NSObject @@ -2058,7 +2058,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDiagnosticLogsClusterRetrieveLogsResponseParams : NSObject @@ -2086,7 +2086,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralDiagnosticsClusterTestEventTriggerParams : NSObject @@ -2110,7 +2110,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSoftwareDiagnosticsClusterResetWatermarksParams : NSObject /** @@ -2130,7 +2130,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThreadNetworkDiagnosticsClusterResetCountsParams : NSObject /** @@ -2150,7 +2150,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWiFiNetworkDiagnosticsClusterResetCountsParams : NSObject /** @@ -2170,7 +2170,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTREthernetNetworkDiagnosticsClusterResetCountsParams : NSObject /** @@ -2190,7 +2190,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTimeSynchronizationClusterSetUtcTimeParams : NSObject @@ -2216,7 +2216,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAdministratorCommissioningClusterOpenCommissioningWindowParams : NSObject @@ -2246,7 +2246,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams : NSObject @@ -2268,7 +2268,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAdministratorCommissioningClusterRevokeCommissioningParams : NSObject /** @@ -2288,7 +2288,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterAttestationRequestParams : NSObject @@ -2310,7 +2310,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterAttestationResponseParams : NSObject @@ -2334,7 +2334,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterCertificateChainRequestParams : NSObject @@ -2356,7 +2356,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterCertificateChainResponseParams : NSObject @@ -2378,7 +2378,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterCSRRequestParams : NSObject @@ -2402,7 +2402,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterCSRResponseParams : NSObject @@ -2426,7 +2426,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterAddNOCParams : NSObject @@ -2456,7 +2456,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterUpdateNOCParams : NSObject @@ -2480,7 +2480,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterNOCResponseParams : NSObject @@ -2506,7 +2506,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterUpdateFabricLabelParams : NSObject @@ -2528,7 +2528,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterRemoveFabricParams : NSObject @@ -2550,7 +2550,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterAddTrustedRootCertificateParams : NSObject @@ -2572,7 +2572,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupKeyManagementClusterKeySetWriteParams : NSObject @@ -2594,7 +2594,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupKeyManagementClusterKeySetReadParams : NSObject @@ -2616,7 +2616,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupKeyManagementClusterKeySetReadResponseParams : NSObject @@ -2638,7 +2638,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupKeyManagementClusterKeySetRemoveParams : NSObject @@ -2660,7 +2660,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupKeyManagementClusterKeySetReadAllIndicesParams : NSObject @@ -2682,7 +2682,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams : NSObject @@ -2704,7 +2704,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRModeSelectClusterChangeToModeParams : NSObject @@ -2726,7 +2726,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterLockDoorParams : NSObject @@ -2748,7 +2748,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterUnlockDoorParams : NSObject @@ -2770,7 +2770,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterUnlockWithTimeoutParams : NSObject @@ -2794,7 +2794,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterSetWeekDayScheduleParams : NSObject @@ -2828,7 +2828,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetWeekDayScheduleParams : NSObject @@ -2852,7 +2852,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetWeekDayScheduleResponseParams : NSObject @@ -2888,7 +2888,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterClearWeekDayScheduleParams : NSObject @@ -2912,7 +2912,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterSetYearDayScheduleParams : NSObject @@ -2940,7 +2940,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetYearDayScheduleParams : NSObject @@ -2964,7 +2964,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetYearDayScheduleResponseParams : NSObject @@ -2994,7 +2994,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterClearYearDayScheduleParams : NSObject @@ -3018,7 +3018,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterSetHolidayScheduleParams : NSObject @@ -3046,7 +3046,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetHolidayScheduleParams : NSObject @@ -3068,7 +3068,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetHolidayScheduleResponseParams : NSObject @@ -3098,7 +3098,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterClearHolidayScheduleParams : NSObject @@ -3120,7 +3120,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterSetUserParams : NSObject @@ -3154,7 +3154,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetUserParams : NSObject @@ -3176,7 +3176,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetUserResponseParams : NSObject @@ -3216,7 +3216,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterClearUserParams : NSObject @@ -3238,7 +3238,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterSetCredentialParams : NSObject @@ -3270,7 +3270,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterSetCredentialResponseParams : NSObject @@ -3296,7 +3296,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetCredentialStatusParams : NSObject @@ -3318,7 +3318,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterGetCredentialStatusResponseParams : NSObject @@ -3348,7 +3348,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterClearCredentialParams : NSObject @@ -3370,7 +3370,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWindowCoveringClusterUpOrOpenParams : NSObject /** @@ -3390,7 +3390,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWindowCoveringClusterDownOrCloseParams : NSObject /** @@ -3410,7 +3410,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWindowCoveringClusterStopMotionParams : NSObject /** @@ -3430,7 +3430,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWindowCoveringClusterGoToLiftValueParams : NSObject @@ -3452,7 +3452,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWindowCoveringClusterGoToLiftPercentageParams : NSObject @@ -3474,7 +3474,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWindowCoveringClusterGoToTiltValueParams : NSObject @@ -3496,7 +3496,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWindowCoveringClusterGoToTiltPercentageParams : NSObject @@ -3518,7 +3518,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBarrierControlClusterBarrierControlGoToPercentParams : NSObject @@ -3540,7 +3540,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBarrierControlClusterBarrierControlStopParams : NSObject /** @@ -3560,7 +3560,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThermostatClusterSetpointRaiseLowerParams : NSObject @@ -3584,7 +3584,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThermostatClusterGetWeeklyScheduleResponseParams : NSObject @@ -3612,7 +3612,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThermostatClusterSetWeeklyScheduleParams : NSObject @@ -3640,7 +3640,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThermostatClusterGetWeeklyScheduleParams : NSObject @@ -3664,7 +3664,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThermostatClusterClearWeeklyScheduleParams : NSObject /** @@ -3684,7 +3684,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterMoveToHueParams : NSObject @@ -3714,7 +3714,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterMoveHueParams : NSObject @@ -3742,7 +3742,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterStepHueParams : NSObject @@ -3772,7 +3772,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterMoveToSaturationParams : NSObject @@ -3800,7 +3800,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterMoveSaturationParams : NSObject @@ -3828,7 +3828,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterStepSaturationParams : NSObject @@ -3858,7 +3858,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterMoveToHueAndSaturationParams : NSObject @@ -3888,7 +3888,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterMoveToColorParams : NSObject @@ -3918,7 +3918,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterMoveColorParams : NSObject @@ -3946,7 +3946,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterStepColorParams : NSObject @@ -3976,7 +3976,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterMoveToColorTemperatureParams : NSObject @@ -4004,7 +4004,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterEnhancedMoveToHueParams : NSObject @@ -4034,7 +4034,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterEnhancedMoveHueParams : NSObject @@ -4062,7 +4062,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterEnhancedStepHueParams : NSObject @@ -4092,7 +4092,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterEnhancedMoveToHueAndSaturationParams : NSObject @@ -4122,7 +4122,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterColorLoopSetParams : NSObject @@ -4156,7 +4156,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterStopMoveStepParams : NSObject @@ -4180,7 +4180,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterMoveColorTemperatureParams : NSObject @@ -4212,7 +4212,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRColorControlClusterStepColorTemperatureParams : NSObject @@ -4246,7 +4246,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRChannelClusterChangeChannelParams : NSObject @@ -4268,7 +4268,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRChannelClusterChangeChannelResponseParams : NSObject @@ -4292,7 +4292,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRChannelClusterChangeChannelByNumberParams : NSObject @@ -4316,7 +4316,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRChannelClusterSkipChannelParams : NSObject @@ -4338,7 +4338,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTargetNavigatorClusterNavigateTargetParams : NSObject @@ -4362,7 +4362,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTargetNavigatorClusterNavigateTargetResponseParams : NSObject @@ -4386,7 +4386,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterPlayParams : NSObject /** @@ -4406,7 +4406,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterPauseParams : NSObject /** @@ -4426,7 +4426,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterStopPlaybackParams : NSObject /** @@ -4446,7 +4446,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterStartOverParams : NSObject /** @@ -4466,7 +4466,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterPreviousParams : NSObject /** @@ -4486,7 +4486,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterNextParams : NSObject /** @@ -4506,7 +4506,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterRewindParams : NSObject /** @@ -4526,7 +4526,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterFastForwardParams : NSObject /** @@ -4546,7 +4546,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterSkipForwardParams : NSObject @@ -4568,7 +4568,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterSkipBackwardParams : NSObject @@ -4590,7 +4590,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterPlaybackResponseParams : NSObject @@ -4614,7 +4614,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterSeekParams : NSObject @@ -4636,7 +4636,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaInputClusterSelectInputParams : NSObject @@ -4658,7 +4658,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaInputClusterShowInputStatusParams : NSObject /** @@ -4678,7 +4678,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaInputClusterHideInputStatusParams : NSObject /** @@ -4698,7 +4698,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaInputClusterRenameInputParams : NSObject @@ -4722,7 +4722,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRLowPowerClusterSleepParams : NSObject /** @@ -4742,7 +4742,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRKeypadInputClusterSendKeyParams : NSObject @@ -4764,7 +4764,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRKeypadInputClusterSendKeyResponseParams : NSObject @@ -4786,7 +4786,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRContentLauncherClusterLaunchContentParams : NSObject @@ -4812,7 +4812,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRContentLauncherClusterLaunchURLParams : NSObject @@ -4838,7 +4838,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRContentLauncherClusterLaunchResponseParams : NSObject @@ -4862,7 +4862,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAudioOutputClusterSelectOutputParams : NSObject @@ -4884,7 +4884,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAudioOutputClusterRenameOutputParams : NSObject @@ -4908,7 +4908,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRApplicationLauncherClusterLaunchAppParams : NSObject @@ -4932,7 +4932,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRApplicationLauncherClusterStopAppParams : NSObject @@ -4954,7 +4954,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRApplicationLauncherClusterHideAppParams : NSObject @@ -4976,7 +4976,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRApplicationLauncherClusterLauncherResponseParams : NSObject @@ -5000,7 +5000,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAccountLoginClusterGetSetupPINParams : NSObject @@ -5022,7 +5022,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAccountLoginClusterGetSetupPINResponseParams : NSObject @@ -5044,7 +5044,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAccountLoginClusterLoginParams : NSObject @@ -5068,7 +5068,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAccountLoginClusterLogoutParams : NSObject /** @@ -5088,7 +5088,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRElectricalMeasurementClusterGetProfileInfoResponseCommandParams : NSObject @@ -5116,7 +5116,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRElectricalMeasurementClusterGetProfileInfoCommandParams : NSObject /** @@ -5136,7 +5136,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams : NSObject @@ -5168,7 +5168,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRElectricalMeasurementClusterGetMeasurementProfileCommandParams : NSObject @@ -5194,7 +5194,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestParams : NSObject /** @@ -5214,7 +5214,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestSpecificResponseParams : NSObject @@ -5236,7 +5236,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestNotHandledParams : NSObject /** @@ -5256,7 +5256,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestAddArgumentsResponseParams : NSObject @@ -5278,7 +5278,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestSpecificParams : NSObject /** @@ -5298,7 +5298,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestSimpleArgumentResponseParams : NSObject @@ -5320,7 +5320,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestUnknownCommandParams : NSObject /** @@ -5340,7 +5340,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestStructArrayArgumentResponseParams : NSObject @@ -5372,7 +5372,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestAddArgumentsParams : NSObject @@ -5396,7 +5396,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestListInt8UReverseResponseParams : NSObject @@ -5418,7 +5418,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestSimpleArgumentRequestParams : NSObject @@ -5440,7 +5440,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestEnumsResponseParams : NSObject @@ -5464,7 +5464,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestStructArrayArgumentRequestParams : NSObject @@ -5496,7 +5496,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestNullableOptionalResponseParams : NSObject @@ -5524,7 +5524,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestStructArgumentRequestParams : NSObject @@ -5546,7 +5546,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestComplexNullableOptionalResponseParams : NSObject @@ -5622,7 +5622,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestNestedStructArgumentRequestParams : NSObject @@ -5644,7 +5644,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterBooleanResponseParams : NSObject @@ -5666,7 +5666,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestListStructArgumentRequestParams : NSObject @@ -5688,7 +5688,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterSimpleStructResponseParams : NSObject @@ -5710,7 +5710,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestListInt8UArgumentRequestParams : NSObject @@ -5732,7 +5732,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestEmitTestEventResponseParams : NSObject @@ -5754,7 +5754,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestNestedStructListArgumentRequestParams : NSObject @@ -5776,7 +5776,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestEmitTestFabricScopedEventResponseParams : NSObject @@ -5798,7 +5798,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestListNestedStructListArgumentRequestParams : NSObject @@ -5820,7 +5820,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestListInt8UReverseRequestParams : NSObject @@ -5842,7 +5842,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestEnumsRequestParams : NSObject @@ -5866,7 +5866,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestNullableOptionalRequestParams : NSObject @@ -5888,7 +5888,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestComplexNullableOptionalRequestParams : NSObject @@ -5932,7 +5932,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterSimpleStructEchoRequestParams : NSObject @@ -5954,7 +5954,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTimedInvokeRequestParams : NSObject /** @@ -5974,7 +5974,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams : NSObject @@ -5996,7 +5996,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestEmitTestEventRequestParams : NSObject @@ -6022,7 +6022,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestEmitTestFabricScopedEventRequestParams : NSObject @@ -6044,7 +6044,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRFaultInjectionClusterFailAtFaultParams : NSObject @@ -6074,7 +6074,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRFaultInjectionClusterFailRandomlyAtFaultParams : NSObject @@ -6100,7 +6100,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm index 926e14e675ca8f..d6f6c8e1eece18 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm @@ -30,7 +30,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRIdentifyClusterIdentifyParams alloc] init]; @@ -61,7 +61,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -93,7 +93,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterAddGroupParams alloc] init]; @@ -125,7 +125,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterAddGroupResponseParams alloc] init]; @@ -155,7 +155,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -187,7 +187,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterViewGroupResponseParams alloc] init]; @@ -218,7 +218,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterGetGroupMembershipParams alloc] init]; @@ -248,7 +248,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterGetGroupMembershipResponseParams alloc] init]; @@ -278,7 +278,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterRemoveGroupParams alloc] init]; @@ -308,7 +308,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterRemoveGroupResponseParams alloc] init]; @@ -336,7 +336,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterRemoveAllGroupsParams alloc] init]; @@ -365,7 +365,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupsClusterAddGroupIfIdentifyingParams alloc] init]; @@ -403,7 +403,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterAddSceneParams alloc] init]; @@ -441,7 +441,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterAddSceneResponseParams alloc] init]; @@ -474,7 +474,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterViewSceneParams alloc] init]; @@ -514,7 +514,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterViewSceneResponseParams alloc] init]; @@ -551,7 +551,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterRemoveSceneParams alloc] init]; @@ -585,7 +585,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterRemoveSceneResponseParams alloc] init]; @@ -616,7 +616,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterRemoveAllScenesParams alloc] init]; @@ -646,7 +646,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterRemoveAllScenesResponseParams alloc] init]; @@ -678,7 +678,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterStoreSceneParams alloc] init]; @@ -712,7 +712,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterStoreSceneResponseParams alloc] init]; @@ -747,7 +747,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterRecallSceneParams alloc] init]; @@ -778,7 +778,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterGetSceneMembershipParams alloc] init]; @@ -812,7 +812,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterGetSceneMembershipResponseParams alloc] init]; @@ -852,7 +852,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterEnhancedAddSceneParams alloc] init]; @@ -890,7 +890,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterEnhancedAddSceneResponseParams alloc] init]; @@ -923,7 +923,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterEnhancedViewSceneParams alloc] init]; @@ -963,7 +963,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterEnhancedViewSceneResponseParams alloc] init]; @@ -1006,7 +1006,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterCopySceneParams alloc] init]; @@ -1044,7 +1044,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRScenesClusterCopySceneResponseParams alloc] init]; @@ -1073,7 +1073,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROnOffClusterOffParams alloc] init]; @@ -1098,7 +1098,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROnOffClusterOnParams alloc] init]; @@ -1123,7 +1123,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROnOffClusterToggleParams alloc] init]; @@ -1152,7 +1152,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROnOffClusterOffWithEffectParams alloc] init]; @@ -1180,7 +1180,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROnOffClusterOnWithRecallGlobalSceneParams alloc] init]; @@ -1211,7 +1211,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROnOffClusterOnWithTimedOffParams alloc] init]; @@ -1248,7 +1248,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -1287,7 +1287,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLevelControlClusterMoveParams alloc] init]; @@ -1327,7 +1327,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLevelControlClusterStepParams alloc] init]; @@ -1363,7 +1363,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLevelControlClusterStopParams alloc] init]; @@ -1399,7 +1399,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; @@ -1438,7 +1438,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLevelControlClusterMoveWithOnOffParams alloc] init]; @@ -1478,7 +1478,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLevelControlClusterStepWithOnOffParams alloc] init]; @@ -1514,7 +1514,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLevelControlClusterStopWithOnOffParams alloc] init]; @@ -1544,7 +1544,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLevelControlClusterMoveToClosestFrequencyParams alloc] init]; @@ -1574,7 +1574,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterInstantActionParams alloc] init]; @@ -1608,7 +1608,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterInstantActionWithTransitionParams alloc] init]; @@ -1641,7 +1641,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterStartActionParams alloc] init]; @@ -1675,7 +1675,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterStartActionWithDurationParams alloc] init]; @@ -1708,7 +1708,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterStopActionParams alloc] init]; @@ -1740,7 +1740,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterPauseActionParams alloc] init]; @@ -1774,7 +1774,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterPauseActionWithDurationParams alloc] init]; @@ -1807,7 +1807,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterResumeActionParams alloc] init]; @@ -1839,7 +1839,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterEnableActionParams alloc] init]; @@ -1873,7 +1873,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterEnableActionWithDurationParams alloc] init]; @@ -1906,7 +1906,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterDisableActionParams alloc] init]; @@ -1940,7 +1940,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRActionsClusterDisableActionWithDurationParams alloc] init]; @@ -1969,7 +1969,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRBasicClusterMfgSpecificPingParams alloc] init]; @@ -2010,7 +2010,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROtaSoftwareUpdateProviderClusterQueryImageParams alloc] init]; @@ -2063,7 +2063,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams alloc] init]; @@ -2105,7 +2105,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROtaSoftwareUpdateProviderClusterApplyUpdateRequestParams alloc] init]; @@ -2138,7 +2138,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseParams alloc] init]; @@ -2170,7 +2170,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams alloc] init]; @@ -2209,7 +2209,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams alloc] init]; @@ -2246,7 +2246,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; @@ -2278,7 +2278,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGeneralCommissioningClusterArmFailSafeResponseParams alloc] init]; @@ -2312,7 +2312,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGeneralCommissioningClusterSetRegulatoryConfigParams alloc] init]; @@ -2345,7 +2345,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams alloc] init]; @@ -2373,7 +2373,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGeneralCommissioningClusterCommissioningCompleteParams alloc] init]; @@ -2402,7 +2402,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGeneralCommissioningClusterCommissioningCompleteResponseParams alloc] init]; @@ -2434,7 +2434,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRNetworkCommissioningClusterScanNetworksParams alloc] init]; @@ -2470,7 +2470,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRNetworkCommissioningClusterScanNetworksResponseParams alloc] init]; @@ -2507,7 +2507,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams alloc] init]; @@ -2541,7 +2541,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams alloc] init]; @@ -2574,7 +2574,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRNetworkCommissioningClusterRemoveNetworkParams alloc] init]; @@ -2609,7 +2609,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRNetworkCommissioningClusterNetworkConfigResponseParams alloc] init]; @@ -2642,7 +2642,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRNetworkCommissioningClusterConnectNetworkParams alloc] init]; @@ -2677,7 +2677,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRNetworkCommissioningClusterConnectNetworkResponseParams alloc] init]; @@ -2712,7 +2712,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRNetworkCommissioningClusterReorderNetworkParams alloc] init]; @@ -2748,7 +2748,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDiagnosticLogsClusterRetrieveLogsRequestParams alloc] init]; @@ -2786,7 +2786,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDiagnosticLogsClusterRetrieveLogsResponseParams alloc] init]; @@ -2821,7 +2821,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; @@ -2850,7 +2850,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRSoftwareDiagnosticsClusterResetWatermarksParams alloc] init]; @@ -2875,7 +2875,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRThreadNetworkDiagnosticsClusterResetCountsParams alloc] init]; @@ -2900,7 +2900,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRWiFiNetworkDiagnosticsClusterResetCountsParams alloc] init]; @@ -2925,7 +2925,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTREthernetNetworkDiagnosticsClusterResetCountsParams alloc] init]; @@ -2956,7 +2956,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTimeSynchronizationClusterSetUtcTimeParams alloc] init]; @@ -2995,7 +2995,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRAdministratorCommissioningClusterOpenCommissioningWindowParams alloc] init]; @@ -3030,7 +3030,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; @@ -3057,7 +3057,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRAdministratorCommissioningClusterRevokeCommissioningParams alloc] init]; @@ -3084,7 +3084,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterAttestationRequestParams alloc] init]; @@ -3115,7 +3115,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterAttestationResponseParams alloc] init]; @@ -3146,7 +3146,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterCertificateChainRequestParams alloc] init]; @@ -3175,7 +3175,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterCertificateChainResponseParams alloc] init]; @@ -3206,7 +3206,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterCSRRequestParams alloc] init]; @@ -3239,7 +3239,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterCSRResponseParams alloc] init]; @@ -3278,7 +3278,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterAddNOCParams alloc] init]; @@ -3316,7 +3316,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterUpdateNOCParams alloc] init]; @@ -3351,7 +3351,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterNOCResponseParams alloc] init]; @@ -3382,7 +3382,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterUpdateFabricLabelParams alloc] init]; @@ -3410,7 +3410,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; @@ -3439,7 +3439,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTROperationalCredentialsClusterAddTrustedRootCertificateParams alloc] init]; @@ -3468,7 +3468,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupKeyManagementClusterKeySetWriteParams alloc] init]; @@ -3497,7 +3497,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; @@ -3526,7 +3526,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupKeyManagementClusterKeySetReadResponseParams alloc] init]; @@ -3555,7 +3555,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupKeyManagementClusterKeySetRemoveParams alloc] init]; @@ -3584,7 +3584,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupKeyManagementClusterKeySetReadAllIndicesParams alloc] init]; @@ -3613,7 +3613,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams alloc] init]; @@ -3642,7 +3642,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRModeSelectClusterChangeToModeParams alloc] init]; @@ -3670,7 +3670,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -3699,7 +3699,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; @@ -3730,7 +3730,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterUnlockWithTimeoutParams alloc] init]; @@ -3772,7 +3772,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -3811,7 +3811,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -3855,7 +3855,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetWeekDayScheduleResponseParams alloc] init]; @@ -3895,7 +3895,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -3931,7 +3931,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -3966,7 +3966,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -4004,7 +4004,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetYearDayScheduleResponseParams alloc] init]; @@ -4040,7 +4040,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; @@ -4076,7 +4076,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; @@ -4109,7 +4109,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -4146,7 +4146,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetHolidayScheduleResponseParams alloc] init]; @@ -4180,7 +4180,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; @@ -4221,7 +4221,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -4259,7 +4259,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -4305,7 +4305,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetUserResponseParams alloc] init]; @@ -4346,7 +4346,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterClearUserParams alloc] init]; @@ -4384,7 +4384,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -4424,7 +4424,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterSetCredentialResponseParams alloc] init]; @@ -4455,7 +4455,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -4492,7 +4492,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterGetCredentialStatusResponseParams alloc] init]; @@ -4528,7 +4528,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -4555,7 +4555,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRWindowCoveringClusterUpOrOpenParams alloc] init]; @@ -4580,7 +4580,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRWindowCoveringClusterDownOrCloseParams alloc] init]; @@ -4605,7 +4605,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRWindowCoveringClusterStopMotionParams alloc] init]; @@ -4632,7 +4632,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRWindowCoveringClusterGoToLiftValueParams alloc] init]; @@ -4660,7 +4660,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; @@ -4689,7 +4689,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRWindowCoveringClusterGoToTiltValueParams alloc] init]; @@ -4717,7 +4717,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; @@ -4746,7 +4746,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRBarrierControlClusterBarrierControlGoToPercentParams alloc] init]; @@ -4773,7 +4773,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRBarrierControlClusterBarrierControlStopParams alloc] init]; @@ -4802,7 +4802,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; @@ -4838,7 +4838,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRThermostatClusterGetWeeklyScheduleResponseParams alloc] init]; @@ -4877,7 +4877,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRThermostatClusterSetWeeklyScheduleParams alloc] init]; @@ -4912,7 +4912,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRThermostatClusterGetWeeklyScheduleParams alloc] init]; @@ -4940,7 +4940,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRThermostatClusterClearWeeklyScheduleParams alloc] init]; @@ -4975,7 +4975,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterMoveToHueParams alloc] init]; @@ -5015,7 +5015,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterMoveHueParams alloc] init]; @@ -5055,7 +5055,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterStepHueParams alloc] init]; @@ -5095,7 +5095,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterMoveToSaturationParams alloc] init]; @@ -5134,7 +5134,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterMoveSaturationParams alloc] init]; @@ -5174,7 +5174,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterStepSaturationParams alloc] init]; @@ -5216,7 +5216,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterMoveToHueAndSaturationParams alloc] init]; @@ -5258,7 +5258,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterMoveToColorParams alloc] init]; @@ -5298,7 +5298,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterMoveColorParams alloc] init]; @@ -5338,7 +5338,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterStepColorParams alloc] init]; @@ -5378,7 +5378,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterMoveToColorTemperatureParams alloc] init]; @@ -5419,7 +5419,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; @@ -5459,7 +5459,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; @@ -5499,7 +5499,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterEnhancedStepHueParams alloc] init]; @@ -5541,7 +5541,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterEnhancedMoveToHueAndSaturationParams alloc] init]; @@ -5587,7 +5587,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterColorLoopSetParams alloc] init]; @@ -5626,7 +5626,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterStopMoveStepParams alloc] init]; @@ -5666,7 +5666,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; @@ -5715,7 +5715,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRColorControlClusterStepColorTemperatureParams alloc] init]; @@ -5753,7 +5753,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRChannelClusterChangeChannelParams alloc] init]; @@ -5783,7 +5783,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRChannelClusterChangeChannelResponseParams alloc] init]; @@ -5815,7 +5815,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRChannelClusterChangeChannelByNumberParams alloc] init]; @@ -5845,7 +5845,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRChannelClusterSkipChannelParams alloc] init]; @@ -5875,7 +5875,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTargetNavigatorClusterNavigateTargetParams alloc] init]; @@ -5907,7 +5907,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTargetNavigatorClusterNavigateTargetResponseParams alloc] init]; @@ -5935,7 +5935,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterPlayParams alloc] init]; @@ -5960,7 +5960,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterPauseParams alloc] init]; @@ -5985,7 +5985,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterStopPlaybackParams alloc] init]; @@ -6010,7 +6010,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterStartOverParams alloc] init]; @@ -6035,7 +6035,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterPreviousParams alloc] init]; @@ -6060,7 +6060,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterNextParams alloc] init]; @@ -6085,7 +6085,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterRewindParams alloc] init]; @@ -6110,7 +6110,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterFastForwardParams alloc] init]; @@ -6137,7 +6137,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterSkipForwardParams alloc] init]; @@ -6166,7 +6166,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterSkipBackwardParams alloc] init]; @@ -6197,7 +6197,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterPlaybackResponseParams alloc] init]; @@ -6227,7 +6227,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaPlaybackClusterSeekParams alloc] init]; @@ -6255,7 +6255,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaInputClusterSelectInputParams alloc] init]; @@ -6281,7 +6281,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaInputClusterShowInputStatusParams alloc] init]; @@ -6306,7 +6306,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaInputClusterHideInputStatusParams alloc] init]; @@ -6335,7 +6335,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRMediaInputClusterRenameInputParams alloc] init]; @@ -6363,7 +6363,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRLowPowerClusterSleepParams alloc] init]; @@ -6390,7 +6390,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -6418,7 +6418,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRKeypadInputClusterSendKeyResponseParams alloc] init]; @@ -6450,7 +6450,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRContentLauncherClusterLaunchContentParams alloc] init]; @@ -6485,7 +6485,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRContentLauncherClusterLaunchURLParams alloc] init]; @@ -6518,7 +6518,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRContentLauncherClusterLaunchResponseParams alloc] init]; @@ -6548,7 +6548,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRAudioOutputClusterSelectOutputParams alloc] init]; @@ -6578,7 +6578,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRAudioOutputClusterRenameOutputParams alloc] init]; @@ -6610,7 +6610,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRApplicationLauncherClusterLaunchAppParams alloc] init]; @@ -6640,7 +6640,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRApplicationLauncherClusterStopAppParams alloc] init]; @@ -6669,7 +6669,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRApplicationLauncherClusterHideAppParams alloc] init]; @@ -6700,7 +6700,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRApplicationLauncherClusterLauncherResponseParams alloc] init]; @@ -6730,7 +6730,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRAccountLoginClusterGetSetupPINParams alloc] init]; @@ -6759,7 +6759,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRAccountLoginClusterGetSetupPINResponseParams alloc] init]; @@ -6789,7 +6789,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRAccountLoginClusterLoginParams alloc] init]; @@ -6817,7 +6817,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRAccountLoginClusterLogoutParams alloc] init]; @@ -6850,7 +6850,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRElectricalMeasurementClusterGetProfileInfoResponseCommandParams alloc] init]; @@ -6881,7 +6881,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRElectricalMeasurementClusterGetProfileInfoCommandParams alloc] init]; @@ -6918,7 +6918,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams alloc] init]; @@ -6958,7 +6958,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRElectricalMeasurementClusterGetMeasurementProfileCommandParams alloc] init]; @@ -6987,7 +6987,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestParams alloc] init]; @@ -7014,7 +7014,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestSpecificResponseParams alloc] init]; @@ -7041,7 +7041,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestNotHandledParams alloc] init]; @@ -7068,7 +7068,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestAddArgumentsResponseParams alloc] init]; @@ -7095,7 +7095,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestSpecificParams alloc] init]; @@ -7122,7 +7122,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestSimpleArgumentResponseParams alloc] init]; @@ -7149,7 +7149,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestUnknownCommandParams alloc] init]; @@ -7186,7 +7186,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestStructArrayArgumentResponseParams alloc] init]; @@ -7222,7 +7222,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; @@ -7252,7 +7252,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestListInt8UReverseResponseParams alloc] init]; @@ -7280,7 +7280,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestSimpleArgumentRequestParams alloc] init]; @@ -7310,7 +7310,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestEnumsResponseParams alloc] init]; @@ -7350,7 +7350,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestStructArrayArgumentRequestParams alloc] init]; @@ -7390,7 +7390,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestNullableOptionalResponseParams alloc] init]; @@ -7422,7 +7422,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestStructArgumentRequestParams alloc] init]; @@ -7504,7 +7504,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestComplexNullableOptionalResponseParams alloc] init]; @@ -7574,7 +7574,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; @@ -7602,7 +7602,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterBooleanResponseParams alloc] init]; @@ -7630,7 +7630,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestListStructArgumentRequestParams alloc] init]; @@ -7658,7 +7658,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterSimpleStructResponseParams alloc] init]; @@ -7686,7 +7686,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; @@ -7714,7 +7714,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestEmitTestEventResponseParams alloc] init]; @@ -7742,7 +7742,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; @@ -7770,7 +7770,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestEmitTestFabricScopedEventResponseParams alloc] init]; @@ -7798,7 +7798,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; @@ -7826,7 +7826,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; @@ -7856,7 +7856,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestEnumsRequestParams alloc] init]; @@ -7886,7 +7886,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestNullableOptionalRequestParams alloc] init]; @@ -7936,7 +7936,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestComplexNullableOptionalRequestParams alloc] init]; @@ -7981,7 +7981,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterSimpleStructEchoRequestParams alloc] init]; @@ -8007,7 +8007,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTimedInvokeRequestParams alloc] init]; @@ -8034,7 +8034,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; @@ -8066,7 +8066,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestEmitTestEventRequestParams alloc] init]; @@ -8097,7 +8097,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRTestClusterClusterTestEmitTestFabricScopedEventRequestParams alloc] init]; @@ -8133,7 +8133,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRFaultInjectionClusterFailAtFaultParams alloc] init]; @@ -8171,7 +8171,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; { auto other = [[MTRFaultInjectionClusterFailRandomlyAtFaultParams alloc] init]; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h index f6b630e61a3259..7634210ba131d4 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h @@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull attributeValue; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRScenesClusterExtensionFieldSet : NSObject @@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull attributeValueList; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDescriptorClusterDeviceTypeStruct : NSObject @@ -40,7 +40,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull revision; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBindingClusterTargetStruct : NSObject @@ -51,7 +51,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAccessControlClusterTarget : NSObject @@ -60,7 +60,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nullable deviceType; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAccessControlClusterAccessControlEntry : NSObject @@ -71,7 +71,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAccessControlClusterExtensionEntry : NSObject @@ -79,7 +79,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAccessControlClusterAccessControlEntryChangedEvent : NSObject @@ -90,7 +90,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAccessControlClusterAccessControlExtensionChangedEvent : NSObject @@ -101,7 +101,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterActionStruct : NSObject @@ -113,7 +113,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull state; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterEndpointListStruct : NSObject @@ -123,7 +123,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull endpoints; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterStateChangedEvent : NSObject @@ -132,7 +132,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, getter=getNewState) NSNumber * _Nonnull newState; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRActionsClusterActionFailedEvent : NSObject @@ -142,7 +142,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull error; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBasicClusterCapabilityMinimaStruct : NSObject @@ -150,34 +150,34 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull subscriptionsPerFabric; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBasicClusterStartUpEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull softwareVersion; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBasicClusterShutDownEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBasicClusterLeaveEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBasicClusterReachableChangedEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull reachableNewValue; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateRequestorClusterProviderLocation : NSObject @@ -186,7 +186,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateRequestorClusterStateTransitionEvent : NSObject @@ -196,7 +196,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nullable targetSoftwareVersion; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateRequestorClusterVersionAppliedEvent : NSObject @@ -204,7 +204,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull productID; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROtaSoftwareUpdateRequestorClusterDownloadErrorEvent : NSObject @@ -214,7 +214,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nullable platformCode; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPowerSourceClusterBatChargeFaultChangeType : NSObject @@ -222,7 +222,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull previous; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPowerSourceClusterBatFaultChangeType : NSObject @@ -230,7 +230,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull previous; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPowerSourceClusterWiredFaultChangeType : NSObject @@ -238,7 +238,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull previous; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralCommissioningClusterBasicCommissioningInfo : NSObject @@ -246,7 +246,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull maxCumulativeFailsafeSeconds; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterNetworkInfo : NSObject @@ -254,7 +254,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull connected; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterThreadInterfaceScanResult : NSObject @@ -268,7 +268,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull lqi; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRNetworkCommissioningClusterWiFiInterfaceScanResult : NSObject @@ -280,7 +280,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull rssi; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralDiagnosticsClusterNetworkInterfaceType : NSObject @@ -294,7 +294,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull type; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralDiagnosticsClusterHardwareFaultChangeEvent : NSObject @@ -302,7 +302,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull previous; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralDiagnosticsClusterRadioFaultChangeEvent : NSObject @@ -310,7 +310,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull previous; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralDiagnosticsClusterNetworkFaultChangeEvent : NSObject @@ -318,14 +318,14 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull previous; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGeneralDiagnosticsClusterBootReasonEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull bootReason; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSoftwareDiagnosticsClusterThreadMetrics : NSObject @@ -336,7 +336,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nullable stackSize; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSoftwareDiagnosticsClusterSoftwareFaultEvent : NSObject @@ -345,7 +345,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSData * _Nullable faultRecording; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThreadNetworkDiagnosticsClusterNeighborTable : NSObject @@ -365,7 +365,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull isChild; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents : NSObject @@ -383,7 +383,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull channelMaskPresent; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThreadNetworkDiagnosticsClusterRouteTable : NSObject @@ -399,7 +399,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull linkEstablished; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThreadNetworkDiagnosticsClusterSecurityPolicy : NSObject @@ -407,14 +407,14 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull flags; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThreadNetworkDiagnosticsClusterConnectionStatusEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull connectionStatus; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent : NSObject @@ -422,14 +422,14 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull previous; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWiFiNetworkDiagnosticsClusterDisconnectionEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull reasonCode; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWiFiNetworkDiagnosticsClusterAssociationFailureEvent : NSObject @@ -437,14 +437,14 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull status; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRWiFiNetworkDiagnosticsClusterConnectionStatusEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull connectionStatus; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTimeSynchronizationClusterDstOffsetType : NSObject @@ -453,7 +453,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull validUntil; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTimeSynchronizationClusterTimeZoneType : NSObject @@ -462,68 +462,68 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nullable name; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBridgedDeviceBasicClusterStartUpEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull softwareVersion; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBridgedDeviceBasicClusterShutDownEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBridgedDeviceBasicClusterLeaveEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBridgedDeviceBasicClusterReachableChangedEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull reachableNewValue; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSwitchClusterSwitchLatchedEvent : NSObject @property (nonatomic, copy, getter=getNewPosition) NSNumber * _Nonnull newPosition; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSwitchClusterInitialPressEvent : NSObject @property (nonatomic, copy, getter=getNewPosition) NSNumber * _Nonnull newPosition; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSwitchClusterLongPressEvent : NSObject @property (nonatomic, copy, getter=getNewPosition) NSNumber * _Nonnull newPosition; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSwitchClusterShortReleaseEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull previousPosition; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSwitchClusterLongReleaseEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull previousPosition; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSwitchClusterMultiPressOngoingEvent : NSObject @@ -531,7 +531,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull currentNumberOfPressesCounted; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRSwitchClusterMultiPressCompleteEvent : NSObject @@ -539,7 +539,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull totalNumberOfPressesCounted; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterFabricDescriptor : NSObject @@ -551,7 +551,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTROperationalCredentialsClusterNOCStruct : NSObject @@ -560,7 +560,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupKeyManagementClusterGroupInfoMapStruct : NSObject @@ -570,7 +570,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupKeyManagementClusterGroupKeyMapStruct : NSObject @@ -579,7 +579,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRGroupKeyManagementClusterGroupKeySetStruct : NSObject @@ -593,7 +593,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nullable epochStartTime2; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRFixedLabelClusterLabelStruct : NSObject @@ -601,7 +601,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nonnull value; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRUserLabelClusterLabelStruct : NSObject @@ -609,14 +609,14 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nonnull value; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRBooleanStateClusterStateChangeEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull stateValue; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRModeSelectClusterSemanticTag : NSObject @@ -624,7 +624,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull value; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRModeSelectClusterModeOptionStruct : NSObject @@ -633,7 +633,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull semanticTags; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterDlCredential : NSObject @@ -641,21 +641,21 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull credentialIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterDoorLockAlarmEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull alarmCode; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterDoorStateChangeEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull doorState; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterLockOperationEvent : NSObject @@ -667,7 +667,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nullable credentials; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterLockOperationErrorEvent : NSObject @@ -680,7 +680,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nullable credentials; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRDoorLockClusterLockUserChangeEvent : NSObject @@ -693,109 +693,109 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nullable dataIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterSupplyVoltageLowEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterSupplyVoltageHighEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterPowerMissingPhaseEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterSystemPressureLowEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterSystemPressureHighEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterDryRunningEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterMotorTemperatureHighEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterElectronicTemperatureHighEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterPumpBlockedEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterSensorFailureEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterElectronicFatalFailureEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterGeneralFaultEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterLeakageEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterAirDetectionEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRPumpConfigurationAndControlClusterTurbineOperationEvent : NSObject - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRThermostatClusterThermostatScheduleTransition : NSObject @@ -804,7 +804,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nullable coolSetpoint; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRChannelClusterChannelInfo : NSObject @@ -815,7 +815,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nullable affiliateCallSign; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRChannelClusterLineupInfo : NSObject @@ -825,7 +825,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull lineupInfoType; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTargetNavigatorClusterTargetInfo : NSObject @@ -833,7 +833,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nonnull name; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaPlaybackClusterPlaybackPosition : NSObject @@ -841,7 +841,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nullable position; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRMediaInputClusterInputInfo : NSObject @@ -851,7 +851,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nonnull descriptionString; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRContentLauncherClusterDimension : NSObject @@ -860,7 +860,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull metric; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRContentLauncherClusterAdditionalInfo : NSObject @@ -868,7 +868,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nonnull value; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRContentLauncherClusterParameter : NSObject @@ -877,14 +877,14 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nullable externalIDList; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRContentLauncherClusterContentSearch : NSObject @property (nonatomic, copy) NSArray * _Nonnull parameterList; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRContentLauncherClusterStyleInformation : NSObject @@ -893,7 +893,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) MTRContentLauncherClusterDimension * _Nullable size; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRContentLauncherClusterBrandingInformation : NSObject @@ -905,7 +905,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) MTRContentLauncherClusterStyleInformation * _Nullable waterMark; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRAudioOutputClusterOutputInfo : NSObject @@ -914,7 +914,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nonnull name; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRApplicationLauncherClusterApplication : NSObject @@ -922,7 +922,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nonnull applicationId; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRApplicationLauncherClusterApplicationEP : NSObject @@ -930,7 +930,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nullable endpoint; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRApplicationBasicClusterApplicationBasicApplication : NSObject @@ -938,7 +938,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSString * _Nonnull applicationId; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterSimpleStruct : NSObject @@ -952,7 +952,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull h; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestFabricScoped : NSObject @@ -966,7 +966,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterNullablesAndOptionalsStruct : NSObject @@ -984,7 +984,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nullable nullableOptionalList; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterNestedStruct : NSObject @@ -993,7 +993,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) MTRTestClusterClusterSimpleStruct * _Nonnull c; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterNestedStructList : NSObject @@ -1006,14 +1006,14 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull g; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterDoubleNestedStructList : NSObject @property (nonatomic, copy) NSArray * _Nonnull a; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestListStructOctet : NSObject @@ -1021,7 +1021,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSData * _Nonnull member2; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestEventEvent : NSObject @@ -1033,14 +1033,14 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy) NSArray * _Nonnull arg6; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end @interface MTRTestClusterClusterTestFabricScopedEventEvent : NSObject @property (nonatomic, copy) NSNumber * _Nonnull fabricIndex; - (instancetype)init; -- (id)copyWithZone:(nullable NSZone *)zone; +- (id)copyWithZone:(NSZone * _Nullable)zone; @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm index 1a3245b949d6d2..3a32fd455d1915 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm @@ -31,7 +31,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRScenesClusterAttributeValuePair alloc] init]; @@ -62,7 +62,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRScenesClusterExtensionFieldSet alloc] init]; @@ -93,7 +93,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRDescriptorClusterDeviceTypeStruct alloc] init]; @@ -130,7 +130,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBindingClusterTargetStruct alloc] init]; @@ -166,7 +166,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRAccessControlClusterTarget alloc] init]; @@ -204,7 +204,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRAccessControlClusterAccessControlEntry alloc] init]; @@ -239,7 +239,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRAccessControlClusterExtensionEntry alloc] init]; @@ -276,7 +276,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRAccessControlClusterAccessControlEntryChangedEvent alloc] init]; @@ -317,7 +317,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRAccessControlClusterAccessControlExtensionChangedEvent alloc] init]; @@ -360,7 +360,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRActionsClusterActionStruct alloc] init]; @@ -400,7 +400,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRActionsClusterEndpointListStruct alloc] init]; @@ -435,7 +435,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRActionsClusterStateChangedEvent alloc] init]; @@ -471,7 +471,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRActionsClusterActionFailedEvent alloc] init]; @@ -504,7 +504,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBasicClusterCapabilityMinimaStruct alloc] init]; @@ -533,7 +533,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBasicClusterStartUpEvent alloc] init]; @@ -559,7 +559,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBasicClusterShutDownEvent alloc] init]; @@ -584,7 +584,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBasicClusterLeaveEvent alloc] init]; @@ -612,7 +612,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBasicClusterReachableChangedEvent alloc] init]; @@ -644,7 +644,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTROtaSoftwareUpdateRequestorClusterProviderLocation alloc] init]; @@ -680,7 +680,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTROtaSoftwareUpdateRequestorClusterStateTransitionEvent alloc] init]; @@ -714,7 +714,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTROtaSoftwareUpdateRequestorClusterVersionAppliedEvent alloc] init]; @@ -749,7 +749,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTROtaSoftwareUpdateRequestorClusterDownloadErrorEvent alloc] init]; @@ -783,7 +783,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPowerSourceClusterBatChargeFaultChangeType alloc] init]; @@ -814,7 +814,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPowerSourceClusterBatFaultChangeType alloc] init]; @@ -845,7 +845,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPowerSourceClusterWiredFaultChangeType alloc] init]; @@ -876,7 +876,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRGeneralCommissioningClusterBasicCommissioningInfo alloc] init]; @@ -908,7 +908,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRNetworkCommissioningClusterNetworkInfo alloc] init]; @@ -952,7 +952,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRNetworkCommissioningClusterThreadInterfaceScanResult alloc] init]; @@ -1000,7 +1000,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRNetworkCommissioningClusterWiFiInterfaceScanResult alloc] init]; @@ -1049,7 +1049,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRGeneralDiagnosticsClusterNetworkInterfaceType alloc] init]; @@ -1089,7 +1089,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRGeneralDiagnosticsClusterHardwareFaultChangeEvent alloc] init]; @@ -1120,7 +1120,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRGeneralDiagnosticsClusterRadioFaultChangeEvent alloc] init]; @@ -1151,7 +1151,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRGeneralDiagnosticsClusterNetworkFaultChangeEvent alloc] init]; @@ -1180,7 +1180,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRGeneralDiagnosticsClusterBootReasonEvent alloc] init]; @@ -1216,7 +1216,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSoftwareDiagnosticsClusterThreadMetrics alloc] init]; @@ -1253,7 +1253,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSoftwareDiagnosticsClusterSoftwareFaultEvent alloc] init]; @@ -1310,7 +1310,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRThreadNetworkDiagnosticsClusterNeighborTable alloc] init]; @@ -1377,7 +1377,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents alloc] init]; @@ -1439,7 +1439,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRThreadNetworkDiagnosticsClusterRouteTable alloc] init]; @@ -1481,7 +1481,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRThreadNetworkDiagnosticsClusterSecurityPolicy alloc] init]; @@ -1510,7 +1510,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRThreadNetworkDiagnosticsClusterConnectionStatusEvent alloc] init]; @@ -1540,7 +1540,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent alloc] init]; @@ -1569,7 +1569,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRWiFiNetworkDiagnosticsClusterDisconnectionEvent alloc] init]; @@ -1599,7 +1599,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRWiFiNetworkDiagnosticsClusterAssociationFailureEvent alloc] init]; @@ -1628,7 +1628,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRWiFiNetworkDiagnosticsClusterConnectionStatusEvent alloc] init]; @@ -1660,7 +1660,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTimeSynchronizationClusterDstOffsetType alloc] init]; @@ -1694,7 +1694,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTimeSynchronizationClusterTimeZoneType alloc] init]; @@ -1724,7 +1724,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBridgedDeviceBasicClusterStartUpEvent alloc] init]; @@ -1750,7 +1750,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBridgedDeviceBasicClusterShutDownEvent alloc] init]; @@ -1773,7 +1773,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBridgedDeviceBasicClusterLeaveEvent alloc] init]; @@ -1798,7 +1798,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBridgedDeviceBasicClusterReachableChangedEvent alloc] init]; @@ -1826,7 +1826,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSwitchClusterSwitchLatchedEvent alloc] init]; @@ -1854,7 +1854,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSwitchClusterInitialPressEvent alloc] init]; @@ -1882,7 +1882,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSwitchClusterLongPressEvent alloc] init]; @@ -1910,7 +1910,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSwitchClusterShortReleaseEvent alloc] init]; @@ -1938,7 +1938,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSwitchClusterLongReleaseEvent alloc] init]; @@ -1968,7 +1968,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSwitchClusterMultiPressOngoingEvent alloc] init]; @@ -1999,7 +1999,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRSwitchClusterMultiPressCompleteEvent alloc] init]; @@ -2038,7 +2038,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTROperationalCredentialsClusterFabricDescriptor alloc] init]; @@ -2077,7 +2077,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTROperationalCredentialsClusterNOCStruct alloc] init]; @@ -2114,7 +2114,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRGroupKeyManagementClusterGroupInfoMapStruct alloc] init]; @@ -2149,7 +2149,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRGroupKeyManagementClusterGroupKeyMapStruct alloc] init]; @@ -2193,7 +2193,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRGroupKeyManagementClusterGroupKeySetStruct alloc] init]; @@ -2234,7 +2234,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRFixedLabelClusterLabelStruct alloc] init]; @@ -2265,7 +2265,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRUserLabelClusterLabelStruct alloc] init]; @@ -2294,7 +2294,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRBooleanStateClusterStateChangeEvent alloc] init]; @@ -2324,7 +2324,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRModeSelectClusterSemanticTag alloc] init]; @@ -2357,7 +2357,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRModeSelectClusterModeOptionStruct alloc] init]; @@ -2389,7 +2389,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRDoorLockClusterDlCredential alloc] init]; @@ -2418,7 +2418,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRDoorLockClusterDoorLockAlarmEvent alloc] init]; @@ -2445,7 +2445,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRDoorLockClusterDoorStateChangeEvent alloc] init]; @@ -2482,7 +2482,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRDoorLockClusterLockOperationEvent alloc] init]; @@ -2529,7 +2529,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRDoorLockClusterLockOperationErrorEvent alloc] init]; @@ -2577,7 +2577,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRDoorLockClusterLockUserChangeEvent alloc] init]; @@ -2611,7 +2611,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterSupplyVoltageLowEvent alloc] init]; @@ -2634,7 +2634,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterSupplyVoltageHighEvent alloc] init]; @@ -2657,7 +2657,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterPowerMissingPhaseEvent alloc] init]; @@ -2680,7 +2680,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterSystemPressureLowEvent alloc] init]; @@ -2703,7 +2703,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterSystemPressureHighEvent alloc] init]; @@ -2726,7 +2726,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterDryRunningEvent alloc] init]; @@ -2749,7 +2749,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterMotorTemperatureHighEvent alloc] init]; @@ -2772,7 +2772,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent alloc] init]; @@ -2795,7 +2795,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterElectronicTemperatureHighEvent alloc] init]; @@ -2818,7 +2818,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterPumpBlockedEvent alloc] init]; @@ -2841,7 +2841,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterSensorFailureEvent alloc] init]; @@ -2864,7 +2864,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent alloc] init]; @@ -2887,7 +2887,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterElectronicFatalFailureEvent alloc] init]; @@ -2910,7 +2910,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterGeneralFaultEvent alloc] init]; @@ -2933,7 +2933,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterLeakageEvent alloc] init]; @@ -2956,7 +2956,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterAirDetectionEvent alloc] init]; @@ -2979,7 +2979,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRPumpConfigurationAndControlClusterTurbineOperationEvent alloc] init]; @@ -3008,7 +3008,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRThermostatClusterThermostatScheduleTransition alloc] init]; @@ -3046,7 +3046,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRChannelClusterChannelInfo alloc] init]; @@ -3085,7 +3085,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRChannelClusterLineupInfo alloc] init]; @@ -3119,7 +3119,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTargetNavigatorClusterTargetInfo alloc] init]; @@ -3150,7 +3150,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRMediaPlaybackClusterPlaybackPosition alloc] init]; @@ -3185,7 +3185,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRMediaInputClusterInputInfo alloc] init]; @@ -3220,7 +3220,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRContentLauncherClusterDimension alloc] init]; @@ -3252,7 +3252,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRContentLauncherClusterAdditionalInfo alloc] init]; @@ -3285,7 +3285,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRContentLauncherClusterParameter alloc] init]; @@ -3315,7 +3315,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRContentLauncherClusterContentSearch alloc] init]; @@ -3347,7 +3347,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRContentLauncherClusterStyleInformation alloc] init]; @@ -3387,7 +3387,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRContentLauncherClusterBrandingInformation alloc] init]; @@ -3425,7 +3425,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRAudioOutputClusterOutputInfo alloc] init]; @@ -3457,7 +3457,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRApplicationLauncherClusterApplication alloc] init]; @@ -3488,7 +3488,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRApplicationLauncherClusterApplicationEP alloc] init]; @@ -3519,7 +3519,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRApplicationBasicClusterApplicationBasicApplication alloc] init]; @@ -3562,7 +3562,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTestClusterClusterSimpleStruct alloc] init]; @@ -3612,7 +3612,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTestClusterClusterTestFabricScoped alloc] init]; @@ -3674,7 +3674,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTestClusterClusterNullablesAndOptionalsStruct alloc] init]; @@ -3722,7 +3722,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTestClusterClusterNestedStruct alloc] init]; @@ -3764,7 +3764,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTestClusterClusterNestedStructList alloc] init]; @@ -3798,7 +3798,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTestClusterClusterDoubleNestedStructList alloc] init]; @@ -3827,7 +3827,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTestClusterClusterTestListStructOctet alloc] init]; @@ -3866,7 +3866,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTestClusterClusterTestEventEvent alloc] init]; @@ -3899,7 +3899,7 @@ - (instancetype)init return self; } -- (id)copyWithZone:(nullable NSZone *)zone +- (id)copyWithZone:(NSZone * _Nullable)zone { auto other = [[MTRTestClusterClusterTestFabricScopedEventEvent alloc] init]; diff --git a/src/darwin/Framework/CHIPTests/MTRCertificateTests.m b/src/darwin/Framework/CHIPTests/MTRCertificateTests.m index 3ec2b9662bef0a..e42ea141a1c987 100644 --- a/src/darwin/Framework/CHIPTests/MTRCertificateTests.m +++ b/src/darwin/Framework/CHIPTests/MTRCertificateTests.m @@ -32,7 +32,7 @@ - (void)testGenerateRootCert __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * rootCert = [MTRCertificates generateRootCertificate:testKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * rootCert = [MTRCertificates createRootCertificate:testKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(rootCert); } @@ -41,18 +41,18 @@ - (void)testGenerateIntermediateCert __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * rootCert = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * rootCert = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(rootCert); __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); - __auto_type * intermediateCert = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:rootCert - intermediatePublicKey:intermediateKeys.publicKey - issuerID:nil - fabricID:nil - error:nil]; + __auto_type * intermediateCert = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:rootCert + intermediatePublicKey:intermediateKeys.publicKey + issuerID:nil + fabricID:nil + error:nil]; XCTAssertNotNil(intermediateCert); } @@ -61,7 +61,7 @@ - (void)testGenerateOperationalCertNoIntermediate __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * rootCert = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * rootCert = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(rootCert); __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; @@ -73,13 +73,13 @@ - (void)testGenerateOperationalCertNoIntermediate [cats addObject:@0x00020001]; [cats addObject:@0x0003FFFF]; - __auto_type * operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@1 - caseAuthenticatedTags:cats - error:nil]; + __auto_type * operationalCert = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@1 + caseAuthenticatedTags:cats + error:nil]; XCTAssertNotNil(operationalCert); } @@ -88,30 +88,30 @@ - (void)testGenerateOperationalCertWithIntermediate __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * rootCert = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * rootCert = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(rootCert); __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); - __auto_type * intermediateCert = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:rootCert - intermediatePublicKey:intermediateKeys.publicKey - issuerID:nil - fabricID:nil - error:nil]; + __auto_type * intermediateCert = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:rootCert + intermediatePublicKey:intermediateKeys.publicKey + issuerID:nil + fabricID:nil + error:nil]; XCTAssertNotNil(intermediateCert); __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); - __auto_type * operationalCert = [MTRCertificates generateOperationalCertificate:intermediateKeys - signingCertificate:intermediateCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@1 - caseAuthenticatedTags:nil - error:nil]; + __auto_type * operationalCert = [MTRCertificates createOperationalCertificate:intermediateKeys + signingCertificate:intermediateCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@1 + caseAuthenticatedTags:nil + error:nil]; XCTAssertNotNil(operationalCert); } @@ -120,7 +120,7 @@ - (void)testGenerateOperationalCertErrorCases __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * rootCert = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * rootCert = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(rootCert); __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; @@ -150,93 +150,93 @@ - (void)testGenerateOperationalCertErrorCases [catsWithInvalidVersion addObject:@0x00020000]; // Check basic case works - __auto_type * operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@1 - caseAuthenticatedTags:nil - error:nil]; + __auto_type * operationalCert = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@1 + caseAuthenticatedTags:nil + error:nil]; XCTAssertNotNil(operationalCert); // CATs too long - operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@1 - caseAuthenticatedTags:longCats - error:nil]; + operationalCert = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@1 + caseAuthenticatedTags:longCats + error:nil]; XCTAssertNil(operationalCert); // Multiple CATs with the same identifier but different versions - operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@1 - caseAuthenticatedTags:catsWithSameIdentifier - error:nil]; + operationalCert = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@1 + caseAuthenticatedTags:catsWithSameIdentifier + error:nil]; XCTAssertNil(operationalCert); // Multiple CATs with the same identifier and same version - operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@1 - caseAuthenticatedTags:catsWithDuplicatedCAT - error:nil]; + operationalCert = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@1 + caseAuthenticatedTags:catsWithDuplicatedCAT + error:nil]; XCTAssertNil(operationalCert); // CAT with invalid version - operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@1 - caseAuthenticatedTags:catsWithInvalidVersion - error:nil]; + operationalCert = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@1 + caseAuthenticatedTags:catsWithInvalidVersion + error:nil]; XCTAssertNil(operationalCert); // Signing key mismatch - operationalCert = [MTRCertificates generateOperationalCertificate:operationalKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@1 - caseAuthenticatedTags:nil - error:nil]; + operationalCert = [MTRCertificates createOperationalCertificate:operationalKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@1 + caseAuthenticatedTags:nil + error:nil]; XCTAssertNil(operationalCert); // Invalid fabric id - operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@0 - nodeID:@1 - caseAuthenticatedTags:nil - error:nil]; + operationalCert = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@0 + nodeID:@1 + caseAuthenticatedTags:nil + error:nil]; XCTAssertNil(operationalCert); // Undefined node id - operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@0 - caseAuthenticatedTags:nil - error:nil]; + operationalCert = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@0 + caseAuthenticatedTags:nil + error:nil]; XCTAssertNil(operationalCert); // Non-operational node id - operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:rootCert - operationalPublicKey:operationalKeys.publicKey - fabricID:@1 - nodeID:@(0xFFFFFFFFFFFFFFFFLLU) - caseAuthenticatedTags:nil - error:nil]; + operationalCert = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:rootCert + operationalPublicKey:operationalKeys.publicKey + fabricID:@1 + nodeID:@(0xFFFFFFFFFFFFFFFFLLU) + caseAuthenticatedTags:nil + error:nil]; XCTAssertNil(operationalCert); } @@ -245,7 +245,7 @@ - (void)testGenerateCSR __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * csr = [MTRCertificates generateCertificateSigningRequest:testKeys error:nil]; + __auto_type * csr = [MTRCertificates createCertificateSigningRequest:testKeys error:nil]; XCTAssertNotNil(csr); // Wish there was something we could test here about the CSR. diff --git a/src/darwin/Framework/CHIPTests/MTRControllerTests.m b/src/darwin/Framework/CHIPTests/MTRControllerTests.m index 748e473bd71616..9a0a551ab34eb5 100644 --- a/src/darwin/Framework/CHIPTests/MTRControllerTests.m +++ b/src/darwin/Framework/CHIPTests/MTRControllerTests.m @@ -395,13 +395,13 @@ - (void)testControllerStartControllerSameFabricWrongSubject __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * root1 = [MTRCertificates generateRootCertificate:testKeys issuerID:@1 fabricID:@1 error:nil]; + __auto_type * root1 = [MTRCertificates createRootCertificate:testKeys issuerID:@1 fabricID:@1 error:nil]; XCTAssertNotNil(root1); - __auto_type * root2 = [MTRCertificates generateRootCertificate:testKeys issuerID:@1 fabricID:@1 error:nil]; + __auto_type * root2 = [MTRCertificates createRootCertificate:testKeys issuerID:@1 fabricID:@1 error:nil]; XCTAssertNotNil(root2); - __auto_type * root3 = [MTRCertificates generateRootCertificate:testKeys issuerID:@2 fabricID:@1 error:nil]; + __auto_type * root3 = [MTRCertificates createRootCertificate:testKeys issuerID:@2 fabricID:@1 error:nil]; XCTAssertNotNil(root3); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys @@ -465,10 +465,10 @@ - (void)testControllerFabricIdRootCertMismatch __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * root1 = [MTRCertificates generateRootCertificate:testKeys issuerID:@1 fabricID:@1 error:nil]; + __auto_type * root1 = [MTRCertificates createRootCertificate:testKeys issuerID:@1 fabricID:@1 error:nil]; XCTAssertNotNil(root1); - __auto_type * root2 = [MTRCertificates generateRootCertificate:testKeys issuerID:@1 fabricID:@2 error:nil]; + __auto_type * root2 = [MTRCertificates createRootCertificate:testKeys issuerID:@1 fabricID:@2 error:nil]; XCTAssertNotNil(root2); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys @@ -526,7 +526,7 @@ - (void)testControllerSignerDoesNotMatchRoot __auto_type * signerKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(signerKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(root); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:signerKeys @@ -559,18 +559,18 @@ - (void)testControllerSignerKeyWithIntermediate __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(root); __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); - __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:root - intermediatePublicKey:intermediateKeys.publicKey - issuerID:nil - fabricID:nil - error:nil]; + __auto_type * intermediate = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:root + intermediatePublicKey:intermediateKeys.publicKey + issuerID:nil + fabricID:nil + error:nil]; XCTAssertNotNil(intermediate); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys @@ -811,18 +811,18 @@ - (void)testControllerRotateToICA __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(root); __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); - __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:root - intermediatePublicKey:intermediateKeys.publicKey - issuerID:nil - fabricID:nil - error:nil]; + __auto_type * intermediate = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:root + intermediatePublicKey:intermediateKeys.publicKey + issuerID:nil + fabricID:nil + error:nil]; XCTAssertNotNil(intermediate); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys @@ -875,18 +875,18 @@ - (void)testControllerRotateFromICA __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(root); __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); - __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:root - intermediatePublicKey:intermediateKeys.publicKey - issuerID:nil - fabricID:nil - error:nil]; + __auto_type * intermediate = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:root + intermediatePublicKey:intermediateKeys.publicKey + issuerID:nil + fabricID:nil + error:nil]; XCTAssertNotNil(intermediate); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys @@ -939,29 +939,29 @@ - (void)testControllerRotateICA __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(root); __auto_type * intermediateKeys1 = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys1); - __auto_type * intermediate1 = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:root - intermediatePublicKey:intermediateKeys1.publicKey - issuerID:nil - fabricID:nil - error:nil]; + __auto_type * intermediate1 = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:root + intermediatePublicKey:intermediateKeys1.publicKey + issuerID:nil + fabricID:nil + error:nil]; XCTAssertNotNil(intermediate1); __auto_type * intermediateKeys2 = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys2); - __auto_type * intermediate2 = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:root - intermediatePublicKey:intermediateKeys2.publicKey - issuerID:nil - fabricID:nil - error:nil]; + __auto_type * intermediate2 = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:root + intermediatePublicKey:intermediateKeys2.publicKey + issuerID:nil + fabricID:nil + error:nil]; XCTAssertNotNil(intermediate2); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys1 @@ -1014,18 +1014,18 @@ - (void)testControllerICAWithoutRoot __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(root); __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); - __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:root - intermediatePublicKey:intermediateKeys.publicKey - issuerID:nil - fabricID:nil - error:nil]; + __auto_type * intermediate = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:root + intermediatePublicKey:intermediateKeys.publicKey + issuerID:nil + fabricID:nil + error:nil]; XCTAssertNotNil(intermediate); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys @@ -1057,30 +1057,30 @@ - (void)testControllerProvideFullCertChain __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(root); __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); - __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:root - intermediatePublicKey:intermediateKeys.publicKey - issuerID:nil - fabricID:nil - error:nil]; + __auto_type * intermediate = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:root + intermediatePublicKey:intermediateKeys.publicKey + issuerID:nil + fabricID:nil + error:nil]; XCTAssertNotNil(intermediate); __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); - __auto_type * operational = [MTRCertificates generateOperationalCertificate:intermediateKeys - signingCertificate:intermediate - operationalPublicKey:operationalKeys.publicKey - fabricID:@123 - nodeID:@456 - caseAuthenticatedTags:nil - error:nil]; + __auto_type * operational = [MTRCertificates createOperationalCertificate:intermediateKeys + signingCertificate:intermediate + operationalPublicKey:operationalKeys.publicKey + fabricID:@123 + nodeID:@456 + caseAuthenticatedTags:nil + error:nil]; XCTAssertNotNil(operational); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys @@ -1132,19 +1132,19 @@ - (void)testControllerProvideCertChainNoICA __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:nil error:nil]; XCTAssertNotNil(root); __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); - __auto_type * operational = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:root - operationalPublicKey:operationalKeys.publicKey - fabricID:@123 - nodeID:@456 - caseAuthenticatedTags:nil - error:nil]; + __auto_type * operational = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:root + operationalPublicKey:operationalKeys.publicKey + fabricID:@123 + nodeID:@456 + caseAuthenticatedTags:nil + error:nil]; XCTAssertNotNil(operational); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys @@ -1182,19 +1182,19 @@ - (void)testControllerCertChainFabricMismatchRoot __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:@111 error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:@111 error:nil]; XCTAssertNotNil(root); __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); - __auto_type * operational = [MTRCertificates generateOperationalCertificate:rootKeys - signingCertificate:root - operationalPublicKey:operationalKeys.publicKey - fabricID:@123 - nodeID:@456 - caseAuthenticatedTags:nil - error:nil]; + __auto_type * operational = [MTRCertificates createOperationalCertificate:rootKeys + signingCertificate:root + operationalPublicKey:operationalKeys.publicKey + fabricID:@123 + nodeID:@456 + caseAuthenticatedTags:nil + error:nil]; XCTAssertNotNil(operational); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys @@ -1226,30 +1226,30 @@ - (void)testControllerCertChainFabricMismatchIntermediate __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerID:nil fabricID:@123 error:nil]; + __auto_type * root = [MTRCertificates createRootCertificate:rootKeys issuerID:nil fabricID:@123 error:nil]; XCTAssertNotNil(root); __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); - __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys - rootCertificate:root - intermediatePublicKey:intermediateKeys.publicKey - issuerID:nil - fabricID:@111 - error:nil]; + __auto_type * intermediate = [MTRCertificates createIntermediateCertificate:rootKeys + rootCertificate:root + intermediatePublicKey:intermediateKeys.publicKey + issuerID:nil + fabricID:@111 + error:nil]; XCTAssertNotNil(intermediate); __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); - __auto_type * operational = [MTRCertificates generateOperationalCertificate:intermediateKeys - signingCertificate:intermediate - operationalPublicKey:operationalKeys.publicKey - fabricID:@123 - nodeID:@456 - caseAuthenticatedTags:nil - error:nil]; + __auto_type * operational = [MTRCertificates createOperationalCertificate:intermediateKeys + signingCertificate:intermediate + operationalPublicKey:operationalKeys.publicKey + fabricID:@123 + nodeID:@456 + caseAuthenticatedTags:nil + error:nil]; XCTAssertNotNil(operational); __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys diff --git a/src/darwin/Framework/CHIPTests/MTRDeviceTests.m b/src/darwin/Framework/CHIPTests/MTRDeviceTests.m index 4add3e6c008da7..3ab80284620fd9 100644 --- a/src/darwin/Framework/CHIPTests/MTRDeviceTests.m +++ b/src/darwin/Framework/CHIPTests/MTRDeviceTests.m @@ -229,31 +229,31 @@ - (void)test001_ReadAttribute MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - [device readAttributeWithEndpointID:nil - clusterID:@29 - attributeID:@0 - params:nil - queue:queue - completion:^(id _Nullable values, NSError * _Nullable error) { - NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - - XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); - - { - XCTAssertTrue([values isKindOfClass:[NSArray class]]); - NSArray * resultArray = values; - for (NSDictionary * result in resultArray) { - MTRAttributePath * path = result[@"attributePath"]; - XCTAssertEqual([path.cluster unsignedIntegerValue], 29); - XCTAssertEqual([path.attribute unsignedIntegerValue], 0); - XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); - XCTAssertTrue([result[@"data"][@"type"] isEqualToString:@"Array"]); + [device readAttributePathWithEndpointID:nil + clusterID:@29 + attributeID:@0 + params:nil + queue:queue + completion:^(id _Nullable values, NSError * _Nullable error) { + NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); + + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); + + { + XCTAssertTrue([values isKindOfClass:[NSArray class]]); + NSArray * resultArray = values; + for (NSDictionary * result in resultArray) { + MTRAttributePath * path = result[@"attributePath"]; + XCTAssertEqual([path.cluster unsignedIntegerValue], 29); + XCTAssertEqual([path.attribute unsignedIntegerValue], 0); + XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); + XCTAssertTrue([result[@"data"][@"type"] isEqualToString:@"Array"]); + } + XCTAssertTrue([resultArray count] > 0); } - XCTAssertTrue([resultArray count] > 0); - } - [expectation fulfill]; - }]; + [expectation fulfill]; + }]; [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } @@ -407,7 +407,7 @@ - (void)test005_Subscribe // Subscribe XCTestExpectation * expectation = [self expectationWithDescription:@"subscribe OnOff attribute"]; - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@6 attributeID:@0 minInterval:@1 @@ -548,20 +548,20 @@ - (void)test006_ReadAttributeFailure MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - [device - readAttributeWithEndpointID:@0 - clusterID:@10000 - attributeID:@0 - params:nil - queue:queue - completion:^(id _Nullable values, NSError * _Nullable error) { - NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); + [device readAttributePathWithEndpointID:@0 + clusterID:@10000 + attributeID:@0 + params:nil + queue:queue + completion:^(id _Nullable values, NSError * _Nullable error) { + NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - XCTAssertNil(values); - XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER); + XCTAssertNil(values); + XCTAssertEqual( + [MTRErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER); - [expectation fulfill]; - }]; + [expectation fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObject:expectation] timeout:kTimeoutInSeconds]; } @@ -668,7 +668,7 @@ - (void)test009_SubscribeFailure __auto_type * params = [[MTRSubscribeParams alloc] init]; params.autoResubscribe = @(NO); - [device subscribeAttributeWithEndpointID:@10000 + [device subscribeAttributePathWithEndpointID:@10000 clusterID:@6 attributeID:@0 minInterval:@2 @@ -705,30 +705,30 @@ - (void)test010_ReadAllAttribute MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - [device readAttributeWithEndpointID:@1 - clusterID:@29 - attributeID:nil - params:nil - queue:queue - completion:^(id _Nullable values, NSError * _Nullable error) { - NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - - XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); - - { - XCTAssertTrue([values isKindOfClass:[NSArray class]]); - NSArray * resultArray = values; - for (NSDictionary * result in resultArray) { - MTRAttributePath * path = result[@"attributePath"]; - XCTAssertEqual([path.cluster unsignedIntegerValue], 29); - XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); - XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); + [device readAttributePathWithEndpointID:@1 + clusterID:@29 + attributeID:nil + params:nil + queue:queue + completion:^(id _Nullable values, NSError * _Nullable error) { + NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); + + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); + + { + XCTAssertTrue([values isKindOfClass:[NSArray class]]); + NSArray * resultArray = values; + for (NSDictionary * result in resultArray) { + MTRAttributePath * path = result[@"attributePath"]; + XCTAssertEqual([path.cluster unsignedIntegerValue], 29); + XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); + XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); + } + XCTAssertTrue([resultArray count] > 0); } - XCTAssertTrue([resultArray count] > 0); - } - [expectation fulfill]; - }]; + [expectation fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObject:expectation] timeout:kTimeoutInSeconds]; } @@ -1005,7 +1005,7 @@ - (void)test012_SubscriptionError // Subscribe XCTestExpectation * expectation = [self expectationWithDescription:@"subscribe OnOff attribute"]; - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@6 attributeID:@0 minInterval:@1 @@ -1228,7 +1228,7 @@ - (void)test900_SubscribeAllAttributes XCTestExpectation * expectation = [self expectationWithDescription:@"subscribe OnOff attribute"]; __block void (^reportHandler)(id _Nullable values, NSError * _Nullable error) = nil; - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@6 attributeID:@0xffffffff minInterval:@2 diff --git a/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m b/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m index e356d0cc998aeb..9a3539c3b1aa91 100644 --- a/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m +++ b/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m @@ -171,15 +171,15 @@ - (void)readAttributeWithController:(id)controller __auto_type sharedController = sController; if (sharedController) { __auto_type device = [[MTRBaseDevice alloc] initWithNodeID:nodeID controller:sharedController]; - [device - readAttributeWithEndpointID:endpointID - clusterID:clusterID - attributeID:attributeID - params:[MTRDeviceController decodeXPCReadParams:params] - queue:dispatch_get_main_queue() - completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - completion([MTRDeviceController encodeXPCResponseValues:values], error); - }]; + [device readAttributePathWithEndpointID:endpointID + clusterID:clusterID + attributeID:attributeID + params:[MTRDeviceController decodeXPCReadParams:params] + queue:dispatch_get_main_queue() + completion:^( + NSArray *> * _Nullable values, NSError * _Nullable error) { + completion([MTRDeviceController encodeXPCResponseValues:values], error); + }]; } else { NSLog(@"Failed to get shared controller"); completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); @@ -257,22 +257,22 @@ - (void)subscribeAttributeWithController:(id)controller __auto_type sharedController = sController; if (sharedController) { __auto_type device = [[MTRBaseDevice alloc] initWithNodeID:nodeID controller:sharedController]; - [device subscribeAttributeWithEndpointID:endpointID - clusterID:clusterID - attributeID:attributeID - minInterval:minInterval - maxInterval:maxInterval - params:[MTRDeviceController decodeXPCSubscribeParams:params] - queue:dispatch_get_main_queue() - reportHandler:^( - NSArray *> * _Nullable values, NSError * _Nullable error) { - [self.clientProxy - handleReportWithController:controller - nodeID:nodeID - values:[MTRDeviceController encodeXPCResponseValues:values] - error:error]; - } - subscriptionEstablished:establishedHandler]; + [device subscribeAttributePathWithEndpointID:endpointID + clusterID:clusterID + attributeID:attributeID + minInterval:minInterval + maxInterval:maxInterval + params:[MTRDeviceController decodeXPCSubscribeParams:params] + queue:dispatch_get_main_queue() + reportHandler:^( + NSArray *> * _Nullable values, NSError * _Nullable error) { + [self.clientProxy + handleReportWithController:controller + nodeID:nodeID + values:[MTRDeviceController encodeXPCResponseValues:values] + error:error]; + } + subscriptionEstablished:establishedHandler]; } else { NSLog(@"Failed to get shared controller"); establishedHandler(); @@ -567,31 +567,31 @@ - (void)test001_ReadAttribute MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - [device readAttributeWithEndpointID:nil - clusterID:@29 - attributeID:@0 - params:nil - queue:queue - completion:^(id _Nullable values, NSError * _Nullable error) { - NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - - XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); - - { - XCTAssertTrue([values isKindOfClass:[NSArray class]]); - NSArray * resultArray = values; - for (NSDictionary * result in resultArray) { - MTRAttributePath * path = result[@"attributePath"]; - XCTAssertEqual([path.cluster unsignedIntegerValue], 29); - XCTAssertEqual([path.attribute unsignedIntegerValue], 0); - XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); - XCTAssertTrue([result[@"data"][@"type"] isEqualToString:@"Array"]); + [device readAttributePathWithEndpointID:nil + clusterID:@29 + attributeID:@0 + params:nil + queue:queue + completion:^(id _Nullable values, NSError * _Nullable error) { + NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); + + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); + + { + XCTAssertTrue([values isKindOfClass:[NSArray class]]); + NSArray * resultArray = values; + for (NSDictionary * result in resultArray) { + MTRAttributePath * path = result[@"attributePath"]; + XCTAssertEqual([path.cluster unsignedIntegerValue], 29); + XCTAssertEqual([path.attribute unsignedIntegerValue], 0); + XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); + XCTAssertTrue([result[@"data"][@"type"] isEqualToString:@"Array"]); + } + XCTAssertTrue([resultArray count] > 0); } - XCTAssertTrue([resultArray count] > 0); - } - [expectation fulfill]; - }]; + [expectation fulfill]; + }]; [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } @@ -700,7 +700,7 @@ - (void)test004_Subscribe MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@6 attributeID:@0 minInterval:@2 @@ -791,22 +791,22 @@ - (void)test005_ReadAttributeFailure MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - [device readAttributeWithEndpointID:@0 - clusterID:@10000 - attributeID:@0 - params:nil - queue:queue - completion:^(id _Nullable values, NSError * _Nullable error) { - NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); + [device readAttributePathWithEndpointID:@0 + clusterID:@10000 + attributeID:@0 + params:nil + queue:queue + completion:^(id _Nullable values, NSError * _Nullable error) { + NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - XCTAssertNil(values); - // Error is copied over XPC and hence cannot use MTRErrorTestUtils utility which checks against a - // local domain string object. - XCTAssertTrue([error.domain isEqualToString:MTRInteractionErrorDomain]); - XCTAssertEqual(error.code, EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER); + XCTAssertNil(values); + // Error is copied over XPC and hence cannot use MTRErrorTestUtils utility which checks against + // a local domain string object. + XCTAssertTrue([error.domain isEqualToString:MTRInteractionErrorDomain]); + XCTAssertEqual(error.code, EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER); - [expectation fulfill]; - }]; + [expectation fulfill]; + }]; [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } @@ -910,7 +910,7 @@ - (void)test008_SubscribeFailure MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - [device subscribeAttributeWithEndpointID:@10000 + [device subscribeAttributePathWithEndpointID:@10000 clusterID:@6 attributeID:@0 minInterval:@2 @@ -949,31 +949,31 @@ - (void)test009_ReadAttributeWithParams MTRReadParams * readParams = [[MTRReadParams alloc] init]; readParams.fabricFiltered = @NO; - [device readAttributeWithEndpointID:nil - clusterID:@29 - attributeID:@0 - params:readParams - queue:queue - completion:^(id _Nullable values, NSError * _Nullable error) { - NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - - XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); - - { - XCTAssertTrue([values isKindOfClass:[NSArray class]]); - NSArray * resultArray = values; - for (NSDictionary * result in resultArray) { - MTRAttributePath * path = result[@"attributePath"]; - XCTAssertEqual([path.cluster unsignedIntegerValue], 29); - XCTAssertEqual([path.attribute unsignedIntegerValue], 0); - XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); - XCTAssertTrue([result[@"data"][@"type"] isEqualToString:@"Array"]); + [device readAttributePathWithEndpointID:nil + clusterID:@29 + attributeID:@0 + params:readParams + queue:queue + completion:^(id _Nullable values, NSError * _Nullable error) { + NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); + + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); + + { + XCTAssertTrue([values isKindOfClass:[NSArray class]]); + NSArray * resultArray = values; + for (NSDictionary * result in resultArray) { + MTRAttributePath * path = result[@"attributePath"]; + XCTAssertEqual([path.cluster unsignedIntegerValue], 29); + XCTAssertEqual([path.attribute unsignedIntegerValue], 0); + XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); + XCTAssertTrue([result[@"data"][@"type"] isEqualToString:@"Array"]); + } + XCTAssertTrue([resultArray count] > 0); } - XCTAssertTrue([resultArray count] > 0); - } - [expectation fulfill]; - }]; + [expectation fulfill]; + }]; [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } @@ -999,7 +999,7 @@ - (void)test010_SubscribeWithNoParams // Subscribe XCTestExpectation * subscribeExpectation = [self expectationWithDescription:@"subscribe OnOff attribute"]; - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@6 attributeID:@0 minInterval:@2 @@ -1025,7 +1025,7 @@ - (void)test010_SubscribeWithNoParams // Setup 2nd subscriber subscribeExpectation = [self expectationWithDescription:@"subscribe CurrentLevel attribute"]; - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@8 attributeID:@0 minInterval:@2 @@ -1178,7 +1178,7 @@ - (void)test011_SubscribeWithParams // Subscribe XCTestExpectation * subscribeExpectation = [self expectationWithDescription:@"subscribe OnOff attribute"]; - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@6 attributeID:@0 minInterval:@2 @@ -1206,7 +1206,7 @@ - (void)test011_SubscribeWithParams MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc] init]; myParams.keepPreviousSubscriptions = @NO; subscribeExpectation = [self expectationWithDescription:@"subscribe CurrentLevel attribute"]; - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@8 attributeID:@0 minInterval:@2 @@ -1366,7 +1366,7 @@ - (void)test012_SubscribeKeepingPreviousSubscription // Subscribe XCTestExpectation * subscribeExpectation = [self expectationWithDescription:@"subscribe OnOff attribute"]; - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@6 attributeID:@0 minInterval:@2 @@ -1394,7 +1394,7 @@ - (void)test012_SubscribeKeepingPreviousSubscription subscribeExpectation = [self expectationWithDescription:@"subscribe CurrentLevel attribute"]; MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc] init]; myParams.keepPreviousSubscriptions = @YES; - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@8 attributeID:@0 minInterval:@2 @@ -1601,7 +1601,7 @@ - (void)test013_TimedWriteAttribute // subscribe, which should get the new value at the timeout expectation = [self expectationWithDescription:@"Subscribed"]; __block void (^reportHandler)(id _Nullable values, NSError * _Nullable error); - [device subscribeAttributeWithEndpointID:@1 + [device subscribeAttributePathWithEndpointID:@1 clusterID:@8 attributeID:@17 minInterval:@2 @@ -1644,7 +1644,8 @@ - (void)test013_TimedWriteAttribute // Read back to see if the timed write has taken effect expectation = [self expectationWithDescription:@"Read LevelControl Brightness attribute after pause"]; - [device readAttributeWithEndpointID:@1 + [device + readAttributePathWithEndpointID:@1 clusterID:@8 attributeID:@17 params:nil diff --git a/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m b/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m index 70061248a89cc6..d55a52a548e6a6 100644 --- a/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m +++ b/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m @@ -372,20 +372,20 @@ - (void)testReadAttributeSuccess XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointID:myEndpointId - clusterID:myClusterId - attributeID:myAttributeId - params:nil - queue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myValues isEqual:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; + [device readAttributePathWithEndpointID:myEndpointId + clusterID:myClusterId + attributeID:myAttributeId + params:nil + queue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myValues isEqual:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -434,20 +434,20 @@ - (void)testReadAttributeWithParamsSuccess XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointID:myEndpointId - clusterID:myClusterId - attributeID:myAttributeId - params:myParams - queue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myValues isEqual:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; + [device readAttributePathWithEndpointID:myEndpointId + clusterID:myClusterId + attributeID:myAttributeId + params:myParams + queue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myValues isEqual:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -487,19 +487,19 @@ - (void)testReadAttributeFailure XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointID:myEndpointId - clusterID:myClusterId - attributeID:myAttributeId - params:nil - queue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; + [device readAttributePathWithEndpointID:myEndpointId + clusterID:myClusterId + attributeID:myAttributeId + params:nil + queue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -913,7 +913,7 @@ - (void)testSubscribeAttributeSuccess XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:myClusterId attributeID:myAttributeId minInterval:myMinInterval @@ -1033,7 +1033,7 @@ - (void)testSubscribeAttributeWithParamsSuccess XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:myClusterId attributeID:myAttributeId minInterval:myMinInterval @@ -1148,7 +1148,7 @@ - (void)testBadlyFormattedReport XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:myClusterId attributeID:myAttributeId minInterval:myMinInterval @@ -1262,7 +1262,7 @@ - (void)testReportWithUnrelatedEndpointId XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:myClusterId attributeID:myAttributeId minInterval:myMinInterval @@ -1378,7 +1378,7 @@ - (void)testReportWithUnrelatedClusterId XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:myClusterId attributeID:myAttributeId minInterval:myMinInterval @@ -1494,7 +1494,7 @@ - (void)testReportWithUnrelatedAttributeId XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:myClusterId attributeID:myAttributeId minInterval:myMinInterval @@ -1610,7 +1610,7 @@ - (void)testReportWithUnrelatedNode XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:myClusterId attributeID:myAttributeId minInterval:myMinInterval @@ -1725,7 +1725,7 @@ - (void)testSubscribeMultiEndpoints XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:nil + [device subscribeAttributePathWithEndpointID:nil clusterID:myClusterId attributeID:myAttributeId minInterval:myMinInterval @@ -1840,7 +1840,7 @@ - (void)testSubscribeMultiClusters XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:nil attributeID:myAttributeId minInterval:myMinInterval @@ -1955,7 +1955,7 @@ - (void)testSubscribeMultiAttributes XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:myClusterId attributeID:nil minInterval:myMinInterval @@ -2081,7 +2081,7 @@ - (void)testMutiSubscriptions XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointID:myEndpointId + [device subscribeAttributePathWithEndpointID:myEndpointId clusterID:myClusterId attributeID:myAttributeId minInterval:myMinInterval @@ -2543,17 +2543,17 @@ - (void)testXPCConnectionFailure XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointID:myEndpointId - clusterID:myClusterId - attributeID:myAttributeId - params:nil - queue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - }]; + [device readAttributePathWithEndpointID:myEndpointId + clusterID:myClusterId + attributeID:myAttributeId + params:nil + queue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + }]; }]; [self waitForExpectations:@[ responseExpectation ] timeout:kTimeoutInSeconds];