checkNotificationMessageLength

fun checkNotificationMessageLength(notificationMessage: String?, notificationMessageMaxLength: Long = MomoConstants.NOTIFICATION_MESSAGE_LENGTH): Boolean

Checks if the length of the notification message is within the allowed limit.

Return

True if the message length is within the limit, false otherwise.

Parameters

notificationMessage

The notification message to check.

notificationMessageMaxLength

The maximum allowed length for the notification message.