public SendAuthorizationDataCommand(string strName, IConnectionContext connectionContext) : base(NukiCommandType.AuthorizationData, connectionContext, 5) { AddField(nameof(ClientIDType), NukiClientTypeID.App); AddField(nameof(UniqueClientID), connectionContext.UniqueClientID); AddField(nameof(ClientName), strName, 32, FieldFlags.All); AddField(nameof(ClientNonce), connectionContext.CreateNonce()); AddField(nameof(SmartLockNonce), connectionContext.SmartLockNonce, FieldFlags.PartOfAuthentication); }