Skip to content

Commit

Permalink
Fixing this
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple committed Nov 30, 2023
1 parent 010f8ed commit 5103a56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1696,6 +1696,11 @@ - (void)setClientDataForKey:(NSString *)key value:(id<NSSecureCoding>)value
}

- (id<NSSecureCoding>)clientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID
{
return [self.temporaryMetaDataCache objectForKey:[NSString stringWithFormat:@"%@:%@", key, endpointID]];
}

- (void)setClientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID value:(id<NSSecureCoding>)value
{
if (self.temporaryMetaDataCache == nil) {
self.temporaryMetaDataCache = [NSMutableDictionary dictionary];
Expand All @@ -1704,11 +1709,6 @@ - (void)setClientDataForKey:(NSString *)key value:(id<NSSecureCoding>)value
[self.temporaryMetaDataCache setObject:value forKey:[NSString stringWithFormat:@"%@:%@", key, endpointID]];
}

- (void)setClientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID value:(id<NSSecureCoding>)value
{
return [self.temporaryMetaDataCache objectForKey:[NSString stringWithFormat:@"%@:%@", key, endpointID]];
}

@end

@implementation MTRDevice (Deprecated)
Expand Down

0 comments on commit 5103a56

Please sign in to comment.