Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev refactor #57

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
dc6bfeb
connection health checks
jimmyeao Mar 28, 2024
e9f93d0
fixes #51
jimmyeao Mar 28, 2024
50e76e9
null exception bug fix
jimmyeao Mar 28, 2024
cee9b49
updated MQTT logic
jimmyeao Mar 28, 2024
3a098e7
Teams reconnection logic
jimmyeao Mar 28, 2024
666c3ad
fixed re-subscription of topics
jimmyeao Mar 28, 2024
b835770
added binary sensors for meeting permissions
jimmyeao Mar 29, 2024
054a108
added reactions
jimmyeao Mar 29, 2024
d7be99b
refactoring
jimmyeao Mar 29, 2024
01ddebc
reconnection logic
jimmyeao Mar 29, 2024
819af00
mqtt connection no longer stable
jimmyeao Mar 29, 2024
6a91fbc
mqtt reconnectioon
jimmyeao Mar 30, 2024
f7eec01
Merge branch 'dev-refactor' of https://github.com/jimmyeao/TEAMS2HA i…
jimmyeao Mar 30, 2024
137f8d0
dsa
jimmyeao Mar 30, 2024
db2a5fe
Merge branch 'dev-refactor' of https://github.com/jimmyeao/TEAMS2HA i…
jimmyeao Mar 30, 2024
ce08131
reconnection logic
jimmyeao Mar 30, 2024
733da89
pre singleton
jimmyeao Mar 30, 2024
e4c86fc
made mqtt singleton, castly improved
jimmyeao Mar 30, 2024
9c23bc6
Resume from sleep working
jimmyeao Mar 30, 2024
f68cfb6
Fixed reconnection logic
jimmyeao Mar 30, 2024
5b8fe42
shutdown logic
jimmyeao Mar 30, 2024
3e2d16e
Merge branch 'dev-refactor' of https://github.com/jimmyeao/TEAMS2HA i…
jimmyeao Mar 30, 2024
d037cb6
changes to set sensors and switches to off on exit
jimmyeao Mar 30, 2024
07fcc35
refactor to use managed mqtt client
jimmyeao Apr 13, 2024
e6ef05c
.
jimmyeao Apr 13, 2024
1508978
refactored mqtt and websocket client
jimmyeao Apr 14, 2024
e448683
all working bar meeting permissions
jimmyeao Apr 14, 2024
e47d57d
mqtt status and teams parinig status not updating on first run
jimmyeao Apr 14, 2024
e6d3937
reactions fixed
jimmyeao Apr 14, 2024
6d3cc69
refactoring
jimmyeao Apr 15, 2024
82a7c69
fixed label updating
jimmyeao Apr 15, 2024
1d38cdb
working
jimmyeao Apr 15, 2024
cdbe111
notify icon
jimmyeao Apr 15, 2024
afcea07
broken buttons and perrmissions fixed
jimmyeao Apr 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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