mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 22:26:33 +00:00
9e5b0f2cc2
Made-with: Cursor
16 lines
378 B
Cython
16 lines
378 B
Cython
cdef enum AIAvailabilityEnum:
|
|
NONE = 0
|
|
DOWNLOADING = 10
|
|
CONVERTING = 20
|
|
UPLOADING = 30
|
|
ENABLED = 200
|
|
WARNING = 300
|
|
ERROR = 500
|
|
|
|
cdef class AIAvailabilityStatus:
|
|
cdef AIAvailabilityEnum status
|
|
cdef str error_message
|
|
cdef object _lock
|
|
|
|
cdef bytes serialize(self)
|
|
cdef set_status(self, AIAvailabilityEnum status, str error_message=*) |