public static int GetMaxMessageLength(PayloadMethod payloadMethod, EncryptionType?encryptionType = null) { return(payloadMethod switch { PayloadMethod.None => 255, PayloadMethod.Aes => 223, _ => 159 });
public EncryptionMethod(string name, string description, PayloadMethod method) { Name = name; Description = description; Method = method; }