mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-29 11:26:29 -05:00
move lxmf message fields class to src folder
This commit is contained in:
parent
2cac99ea75
commit
3f4da4198c
2 changed files with 1 additions and 1 deletions
25
src/lxmf_message_fields.py
Normal file
25
src/lxmf_message_fields.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
from typing import List
|
||||
|
||||
|
||||
# helper class for passing around an lxmf image field
|
||||
class LxmfImageField:
|
||||
|
||||
def __init__(self, image_type: str, image_bytes: bytes):
|
||||
self.image_type = image_type
|
||||
self.image_bytes = image_bytes
|
||||
|
||||
|
||||
# helper class for passing around an lxmf file attachment
|
||||
class LxmfFileAttachment:
|
||||
|
||||
def __init__(self, file_name: str, file_bytes: bytes):
|
||||
self.file_name = file_name
|
||||
self.file_bytes = file_bytes
|
||||
|
||||
|
||||
# helper class for passing around an lxmf file attachments field
|
||||
class LxmfFileAttachmentsField:
|
||||
|
||||
def __init__(self, file_attachments: List[LxmfFileAttachment]):
|
||||
self.file_attachments = file_attachments
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue