Ejemplo n.º 1
0
        private async Task SendAlerts()
        {
            var nextAlarm = Utilities.CalculateSeconds(DateTime.Now);
            var users     = userPreferences.GetUsers(currentTime, nextAlarm);

            foreach (UserTeam ut in users)
            {
                AuthResponseDTO teamInfo = credentials.GetValue(ut.teamID);
                await slackAPI.SendMessage(teamInfo.bot.bot_access_token, ut.userID, $"Your alert!");
            }
            currentTime = nextAlarm;
        }
Ejemplo n.º 2
0
 public void BlockScene()
 {
     OnSceneBlockedBy(TrelloAPI.Instance.UserName);
     TrelloAPI.Instance.CheckItemOn(checkItemId, Name + " - " + owner, true);
     SlackAPI.SendMessage("Scene " + Name + " blocked at branch " + branchName + " by " + owner);
 }
Ejemplo n.º 3
0
 public void FreeScene()
 {
     TrelloAPI.Instance.CheckItemOn(checkItemId, Name, false);
     SlackAPI.SendMessage("Scene " + Name + " freed at branch " + branchName + " by " + owner);
     OnSceneFreed();
 }