import contact

This commit is contained in:
Florent de Lamotte 2025-05-16 09:42:44 +02:00
parent 1150ac31ab
commit fe2df52403
2 changed files with 5 additions and 1 deletions

View file

@ -253,6 +253,10 @@ class CommandHandler:
data = b"\x11"
return await self.send(data, [EventType.CONTACT_URI, EventType.ERROR])
async def import_contact(self, card_data) -> Event:
data = b"\x12" + card_data
return await self.send(data, [EventType.OK, EventType.ERROR])
async def remove_contact(self, key: DestinationType) -> Event:
key_bytes = _validate_destination(key, prefix_length=32)
logger.debug(f"Removing contact: {key_bytes.hex()}")