FF-1135 - added telegram plugin

This commit is contained in:
John Andrews
2023-10-24 09:15:17 +13:00
parent 954fdb54d8
commit 18a03d5e13
13 changed files with 363 additions and 17 deletions

View File

@@ -0,0 +1,14 @@
namespace FileFlows.Telegram;
/// <summary>
/// Extension methods
/// </summary>
internal static class ExtensionMethods
{
/// <summary>
/// Returns an empty string as null, otherwise returns the original string
/// </summary>
/// <param name="str">the input string</param>
/// <returns>the string or null if empty</returns>
public static string? EmptyAsNull(this string str) => str == string.Empty ? null : str;
}