diff --git a/README.md b/README.md index c6d0724d..6b3d2454 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Install the NuGet packages: ### AsyncAPI.Bindings [![Nuget](https://img.shields.io/nuget/v/AsyncAPI.NET.Bindings?label=AsyncAPI.Bindings&style=for-the-badge)](https://www.nuget.org/packages/AsyncAPI.NET.Bindings/) - +[![Nuget](https://img.shields.io/nuget/vpre/AsyncAPI.NET.Bindings?label=AsyncAPI.Bindings-Preview&style=for-the-badge)](https://www.nuget.org/packages/AsyncAPI.NET.Bindings/) ## Example Usage Main classes to know: diff --git a/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs b/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs index a25c198f..209be8bf 100644 --- a/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs +++ b/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs @@ -6,11 +6,11 @@ namespace LEGO.AsyncAPI.Bindings.Sns; public class PrincipalObject : Principal { - private KeyValuePair PrincipalValue; + public KeyValuePair Value { get; private set; } - public PrincipalObject(KeyValuePair principalValue) + public PrincipalObject(KeyValuePair value) { - this.PrincipalValue = principalValue; + this.Value = value; } public override void Serialize(IAsyncApiWriter writer) @@ -21,7 +21,7 @@ public override void Serialize(IAsyncApiWriter writer) } writer.WriteStartObject(); - writer.WriteRequiredObject(this.PrincipalValue.Key, this.PrincipalValue.Value, (w, t) => t.Value.Write(w)); + writer.WriteRequiredObject(this.Value.Key, this.Value.Value, (w, t) => t.Value.Write(w)); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs b/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs index 533e9fb7..c885d252 100644 --- a/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs +++ b/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs @@ -5,11 +5,11 @@ namespace LEGO.AsyncAPI.Bindings.Sns; public class PrincipalStar : Principal { - private string PrincipalValue; + public string Value { get; private set; } public PrincipalStar() { - this.PrincipalValue = "*"; + this.Value = "*"; } public override void Serialize(IAsyncApiWriter writer) @@ -19,6 +19,6 @@ public override void Serialize(IAsyncApiWriter writer) throw new ArgumentNullException(nameof(writer)); } - writer.WriteValue(this.PrincipalValue); + writer.WriteValue(this.Value); } } \ No newline at end of file diff --git a/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs b/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs index 2652060d..61e6e546 100644 --- a/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs +++ b/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs @@ -6,11 +6,11 @@ namespace LEGO.AsyncAPI.Bindings.Sqs; public class PrincipalObject : Principal { - private KeyValuePair PrincipalValue; + public KeyValuePair Value { get; private set; } - public PrincipalObject(KeyValuePair principalValue) + public PrincipalObject(KeyValuePair value) { - this.PrincipalValue = principalValue; + this.Value = value; } public override void Serialize(IAsyncApiWriter writer) @@ -21,7 +21,7 @@ public override void Serialize(IAsyncApiWriter writer) } writer.WriteStartObject(); - writer.WriteRequiredObject(this.PrincipalValue.Key, this.PrincipalValue.Value, (w, t) => t.Value.Write(w)); + writer.WriteRequiredObject(this.Value.Key, this.Value.Value, (w, t) => t.Value.Write(w)); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs b/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs index 9e54bc5a..1705b966 100644 --- a/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs +++ b/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs @@ -5,11 +5,11 @@ namespace LEGO.AsyncAPI.Bindings.Sqs; public class PrincipalStar : Principal { - private string PrincipalValue; + public string Value { get; private set; } public PrincipalStar() { - this.PrincipalValue = "*"; + this.Value = "*"; } public override void Serialize(IAsyncApiWriter writer) @@ -19,6 +19,6 @@ public override void Serialize(IAsyncApiWriter writer) throw new ArgumentNullException(nameof(writer)); } - writer.WriteValue(this.PrincipalValue); + writer.WriteValue(this.Value); } } \ No newline at end of file