FF-1353 - created pushover plugin

This commit is contained in:
John Andrews
2024-02-20 14:10:09 +13:00
parent d726212ab0
commit 4ec0a68c0e
10 changed files with 433 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
namespace FileFlows.Pushover;
/// <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;
}