Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
161f94fd41
|
||
|
|
3980acf79e
|
||
|
|
e126e4bc06
|
||
|
|
d99aa2587a
|
@@ -1,8 +1,5 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
pub const MESSAGE_EVENT_RESPONSE_STATUS_INSTANT: &str = "INSTANT";
|
|
||||||
pub const MESSAGE_EVENT_RESPONSE_STATUS_SCHEDULED: &str = "SCHEDULED";
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
pub struct MessageEventResponse {
|
pub struct MessageEventResponse {
|
||||||
pub id: uuid::Uuid,
|
pub id: uuid::Uuid,
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
pub mod event;
|
pub mod event;
|
||||||
pub mod scheduling;
|
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
|
||||||
pub struct ScheduledMessageEvent {
|
|
||||||
id: uuid::Uuid,
|
|
||||||
contact_id: uuid::Uuid,
|
|
||||||
message_id: uuid::Uuid,
|
|
||||||
scheduled_message_id: uuid::Uuid,
|
|
||||||
#[serde(with = "time::serde::rfc3339::option")]
|
|
||||||
created: Option<time::OffsetDateTime>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
|
||||||
pub struct ScheduledMessage {
|
|
||||||
id: uuid::Uuid,
|
|
||||||
#[serde(with = "time::serde::rfc3339::option")]
|
|
||||||
scheduled: Option<time::OffsetDateTime>,
|
|
||||||
#[serde(with = "time::serde::rfc3339::option")]
|
|
||||||
created: Option<time::OffsetDateTime>,
|
|
||||||
status: String,
|
|
||||||
user_id: uuid::Uuid,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const READY: &str = "READY";
|
|
||||||
pub const PENDING: &str = "PENDING";
|
|
||||||
pub const PROCESSING: &str = "PROCESSING";
|
|
||||||
pub const DONE: &str = "DONE";
|
|
||||||
Reference in New Issue
Block a user