Example #1
0
        /// <summary>
        /// Gửi text cho service EnVangVip
        /// </summary>
        /// <param name="soHieuXe">The so hieu xe.</param>
        /// <param name="idCuocGoi">The identifier cuoc goi.</param>
        /// <param name="message">The message.</param>
        /// <returns></returns>
        /// <Modified>
        /// Name     Date         Comments
        /// LuanBH  8/21/2015   created
        /// </Modified>
        public static bool SendText(string soHieuXe, long idCuocGoi, string message)
        {
            var vehiclePlates = ProcessFastTaxi.GetVehiclePlatesFromPrivateCode(soHieuXe, ",");

            if (string.IsNullOrEmpty(vehiclePlates))
            {
                return(false);
            }
            CuocGoi.EnVangVIP_TaoMessageConfirm(idCuocGoi, 3242, false, false, message, soHieuXe);
            return(Service_Common.EnvangVip.TryGet(p => p.SendText(vehiclePlates, message)).Success);
        }
Example #2
0
 /// <summary>
 /// Gửi text cho service EnVangVip
 /// </summary>
 /// <param name="cuocGoi">The cuoc goi.</param>
 /// <returns></returns>
 /// <Modified>
 /// Name     Date         Comments
 /// LuanBH  8/7/2015   created
 /// </Modified>
 public static bool SendText(CuocGoi cuocGoi)
 {
     if (HasSendMobile(cuocGoi.KhongDungMobileService.Value))
     {
         var vehiclePlates = ProcessFastTaxi.GetVehiclePlatesFromPrivateCode(cuocGoi.XeDon, ",");
         if (string.IsNullOrEmpty(vehiclePlates))
         {
             return(false);
         }
         CuocGoi.EnVangVIP_TaoMessageConfirm(cuocGoi.IDCuocGoi, 3242, false, false, cuocGoi.GhiChuDienThoai, cuocGoi.XeDon);
         return(Service_Common.EnvangVip.TryGet(p => p.SendText(vehiclePlates, cuocGoi.GhiChuDienThoai)).Success);
     }
     return(false);
 }