Add MusicCast discovery service
This commit is contained in:
@@ -15,13 +15,7 @@ namespace MusicCast.Net.Api.Client.Models
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The response_code property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? ResponseCode { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string ResponseCode { get; set; }
|
||||
#endif
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
@@ -47,7 +41,7 @@ namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "response_code", n => { ResponseCode = n.GetStringValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
@@ -57,7 +51,7 @@ namespace MusicCast.Net.Api.Client.Models
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("response_code", ResponseCode);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/fish
|
||||
|
||||
kiota.exe generate -l Csharp -c MusicCastApiClient -n MusicCast.Net.Api.Client -d MusicCast.Net.Api.Server.json -o . --exclude-backward-compatible
|
||||
kiota.exe generate -l Csharp -c MusicCastApiClient -n MusicCast.Net.Api.Client -d ../MusicCast.Net.Api.Server/MusicCast.Net.Api.Server.json -o . --exclude-backward-compatible
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"descriptionHash": "C948E365F06EF135D929D78013E8AA08B1DD90FE86A80A3C7F3495672B6F1C32F98B1AAA7F84A151FAB4B0B8D12DB49F46CCCA14DE96A06143E25983F49846AA",
|
||||
"descriptionLocation": "MusicCast.Net.Api.Server.json",
|
||||
"descriptionHash": "54CA7AB3C7F7B94748F3D15ED096DB34D3A70EA1BC52DF9436D08BC31C7CCCFAC79F1FE2861D190E1915FE1C3C4036BDF1A1D6FB1CBACED8866663BC9D708742",
|
||||
"descriptionLocation": "../MusicCast.Net.Api.Server/MusicCast.Net.Api.Server.json",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.26.1",
|
||||
"clientClassName": "MusicCastApiClient",
|
||||
|
||||
Reference in New Issue
Block a user