Create an enum for Message status

This commit is contained in:
Steven Nguyen
2024-01-04 18:58:01 +01:00
committed by Torsten Dittmann
parent ff374f3480
commit 10dfadbbc7
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace Appwrite\Enum;
enum MessageStatus: string
{
/**
* Message that is not ready to be sent
*/
case Draft = 'draft';
/**
* Scheduled to be sent for a later time
*/
case Scheduled = 'scheduled';
/**
* Picked up by the worker and starting to send
*/
case Processing = 'processing';
/**
* Sent without errors
*/
case Sent = 'sent';
/**
* Sent with some errors
*/
case Failed = 'failed';
}