Class DiscoveryOptionsExtensions
Inheritance
System.Object
DiscoveryOptionsExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: XBeeLibrary.Core.Models
Assembly: XBeeLibrary.Core.dll
Syntax
public static class DiscoveryOptionsExtensions
Methods
CalculateDiscoveryValue(DiscoveryOptions, XBeeProtocol, ISet<DiscoveryOptions>)
Calculates the total value of a combination of several options for the given protocol.
Declaration
public static int CalculateDiscoveryValue(this DiscoveryOptions source, XBeeProtocol protocol, ISet<DiscoveryOptions> options)
Parameters
Type | Name | Description |
---|---|---|
DiscoveryOptions | source | |
XBeeProtocol | protocol | The XBeeProtocol to calculate the value of all the given discovery options. |
System.Collections.Generic.ISet<DiscoveryOptions> | options | Collection of options to get the final value. |
Returns
Type | Description |
---|---|
System.Int32 | The value to be configured in the module depending on the given collection of options and the protocol. |
See Also
GetDescription(DiscoveryOptions)
Gets the description of the discovery option.
Declaration
public static string GetDescription(this DiscoveryOptions source)
Parameters
Type | Name | Description |
---|---|---|
DiscoveryOptions | source |
Returns
Type | Description |
---|---|
System.String | The discovery option description. |
GetValue(DiscoveryOptions)
Gets the value of the discovery option.
Declaration
public static int GetValue(this DiscoveryOptions source)
Parameters
Type | Name | Description |
---|---|---|
DiscoveryOptions | source |
Returns
Type | Description |
---|---|
System.Int32 | The value of the discovery option. |
ToDisplayString(DiscoveryOptions)
Returns the DiscoveryOptions object in string format.
Declaration
public static string ToDisplayString(this DiscoveryOptions source)
Parameters
Type | Name | Description |
---|---|---|
DiscoveryOptions | source |
Returns
Type | Description |
---|---|
System.String | The DiscoveryOptions object in string format. |