Skip to content

Commit

Permalink
change the namespace name of each type in Smdn.Net.EchonetLite to the…
Browse files Browse the repository at this point in the history
… new one
  • Loading branch information
smdn committed Mar 31, 2024
1 parent 3833dcb commit a507c28
Show file tree
Hide file tree
Showing 34 changed files with 47 additions and 69 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite.Models;
using System;
using System.Collections.Specialized;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;

namespace EchoDotNetLite.Common
namespace Smdn.Net.EchonetLite.Extensions
{
public static class Extentions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite.Enums;
using EchoDotNetLite.Serialization;
using System;
using System.Collections.Generic;
#if SYSTEM_DIAGNOSTICS_CODEANALYSIS_MEMBERNOTNULLWHENATTRIBUTE
using System.Diagnostics.CodeAnalysis;
#endif
using System.Text.Json.Serialization;

namespace EchoDotNetLite.Models
using Smdn.Net.EchonetLite.Serialization.Json;

namespace Smdn.Net.EchonetLite.Protocol
{

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: MIT
using System;

namespace EchoDotNetLite.Models
namespace Smdn.Net.EchonetLite.Protocol
{

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2024 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
namespace EchoDotNetLite.Enums
namespace Smdn.Net.EchonetLite.Protocol
{
public enum EHD1 : byte
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2024 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
namespace EchoDotNetLite.Enums
namespace Smdn.Net.EchonetLite.Protocol
{
public enum EHD2 : byte
{
Expand Down
5 changes: 3 additions & 2 deletions src/Smdn.Net.EchonetLite/Smdn.Net.EchonetLite.Protocol/EOJ.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite.Serialization;
using System;
using System.Text.Json.Serialization;

namespace EchoDotNetLite.Models
using Smdn.Net.EchonetLite.Serialization.Json;

namespace Smdn.Net.EchonetLite.Protocol
{
/// <summary>
/// ECHONET オブジェクト(EOJ)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2024 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
namespace EchoDotNetLite.Enums
namespace Smdn.Net.EchonetLite.Protocol
{
#pragma warning disable CA1707
public enum ESV : byte
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite.Enums;
using EchoDotNetLite.Serialization;
using System;
using System.Text.Json.Serialization;

namespace EchoDotNetLite.Models
using Smdn.Net.EchonetLite.Serialization.Json;

namespace Smdn.Net.EchonetLite.Protocol
{
/// <summary>
/// ECHONET Liteフレーム
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite.Enums;
using EchoDotNetLite.Models;
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;

namespace EchoDotNetLite
namespace Smdn.Net.EchonetLite.Protocol
{
public static class FrameSerializer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2024 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
namespace EchoDotNetLite.Models
namespace Smdn.Net.EchonetLite.Protocol
{
public interface IEDATA
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

using EchoDotNetLite.Models;

namespace EchoDotNetLite;
namespace Smdn.Net.EchonetLite.Protocol;

public static class PropertyContentSerializer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite.Serialization;
using System;
using System.Text.Json.Serialization;

namespace EchoDotNetLite.Models
using Smdn.Net.EchonetLite.Serialization.Json;

namespace Smdn.Net.EchonetLite.Protocol
{
public readonly struct PropertyRequest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;

namespace EchoDotNetLite.Serialization;
namespace Smdn.Net.EchonetLite.Serialization.Json;

internal sealed class ByteSequenceJsonConverter : JsonConverter<ReadOnlyMemory<byte>>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: MIT
using System;

namespace EchoDotNetLite.Serialization;
namespace Smdn.Net.EchonetLite.Serialization.Json;

internal static class Hexadecimals
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;

namespace EchoDotNetLite.Serialization;
namespace Smdn.Net.EchonetLite.Serialization.Json;

internal sealed class SingleByteJsonConverter<TByte> : JsonConverter<TByte>
// where TByte : System.Numerics.IUnsignedNumber<byte>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text.Json.Serialization;
using System.Reflection;

namespace EchoDotNetLite.Serialization;
namespace Smdn.Net.EchonetLite.Serialization.Json;

internal sealed class SingleByteJsonConverterFactory : JsonConverterFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;

namespace EchoDotNetLite.Serialization;
namespace Smdn.Net.EchonetLite.Serialization.Json;

internal sealed class SingleUInt16JsonConverter : JsonConverter<ushort>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite.Models;
using System;
using System.Collections.Generic;

namespace EchoDotNetLite
namespace Smdn.Net.EchonetLite
{
#pragma warning disable IDE0040
partial class EchoClient
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite.Common;
using EchoDotNetLite.Enums;
using EchoDotNetLite.Models;
using Microsoft.Extensions.Logging;
using System;
using System.Buffers;
Expand All @@ -15,9 +12,10 @@
using System.Threading;
using System.Threading.Tasks;

using Smdn.Net.EchonetLite;
using Smdn.Net.EchonetLite.Protocol;
using Smdn.Net.EchonetLite.Extensions;

namespace EchoDotNetLite
namespace Smdn.Net.EchonetLite
{
public partial class EchoClient : IDisposable, IAsyncDisposable
{
Expand Down
3 changes: 1 addition & 2 deletions src/Smdn.Net.EchonetLite/Smdn.Net.EchonetLite/EchonetNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
using System.Linq;
using System.Net;

using Smdn.Net.EchonetLite;
using Smdn.Net.EchonetLite.Appendix;

namespace EchoDotNetLite.Models
namespace Smdn.Net.EchonetLite
{
/// <summary>
/// ECHONET Liteノード
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
using System.Collections.ObjectModel;
using System.Linq;

using Smdn.Net.EchonetLite;
using Smdn.Net.EchonetLite.Protocol;

namespace EchoDotNetLite.Models
namespace Smdn.Net.EchonetLite
{

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using Smdn.Net.EchonetLite.Appendix;

namespace EchoDotNetLite.Models
namespace Smdn.Net.EchonetLite
{

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Threading;
using System.Threading.Tasks;

namespace EchoDotNetLite
namespace Smdn.Net.EchonetLite
{

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-FileCopyrightText: 2018 HiroyukiSakoh
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite;
using Microsoft.Extensions.Logging;
using System;
using System.Linq;
Expand All @@ -14,7 +13,7 @@
using System.Threading;
using System.Threading.Tasks;

namespace EchoDotNetLiteLANBridge
namespace Smdn.Net.EchonetLite
{
public class UdpEchonetLiteHandler : IEchonetLiteHandler, IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@

using NUnit.Framework;

using EchoDotNetLite.Enums;

namespace EchoDotNetLite.Models;
namespace Smdn.Net.EchonetLite.Protocol;

[TestFixture]
public class EDATA1Tests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using NUnit.Framework;

namespace EchoDotNetLite.Models;
namespace Smdn.Net.EchonetLite.Protocol;

[TestFixture]
public class EOJTests {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
using EchoDotNetLite.Enums;

using System;
using System.Text.Json;

using NUnit.Framework;

namespace EchoDotNetLite.Models;
namespace Smdn.Net.EchonetLite.Protocol;

[TestFixture]
public class FrameTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
using System.Collections.Generic;
using System.Linq;

using EchoDotNetLite.Models;
using EchoDotNetLite.Enums;

using NUnit.Framework;

using SequenceIs = Smdn.Test.NUnit.Constraints.Buffers.Is;

namespace EchoDotNetLite;
namespace Smdn.Net.EchonetLite.Protocol;

partial class FrameSerializerTests {
private const byte EHD1_ECHONETLite = 0x10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
using System.Buffers;
using System.Collections.Generic;

using EchoDotNetLite.Models;
using EchoDotNetLite.Enums;

using NUnit.Framework;

using SequenceIs = Smdn.Test.NUnit.Constraints.Buffers.Is;

namespace EchoDotNetLite;
namespace Smdn.Net.EchonetLite.Protocol;

partial class FrameSerializerTests {
private class PseudoBufferWriter : IBufferWriter<byte> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: MIT
using NUnit.Framework;

namespace EchoDotNetLite;
namespace Smdn.Net.EchonetLite.Protocol;

[TestFixture]
public partial class FrameSerializerTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@

using NUnit.Framework;

using EchoDotNetLite.Models;

using SequenceIs = Smdn.Test.NUnit.Constraints.Buffers.Is;

namespace EchoDotNetLite;
namespace Smdn.Net.EchonetLite.Protocol;

[TestFixture]
public partial class PropertyContentSerializerTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
// SPDX-License-Identifier: MIT
using System.Text.Json;

using EchoDotNetLite.Enums;

using NUnit.Framework;

namespace EchoDotNetLite.Models;
namespace Smdn.Net.EchonetLite.Protocol;

[TestFixture]
public class PropertyRequestTests {
Expand Down
Loading

0 comments on commit a507c28

Please sign in to comment.