support sending audio attachments over lxmf and saving to database

This commit is contained in:
liamcottle 2024-06-02 22:44:23 +12:00
parent 3f4da4198c
commit f5a13e2d1a
2 changed files with 37 additions and 2 deletions

View file

@ -1,6 +1,14 @@
from typing import List
# helper class for passing around an lxmf audio field
class LxmfAudioField:
def __init__(self, audio_mode: int, audio_bytes: bytes):
self.audio_mode = audio_mode
self.audio_bytes = audio_bytes
# helper class for passing around an lxmf image field
class LxmfImageField: