refactor(tenpayv3): 重命名部分内部类

This commit is contained in:
Fu Diwei 2021-11-11 10:44:27 +08:00
parent 3b0303701e
commit 62b425eca1
9 changed files with 16 additions and 16 deletions

View File

@ -5,9 +5,9 @@ using Newtonsoft.Json.Converters;
namespace Newtonsoft.Json.Converters namespace Newtonsoft.Json.Converters
{ {
internal class StringTypedStringIListConverter : JsonConverter<IList<string>?> internal class TextualStringIListWithCommaConverter : JsonConverter<IList<string>?>
{ {
private readonly JsonConverter<List<string>?> _converter = new StringTypedStringListConverter(); private readonly JsonConverter<List<string>?> _converter = new TextualStringListWithCommaConverter();
public override bool CanRead public override bool CanRead
{ {

View File

@ -5,9 +5,9 @@ using Newtonsoft.Json.Converters;
namespace Newtonsoft.Json.Converters namespace Newtonsoft.Json.Converters
{ {
internal class JsonTypedStringIListConverter : JsonConverter<IList<string>?> internal class TextualStringIListWithJsonConverter : JsonConverter<IList<string>?>
{ {
private readonly JsonConverter<List<string>?> _converter = new JsonTypedStringListConverter(); private readonly JsonConverter<List<string>?> _converter = new TextualStringListWithJsonConverter();
public override bool CanRead public override bool CanRead
{ {

View File

@ -6,7 +6,7 @@ using Newtonsoft.Json.Converters;
namespace Newtonsoft.Json.Converters namespace Newtonsoft.Json.Converters
{ {
internal class StringTypedStringListConverter : JsonConverter<List<string>?> internal class TextualStringListWithCommaConverter : JsonConverter<List<string>?>
{ {
public override bool CanRead public override bool CanRead
{ {

View File

@ -5,7 +5,7 @@ using Newtonsoft.Json.Converters;
namespace Newtonsoft.Json.Converters namespace Newtonsoft.Json.Converters
{ {
internal class JsonTypedStringListConverter : JsonConverter<List<string>?> internal class TextualStringListWithJsonConverter : JsonConverter<List<string>?>
{ {
public override bool CanRead public override bool CanRead
{ {

View File

@ -6,7 +6,7 @@ using System.Text.Json.Serialization;
namespace System.Text.Json.Converters namespace System.Text.Json.Converters
{ {
internal class StringTypedStringListConverter : JsonConverter<List<string>?> internal class TextualStringIListWithCommaConverter : JsonConverter<List<string>?>
{ {
public override List<string>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) public override List<string>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{ {

View File

@ -5,9 +5,9 @@ using System.Text.Json.Serialization;
namespace System.Text.Json.Converters namespace System.Text.Json.Converters
{ {
internal class JsonTypedStringIListConverter : JsonConverter<IList<string>?> internal class TextualStringIListWithJsonConverter : JsonConverter<IList<string>?>
{ {
private readonly JsonConverter<List<string>?> _converter = new JsonTypedStringListConverter(); private readonly JsonConverter<List<string>?> _converter = new TextualStringListWithJsonConverter();
public override IList<string>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) public override IList<string>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{ {

View File

@ -5,9 +5,9 @@ using System.Text.Json.Serialization;
namespace System.Text.Json.Converters namespace System.Text.Json.Converters
{ {
internal class StringTypedStringIListConverter : JsonConverter<IList<string>?> internal class TextualStringListWithCommaConverter : JsonConverter<IList<string>?>
{ {
private readonly JsonConverter<List<string>?> _converter = new StringTypedStringListConverter(); private readonly JsonConverter<List<string>?> _converter = new TextualStringIListWithCommaConverter();
public override IList<string>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) public override IList<string>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{ {

View File

@ -5,7 +5,7 @@ using System.Text.Json.Serialization;
namespace System.Text.Json.Converters namespace System.Text.Json.Converters
{ {
internal class JsonTypedStringListConverter : JsonConverter<List<string>?> internal class TextualStringListWithJsonConverter : JsonConverter<List<string>?>
{ {
public override List<string>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) public override List<string>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{ {

View File

@ -357,18 +357,18 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
/// 获取或设置特殊资质图片媒体文件标识 ID 列表。 /// 获取或设置特殊资质图片媒体文件标识 ID 列表。
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("qualifications")] [Newtonsoft.Json.JsonProperty("qualifications")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.JsonTypedStringIListConverter))] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringIListWithJsonConverter))]
[System.Text.Json.Serialization.JsonPropertyName("qualifications")] [System.Text.Json.Serialization.JsonPropertyName("qualifications")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.JsonTypedStringIListConverter))] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringIListWithJsonConverter))]
public IList<string>? QualificationPictureMediaIdList { get; set; } public IList<string>? QualificationPictureMediaIdList { get; set; }
/// <summary> /// <summary>
/// 获取或设置补充材料媒体文件标识 ID 列表。 /// 获取或设置补充材料媒体文件标识 ID 列表。
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("business_addition_pics")] [Newtonsoft.Json.JsonProperty("business_addition_pics")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.JsonTypedStringIListConverter))] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringIListWithJsonConverter))]
[System.Text.Json.Serialization.JsonPropertyName("business_addition_pics")] [System.Text.Json.Serialization.JsonPropertyName("business_addition_pics")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.JsonTypedStringIListConverter))] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringIListWithJsonConverter))]
public IList<string>? BusinessAdditionPictureMediaIdList { get; set; } public IList<string>? BusinessAdditionPictureMediaIdList { get; set; }
/// <summary> /// <summary>