Skip to content

Commit

Permalink
Merge pull request #58 from jimmyeao/dev-refactor
Browse files Browse the repository at this point in the history
Dev refactor
  • Loading branch information
jimmyeao authored May 10, 2024
2 parents 53731ad + afcea07 commit 3053bd4
Show file tree
Hide file tree
Showing 13 changed files with 1,183 additions and 1,209 deletions.
887 changes: 450 additions & 437 deletions API/MqttService.cs

Large diffs are not rendered by default.

24 changes: 20 additions & 4 deletions API/State.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TEAMS2HA.API
{
Expand All @@ -27,6 +23,16 @@ public class State
private string _status = "";

private bool _teamsRunning = false;
private bool canToggleMute = false;
private bool canToggleVideo = false;
private bool canToggleHand = false;
private bool canToggleBlur = false;
private bool canLeave = false;
private bool canReact = false;
private bool canToggleShareTray = false;
private bool canToggleChat = false;
private bool canStopSharing = false;
private bool canPair = false;

#endregion Private Fields

Expand Down Expand Up @@ -162,6 +168,16 @@ public string Status
}

public bool teamsRunning { get; set; }
public bool CanToggleMute { get; set; }
public bool CanToggleVideo { get; set; }
public bool CanToggleHand { get; set; }
public bool CanToggleBlur { get; set; }
public bool CanLeave { get; set; }
public bool CanReact { get; set; }
public bool CanToggleShareTray { get; set; }
public bool CanToggleChat { get; set; }
public bool CanStopSharing { get; set; }
public bool CanPair { get; set; }

#endregion Public Properties

Expand Down
Loading

0 comments on commit 3053bd4

Please sign in to comment.