//Kavenegar
        public static Exception SendSMS_K(string token, string reciever, SMSMode mode)
        {
            try
            {
                var api = new KavenegarApi(KavenegarApiKey);
                switch (mode)
                {
                case SMSMode.VERIFICATION:
                    api.VerifyLookup(reciever, token, "TeelehVerification");
                    break;

                case SMSMode.PASSWORD_RECOVERY:
                    api.VerifyLookup(reciever, token, "TeelehForgetPassword");
                    break;
                }
                return(null);
            }
            catch (Exception e)
            {
                return(e);
            }
        }
예제 #2
0
 public static ATCommand SetMode(SMSMode mode)
 {
     return(new ATCommand(MODE_COMMAND, mode));
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see
 /// cref="T:LogicLayer.MessageFormat">MessageFormat</see> class.
 /// </summary>
 /// <param name="mode">Set mode of format</param>
 public MessageFormat(SMSMode mode)
 {
     Mode = mode;
 }