Skip to content

Commit

Permalink
Add IsRDMCapable; IsLLRPCapable; IsDHCPCapable; IsWebConfigurationCap…
Browse files Browse the repository at this point in the history
…able & IsArtNet4Capable to RemoteClient
  • Loading branch information
patrick-dmxc committed Oct 23, 2023
1 parent c66ee20 commit 48c6b19
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions ArtNetSharp/Communication/RemoteClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,81 @@ private set
onPropertyChanged();
}
}
private bool isRDMCapable;
public bool IsRDMCapable
{
get
{
return isRDMCapable;
}
private set
{
if (isRDMCapable == value)
return;
isRDMCapable = value;
onPropertyChanged();
}
}
private bool isLLRPCapable;
public bool IsLLRPCapable
{
get
{
return isLLRPCapable;
}
private set
{
if (isLLRPCapable == value)
return;
isLLRPCapable = value;
onPropertyChanged();
}
}
private bool isDHCPCapable;
public bool IsDHCPCapable
{
get
{
return isDHCPCapable;
}
private set
{
if (isDHCPCapable == value)
return;
isDHCPCapable = value;
onPropertyChanged();
}
}
private bool isWebConfigurationCapable;
public bool IsWebConfigurationCapable
{
get
{
return isWebConfigurationCapable;
}
private set
{
if (isWebConfigurationCapable == value)
return;
isWebConfigurationCapable = value;
onPropertyChanged();
}
}
private bool isArtNet4Capable;
public bool IsArtNet4Capable
{
get
{
return isArtNet4Capable;
}
private set
{
if (isArtNet4Capable == value)
return;
isArtNet4Capable = value;
onPropertyChanged();
}
}

private ArtPollReply root;
public ArtPollReply Root
Expand All @@ -98,6 +173,11 @@ public ArtPollReply Root
this.IpAddress = root.OwnIp;
this.ShortName = root.ShortName;
this.LongName = root.LongName;
this.IsRDMCapable = root.Status.HasFlag(ENodeStatus.RDM_Supported);
this.IsLLRPCapable = root.Status.HasFlag(ENodeStatus.NodeSupportLLRP);
this.IsDHCPCapable = root.Status.HasFlag(ENodeStatus.DHCP_ConfigurationSupported);
this.IsWebConfigurationCapable = root.Status.HasFlag(ENodeStatus.WebConfigurationSupported);
this.IsArtNet4Capable = root.Status.HasFlag(ENodeStatus.NodeSupports15BitPortAddress);
}
}
private ConcurrentDictionary<byte, RemoteClientPort> ports= new ConcurrentDictionary<byte, RemoteClientPort>();
Expand Down

0 comments on commit 48c6b19

Please # to comment.