Skip to content

Commit c30dc71

Browse files
committed
feature: finally figured out custom action's purpose, this should allow for tagging of pertinent people, and allow for override of checks to always cause update
1 parent f61f04c commit c30dc71

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

FileSystemMonitor/CustomActions.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Newtonsoft.Json;
2+
3+
namespace TeamsFileNotifier.FileSystemMonitor
4+
{
5+
public class CustomActions
6+
{
7+
[JsonProperty("notify_team_members")]
8+
public List<string> TagTeamMembers { get; private set; }
9+
[JsonProperty("always_update")]
10+
public bool OverrideUpdateChecks { get; private set; }
11+
public CustomActions() {
12+
TagTeamMembers = new List<string>();
13+
OverrideUpdateChecks = false;
14+
}
15+
}
16+
}

FileSystemMonitor/FileExtensionAction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public class FileExtensionAction
1313
public string Extension { get; set; }
1414

1515
[JsonProperty("custom_action")]
16-
public string CustomActionMessage { get; set; }
16+
public CustomActions CustomAction { get; set; }
1717

18-
private FileExtensionAction() { this.Extension = String.Empty; this.CustomActionMessage = String.Empty; }
18+
private FileExtensionAction() { this.Extension = String.Empty; this.CustomAction = new CustomActions(); }
1919
}
2020
}

0 commit comments

Comments
 (0)