MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / NotificationScheduled

Method NotificationScheduled

api/pkg/entities/message.go:208–217  ·  view source on GitHub ↗

NotificationScheduled registers a message as scheduled

(timestamp time.Time)

Source from the content-addressed store, hash-verified

206
207// NotificationScheduled registers a message as scheduled
208func (message *Message) NotificationScheduled(timestamp time.Time) *Message {
209 message.NotificationScheduledAt = &timestamp
210
211 if message.IsExpired() || message.IsPending() {
212 message.Status = MessageStatusScheduled
213 }
214 message.updateOrderTimestamp(timestamp)
215
216 return message
217}
218
219// AddSendAttempt configures a Message for sending
220func (message *Message) AddSendAttempt(timestamp time.Time) *Message {

Callers 1

Calls 3

IsExpiredMethod · 0.95
IsPendingMethod · 0.95
updateOrderTimestampMethod · 0.95

Tested by

no test coverage detected