// #pragma warning disable CS0618 using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using MusicCast.Net.Api.Client.Models; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using System.Threading; using System; namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo { /// /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getListInfo /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class GetListInfoRequestBuilder : BaseRequestBuilder { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. public GetListInfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getListInfo{?input*,lang*,list_id*,size*}", pathParameters) { } /// /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. public GetListInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getListInfo{?input*,lang*,list_id*,size*}", rawUrl) { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetListInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); return requestInfo; } /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A /// The raw URL to use for the request builder. public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder WithUrl(string rawUrl) { return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder(rawUrl, RequestAdapter); } [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public partial class GetListInfoRequestBuilderGetQueryParameters #pragma warning restore CS1591 { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("input")] public string? Input { get; set; } #nullable restore #else [QueryParameter("input")] public string Input { get; set; } #endif #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("lang")] public string? Lang { get; set; } #nullable restore #else [QueryParameter("lang")] public string Lang { get; set; } #endif #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("list_id")] public string? ListId { get; set; } #nullable restore #else [QueryParameter("list_id")] public string ListId { get; set; } #endif [QueryParameter("size")] public int? Size { get; set; } } } } #pragma warning restore CS0618