using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EVCB_OCPP.Packet.Utilities
{
    public static class FormatHelper
    {
        /// <summary>
        /// 驗證字串長度是否小於最大允許長度
        /// </summary>
        /// <param name="input"></param>
        /// <param name="maxLength">最大允許長度</param>
        /// <returns></returns>
        public static bool Validate(string input, int maxLength)
        {
            return input != null && input.Length <= maxLength;
        }
    }
}
