重新设计了Libray.Json Api以及 WebSocket 的交互处理方式

This commit is contained in:
fengjiayi
2025-08-02 10:48:31 +08:00
parent 1bccccc835
commit 6fc57458a7
29 changed files with 883 additions and 348 deletions

View File

@@ -5,6 +5,7 @@ using Serein.Library.Utils;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using static Serein.Library.Api.IJsonToken;
namespace Serein.Extend.NewtonsoftJson
{
@@ -13,6 +14,8 @@ namespace Serein.Extend.NewtonsoftJson
/// </summary>
public sealed class NewtonsoftJsonObjectToken : IJsonToken, IDictionary<string, IJsonToken>
{
public TokenType Type => TokenType.Object;
private readonly JObject _object;
public NewtonsoftJsonObjectToken(JObject obj) => _object = obj;