public MifareClassicSectorModel(short _cx, AccessCondition_MifareClassicSectorTrailer _readKeyA, AccessCondition_MifareClassicSectorTrailer _writeKeyA, AccessCondition_MifareClassicSectorTrailer _readAccessCondition, AccessCondition_MifareClassicSectorTrailer _writeAccessCondition, AccessCondition_MifareClassicSectorTrailer _readKeyB, AccessCondition_MifareClassicSectorTrailer _writeKeyB) { SectorAccessCondition = new MifareClassicSectorAccessConditionModel(); DataBlock = new ObservableCollection <MifareClassicDataBlockModel>(); DataBlock0 = new MifareClassicDataBlockModel(); DataBlock1 = new MifareClassicDataBlockModel(); DataBlock2 = new MifareClassicDataBlockModel(); DataBlockCombined = new MifareClassicDataBlockModel(); Cx = _cx; Read_KeyA = _readKeyA; Write_KeyA = _writeKeyA; Read_AccessCondition_MifareClassicSectorTrailer = _readAccessCondition; Write_AccessCondition_MifareClassicSectorTrailer = _writeAccessCondition; Read_KeyB = _readKeyB; Write_KeyB = _writeKeyB; }
public MifareClassicMADModel( uint _cx, AccessCondition_MifareClassicSectorTrailer _readDataBlock, AccessCondition_MifareClassicSectorTrailer _writeDataBlock, AccessCondition_MifareClassicSectorTrailer _incDataBlock, AccessCondition_MifareClassicSectorTrailer _decDataBlock) { Cx = _cx; Read_DataBlock = _readDataBlock; Write_DataBlock = _writeDataBlock; Increment_DataBlock = _incDataBlock; Decrement_DataBlock = _decDataBlock; }
public MifareClassicDataBlockModel( uint _cx, SectorTrailer_DataBlock _blockNumber, AccessCondition_MifareClassicSectorTrailer _readDataBlock, AccessCondition_MifareClassicSectorTrailer _writeDataBlock, AccessCondition_MifareClassicSectorTrailer _incDataBlock, AccessCondition_MifareClassicSectorTrailer _decDataBlock) { Cx = _cx; DataBlockNumberSectorBased = (int)_blockNumber; Read_DataBlock = _readDataBlock; Write_DataBlock = _writeDataBlock; Increment_DataBlock = _incDataBlock; Decrement_DataBlock = _decDataBlock; }
public MifareClassicSectorAccessConditionModel(short _cx, AccessCondition_MifareClassicSectorTrailer _readKeyA, AccessCondition_MifareClassicSectorTrailer _writeKeyA, AccessCondition_MifareClassicSectorTrailer _readAccessCondition, AccessCondition_MifareClassicSectorTrailer _writeAccessCondition, AccessCondition_MifareClassicSectorTrailer _readKeyB, AccessCondition_MifareClassicSectorTrailer _writeKeyB) { Cx = _cx; Read_KeyA = _readKeyA; Write_KeyA = _writeKeyA; Read_AccessCondition_MifareClassicSectorTrailer = _readAccessCondition; Write_AccessCondition_MifareClassicSectorTrailer = _writeAccessCondition; Read_KeyB = _readKeyB; Write_KeyB = _writeKeyB; }