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

Method TotalMessages

api/pkg/entities/billing_usage.go:23–25  ·  view source on GitHub ↗

TotalMessages returns the sum of sent and received messages

()

Source from the content-addressed store, hash-verified

21
22// TotalMessages returns the sum of sent and received messages
23func (usage *BillingUsage) TotalMessages() uint {
24 return usage.SentMessages + usage.ReceivedMessages
25}
26
27// IsEntitled checks if a user can send `count` messages
28func (usage *BillingUsage) IsEntitled(count, limit uint) bool {

Callers 3

IsEntitledMethod · 0.95
UsageLimitAlertMethod · 0.80
shouldSendAlertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected