Class SMSHelper


  • public final class SMSHelper
    extends Object
    Static helper gathering mutual operations of the SMS plugin
    • Method Detail

      • transformPhoneNumber

        public static String transformPhoneNumber​(String phoneNumber)
        Transform the phone number to the format defined by the admin
        Parameters:
        phoneNumber - the phone number to transform
        Returns:
        the transformed phone number
      • checkPhoneNumber

        public static boolean checkPhoneNumber​(String phoneNumber)
        Check if the phoneNumber is in the international format defined by the admin
        Parameters:
        phoneNumber - the phone number
        Returns:
        true if the phone number matches the format,false otherwise