@@ -225,11 +225,11 @@ public override void Serialize(TLVWriter writer, long structNumber = -1) {
225225 }
226226
227227 // Commands
228- public async Task < AttestationResponse ? > AttestationRequest ( Exchange exchange , byte [ ] AttestationNonce ) {
228+ public async Task < AttestationResponse ? > AttestationRequest ( SecureSession session , byte [ ] AttestationNonce ) {
229229 AttestationRequestPayload requestFields = new AttestationRequestPayload ( ) {
230230 AttestationNonce = AttestationNonce ,
231231 } ;
232- InvokeResponseIB resp = await InteractionManager . ExecCommand ( exchange , endPoint , CLUSTER_ID , 0x00 , requestFields ) ;
232+ InvokeResponseIB resp = await InteractionManager . ExecCommand ( session , endPoint , CLUSTER_ID , 0x00 , requestFields ) ;
233233 if ( ! validateResponse ( resp ) )
234234 return null ;
235235 return new AttestationResponse ( ) {
@@ -238,24 +238,24 @@ public override void Serialize(TLVWriter writer, long structNumber = -1) {
238238 } ;
239239 }
240240
241- public async Task < CertificateChainResponse ? > CertificateChainRequest ( Exchange exchange , CertificateChainTypeEnum CertificateType ) {
241+ public async Task < CertificateChainResponse ? > CertificateChainRequest ( SecureSession session , CertificateChainTypeEnum CertificateType ) {
242242 CertificateChainRequestPayload requestFields = new CertificateChainRequestPayload ( ) {
243243 CertificateType = CertificateType ,
244244 } ;
245- InvokeResponseIB resp = await InteractionManager . ExecCommand ( exchange , endPoint , CLUSTER_ID , 0x02 , requestFields ) ;
245+ InvokeResponseIB resp = await InteractionManager . ExecCommand ( session , endPoint , CLUSTER_ID , 0x02 , requestFields ) ;
246246 if ( ! validateResponse ( resp ) )
247247 return null ;
248248 return new CertificateChainResponse ( ) {
249249 Certificate = ( byte [ ] ) GetField ( resp , 0 ) ,
250250 } ;
251251 }
252252
253- public async Task < CSRResponse ? > CSRRequest ( Exchange exchange , byte [ ] CSRNonce , bool IsForUpdateNOC ) {
253+ public async Task < CSRResponse ? > CSRRequest ( SecureSession session , byte [ ] CSRNonce , bool IsForUpdateNOC ) {
254254 CSRRequestPayload requestFields = new CSRRequestPayload ( ) {
255255 CSRNonce = CSRNonce ,
256256 IsForUpdateNOC = IsForUpdateNOC ,
257257 } ;
258- InvokeResponseIB resp = await InteractionManager . ExecCommand ( exchange , endPoint , CLUSTER_ID , 0x04 , requestFields ) ;
258+ InvokeResponseIB resp = await InteractionManager . ExecCommand ( session , endPoint , CLUSTER_ID , 0x04 , requestFields ) ;
259259 if ( ! validateResponse ( resp ) )
260260 return null ;
261261 return new CSRResponse ( ) {
@@ -264,15 +264,15 @@ public override void Serialize(TLVWriter writer, long structNumber = -1) {
264264 } ;
265265 }
266266
267- public async Task < NOCResponse ? > AddNOC ( Exchange exchange , byte [ ] NOCValue , byte [ ] ICACValue , byte [ ] IPKValue , ulong CaseAdminSubject , ushort AdminVendorId ) {
267+ public async Task < NOCResponse ? > AddNOC ( SecureSession session , byte [ ] NOCValue , byte [ ] ICACValue , byte [ ] IPKValue , ulong CaseAdminSubject , ushort AdminVendorId ) {
268268 AddNOCPayload requestFields = new AddNOCPayload ( ) {
269269 NOCValue = NOCValue ,
270270 ICACValue = ICACValue ,
271271 IPKValue = IPKValue ,
272272 CaseAdminSubject = CaseAdminSubject ,
273273 AdminVendorId = AdminVendorId ,
274274 } ;
275- InvokeResponseIB resp = await InteractionManager . ExecCommand ( exchange , endPoint , CLUSTER_ID , 0x06 , requestFields ) ;
275+ InvokeResponseIB resp = await InteractionManager . ExecCommand ( session , endPoint , CLUSTER_ID , 0x06 , requestFields ) ;
276276 if ( ! validateResponse ( resp ) )
277277 return null ;
278278 return new NOCResponse ( ) {
@@ -282,12 +282,12 @@ public override void Serialize(TLVWriter writer, long structNumber = -1) {
282282 } ;
283283 }
284284
285- public async Task < NOCResponse ? > UpdateNOC ( Exchange exchange , byte [ ] NOCValue , byte [ ] ICACValue ) {
285+ public async Task < NOCResponse ? > UpdateNOC ( SecureSession session , byte [ ] NOCValue , byte [ ] ICACValue ) {
286286 UpdateNOCPayload requestFields = new UpdateNOCPayload ( ) {
287287 NOCValue = NOCValue ,
288288 ICACValue = ICACValue ,
289289 } ;
290- InvokeResponseIB resp = await InteractionManager . ExecCommand ( exchange , endPoint , CLUSTER_ID , 0x07 , requestFields ) ;
290+ InvokeResponseIB resp = await InteractionManager . ExecCommand ( session , endPoint , CLUSTER_ID , 0x07 , requestFields ) ;
291291 if ( ! validateResponse ( resp ) )
292292 return null ;
293293 return new NOCResponse ( ) {
@@ -297,11 +297,11 @@ public override void Serialize(TLVWriter writer, long structNumber = -1) {
297297 } ;
298298 }
299299
300- public async Task < NOCResponse ? > UpdateFabricLabel ( Exchange exchange , string Label ) {
300+ public async Task < NOCResponse ? > UpdateFabricLabel ( SecureSession session , string Label ) {
301301 UpdateFabricLabelPayload requestFields = new UpdateFabricLabelPayload ( ) {
302302 Label = Label ,
303303 } ;
304- InvokeResponseIB resp = await InteractionManager . ExecCommand ( exchange , endPoint , CLUSTER_ID , 0x09 , requestFields ) ;
304+ InvokeResponseIB resp = await InteractionManager . ExecCommand ( session , endPoint , CLUSTER_ID , 0x09 , requestFields ) ;
305305 if ( ! validateResponse ( resp ) )
306306 return null ;
307307 return new NOCResponse ( ) {
@@ -311,11 +311,11 @@ public override void Serialize(TLVWriter writer, long structNumber = -1) {
311311 } ;
312312 }
313313
314- public async Task < NOCResponse ? > RemoveFabric ( Exchange exchange , byte FabricIndex ) {
314+ public async Task < NOCResponse ? > RemoveFabric ( SecureSession session , byte FabricIndex ) {
315315 RemoveFabricPayload requestFields = new RemoveFabricPayload ( ) {
316316 FabricIndex = FabricIndex ,
317317 } ;
318- InvokeResponseIB resp = await InteractionManager . ExecCommand ( exchange , endPoint , CLUSTER_ID , 0x0A , requestFields ) ;
318+ InvokeResponseIB resp = await InteractionManager . ExecCommand ( session , endPoint , CLUSTER_ID , 0x0A , requestFields ) ;
319319 if ( ! validateResponse ( resp ) )
320320 return null ;
321321 return new NOCResponse ( ) {
@@ -325,11 +325,11 @@ public override void Serialize(TLVWriter writer, long structNumber = -1) {
325325 } ;
326326 }
327327
328- public async Task < bool > AddTrustedRootCertificate ( Exchange exchange , byte [ ] RootCACertificate ) {
328+ public async Task < bool > AddTrustedRootCertificate ( SecureSession session , byte [ ] RootCACertificate ) {
329329 AddTrustedRootCertificatePayload requestFields = new AddTrustedRootCertificatePayload ( ) {
330330 RootCACertificate = RootCACertificate ,
331331 } ;
332- InvokeResponseIB resp = await InteractionManager . ExecCommand ( exchange , endPoint , CLUSTER_ID , 0x0B , requestFields ) ;
332+ InvokeResponseIB resp = await InteractionManager . ExecCommand ( session , endPoint , CLUSTER_ID , 0x0B , requestFields ) ;
333333 return validateResponse ( resp ) ;
334334 }
335335
0 commit comments