Skip to content

Commit

Permalink
Rename the OpenNettyMedia type to OpenNettyMedium
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchalet committed Dec 18, 2024
1 parent 43a6076 commit 1cad805
Show file tree
Hide file tree
Showing 14 changed files with 159 additions and 159 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ var message = OpenNettyMessage.CreateCommand(
protocol: OpenNettyProtocol.Nitoo,
command : OpenNettyCommands.Lighting.On,
address : OpenNettyAddress.FromNitooAddress(identifier: 487932, unit: 2),
media : OpenNettyMedia.Powerline,
medium : OpenNettyMedium.Powerline,
mode : OpenNettyMode.Unicast);
```

Expand Down Expand Up @@ -385,7 +385,7 @@ await Task.Delay(-1);
> protocol: OpenNettyProtocol.Zigbee,
> command : OpenNettyCommands.Lighting.On,
> address : OpenNettyAddress.FromHexadecimalZigbeeAddress(identifier: "0065ACAC", unit: 1),
> media : OpenNettyMedia.Radio,
> medium : OpenNettyMedium.Radio,
> mode : OpenNettyMode.Unicast);
>
> await connection.SendAsync(message.Frame, source.Token);
Expand Down
24 changes: 12 additions & 12 deletions src/OpenNetty/IOpenNettyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface IOpenNettyService
/// <param name="protocol">The protocol.</param>
/// <param name="dimension">The dimension.</param>
/// <param name="address">The address, if applicable.</param>
/// <param name="media">The media to use or <see langword="null"/> to use the default media.</param>
/// <param name="medium">The medium to use or <see langword="null"/> to use the default medium.</param>
/// <param name="mode">The mode to use or <see langword="null"/> to use the default mode.</param>
/// <param name="filter">
/// The delegate called by the service to filter the returned dimensions.
Expand All @@ -37,7 +37,7 @@ public interface IOpenNettyService
OpenNettyProtocol protocol,
OpenNettyDimension dimension,
OpenNettyAddress? address = null,
OpenNettyMedia? media = null,
OpenNettyMedium? medium = null,
OpenNettyMode? mode = null,
Func<OpenNettyDimension, ValueTask<bool>>? filter = null,
OpenNettyGateway? gateway = null,
Expand All @@ -51,7 +51,7 @@ public interface IOpenNettyService
/// <param name="protocol">The protocol.</param>
/// <param name="category">The category.</param>
/// <param name="address">The address, if applicable.</param>
/// <param name="media">The media to use or <see langword="null"/> to use the default media.</param>
/// <param name="medium">The medium to use or <see langword="null"/> to use the default medium.</param>
/// <param name="mode">The mode to use or <see langword="null"/> to use the default mode.</param>
/// <param name="filter">
/// The delegate called by the service to filter the returned status replies. If set to
Expand All @@ -68,7 +68,7 @@ public interface IOpenNettyService
OpenNettyProtocol protocol,
OpenNettyCategory category,
OpenNettyAddress? address = null,
OpenNettyMedia? media = null,
OpenNettyMedium? medium = null,
OpenNettyMode? mode = null,
Func<OpenNettyCommand, ValueTask<bool>>? filter = null,
OpenNettyGateway? gateway = null,
Expand All @@ -81,7 +81,7 @@ public interface IOpenNettyService
/// <param name="protocol">The protocol.</param>
/// <param name="command">The command.</param>
/// <param name="address">The address, if applicable.</param>
/// <param name="media">The media to use or <see langword="null"/> to use the default media.</param>
/// <param name="medium">The medium to use or <see langword="null"/> to use the default medium.</param>
/// <param name="mode">The mode to use or <see langword="null"/> to use the default mode.</param>
/// <param name="gateway">The gateway used to send the message.</param>
/// <param name="options">The transmission options to use.</param>
Expand All @@ -91,7 +91,7 @@ ValueTask ExecuteCommandAsync(
OpenNettyProtocol protocol,
OpenNettyCommand command,
OpenNettyAddress? address = null,
OpenNettyMedia? media = null,
OpenNettyMedium? medium = null,
OpenNettyMode? mode = null,
OpenNettyGateway? gateway = null,
OpenNettyTransmissionOptions options = OpenNettyTransmissionOptions.None,
Expand All @@ -104,7 +104,7 @@ ValueTask ExecuteCommandAsync(
/// <param name="protocol">The protocol.</param>
/// <param name="dimension">The dimension.</param>
/// <param name="address">The address, if applicable.</param>
/// <param name="media">The media to use or <see langword="null"/> to use the default media.</param>
/// <param name="medium">The medium to use or <see langword="null"/> to use the default medium.</param>
/// <param name="mode">The mode to use or <see langword="null"/> to use the default mode.</param>
/// <param name="filter">
/// The delegate called by the service to filter the returned dimensions.
Expand All @@ -120,7 +120,7 @@ ValueTask ExecuteCommandAsync(
ValueTask<ImmutableArray<string>> GetDimensionAsync(OpenNettyProtocol protocol,
OpenNettyDimension dimension,
OpenNettyAddress? address = null,
OpenNettyMedia? media = null,
OpenNettyMedium? medium = null,
OpenNettyMode? mode = null,
Func<OpenNettyDimension, ValueTask<bool>>? filter = null,
OpenNettyGateway? gateway = null,
Expand All @@ -134,7 +134,7 @@ ValueTask<ImmutableArray<string>> GetDimensionAsync(OpenNettyProtocol protocol,
/// <param name="protocol">The protocol.</param>
/// <param name="category">The category.</param>
/// <param name="address">The address, if applicable.</param>
/// <param name="media">The media to use or <see langword="null"/> to use the default media.</param>
/// <param name="medium">The medium to use or <see langword="null"/> to use the default medium.</param>
/// <param name="mode">The mode to use or <see langword="null"/> to use the default mode.</param>
/// <param name="filter">
/// The delegate called by the service to filter the returned dimensions.
Expand All @@ -151,7 +151,7 @@ ValueTask<OpenNettyCommand> GetStatusAsync(
OpenNettyProtocol protocol,
OpenNettyCategory category,
OpenNettyAddress? address = null,
OpenNettyMedia? media = null,
OpenNettyMedium? medium = null,
OpenNettyMode? mode = null,
Func<OpenNettyCommand, ValueTask<bool>>? filter = null,
OpenNettyGateway? gateway = null,
Expand Down Expand Up @@ -222,7 +222,7 @@ ValueTask SendMessageAsync(
/// <param name="dimension">The dimension.</param>
/// <param name="values">The dimension values.</param>
/// <param name="address">The address, if applicable.</param>
/// <param name="media">The media to use or <see langword="null"/> to use the default media.</param>
/// <param name="medium">The medium to use or <see langword="null"/> to use the default medium.</param>
/// <param name="mode">The mode to use or <see langword="null"/> to use the default mode.</param>
/// <param name="gateway">The gateway used to send the message.</param>
/// <param name="options">The transmission options to use.</param>
Expand All @@ -233,7 +233,7 @@ ValueTask SetDimensionAsync(
OpenNettyDimension dimension,
ImmutableArray<string> values,
OpenNettyAddress? address = null,
OpenNettyMedia? media = null,
OpenNettyMedium? medium = null,
OpenNettyMode? mode = null,
OpenNettyGateway? gateway = null,
OpenNettyTransmissionOptions options = OpenNettyTransmissionOptions.None,
Expand Down
2 changes: 1 addition & 1 deletion src/OpenNetty/OpenNettyBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ OpenNettyProtocol.Scs when endpoint.Attribute("Area") is not null && endpoint.At
Capabilities = GetEndpointCapabilities(endpoint),
Device = device,
Gateway = (string?) endpoint.Attribute("Gateway") is string gateway ? FindGatewayByName(gateways, gateway) : null,
Media = device?.Definition.Media,
Medium = device?.Definition.Medium,
Name = name,
Protocol = protocol,
Settings = GetSettings(endpoint),
Expand Down
Loading

0 comments on commit 1cad805

Please sign in to comment.