Create an enum for Message status

This commit is contained in:
Steven Nguyen 2024-01-02 22:42:17 +00:00 committed by Torsten Dittmann
parent ff374f3480
commit 10dfadbbc7

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';
}