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

Method Sanitize

api/pkg/requests/phone_update_request.go:39–47  ·  view source on GitHub ↗

Sanitize sets defaults to MessageOutstanding

()

Source from the content-addressed store, hash-verified

37
38// Sanitize sets defaults to MessageOutstanding
39func (input *PhoneUpsert) Sanitize() PhoneUpsert {
40 input.FcmToken = strings.TrimSpace(input.FcmToken)
41 input.PhoneNumber = input.sanitizeAddress(input.PhoneNumber)
42 input.SIM = input.sanitizeSIM(input.SIM)
43 if input.MissedCallAutoReply != nil {
44 input.MissedCallAutoReply = input.sanitizeStringPointer(*input.MissedCallAutoReply)
45 }
46 return *input
47}
48
49// ToUpsertParams converts PhoneUpsert to services.PhoneUpsertParams.
50// The body parameter is the raw JSON request body used to detect which fields were explicitly sent.

Callers 1

UpsertMethod · 0.95

Calls 3

sanitizeSIMMethod · 0.80
sanitizeStringPointerMethod · 0.80
sanitizeAddressMethod · 0.45

Tested by

no test coverage detected