File tree 5 files changed +12
-3
lines changed
app/src/main/java/me/capcom/smsgateway/modules
5 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ class GatewayApi(
172
172
val isEncrypted : Boolean? ,
173
173
val validUntil : Date ? ,
174
174
val priority : Byte? ,
175
+ val createdAt : Date ? ,
175
176
)
176
177
177
178
data class RecipientState (
Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ class GatewayService(
230
230
message.id,
231
231
message.message,
232
232
message.phoneNumbers,
233
- message.isEncrypted ? : false
233
+ message.isEncrypted ? : false ,
234
+ message.createdAt ? : Date (),
234
235
),
235
236
SendParams (
236
237
message.withDeliveryReport ? : true ,
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ class MessagesRoutes(
67
67
request.id ? : NanoIdUtils .randomNanoId(),
68
68
request.message,
69
69
request.phoneNumbers,
70
- request.isEncrypted ? : false
70
+ request.isEncrypted ? : false ,
71
+ Date (),
71
72
),
72
73
SendParams (
73
74
request.withDeliveryReport ? : true ,
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ class MessagesService(
94
94
request.params.skipPhoneValidation,
95
95
request.params.priority ? : Message .PRIORITY_DEFAULT ,
96
96
request.source,
97
+
98
+ createdAt = request.message.createdAt.time,
97
99
),
98
100
request.message.phoneNumbers.map {
99
101
MessageRecipient (
Original file line number Diff line number Diff line change 1
1
package me.capcom.smsgateway.modules.messages.data
2
2
3
+ import java.util.Date
4
+
3
5
data class Message (
4
6
val id : String ,
5
7
val text : String ,
6
8
val phoneNumbers : List <String >,
7
-
9
+
8
10
val isEncrypted : Boolean ,
11
+
12
+ val createdAt : Date ,
9
13
)
You can’t perform that action at this time.
0 commit comments