openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI/src/Generated/CollectionResults/AudioClientGetVoiceConsentsCollectionResult.cs
37lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System.ClientModel; |
| 6 | using System.ClientModel.Primitives; |
| 7 | using System.Collections.Generic; |
| 8 | |
| 9 | namespace OpenAI.Audio |
| 10 | { |
| 11 | internal partial class AudioClientGetVoiceConsentsCollectionResult : CollectionResult |
| 12 | { |
| 13 | private readonly AudioClient _client; |
| 14 | private readonly string _after; |
| 15 | private readonly int? _limit; |
| 16 | private readonly RequestOptions _options; |
| 17 | |
| 18 | public AudioClientGetVoiceConsentsCollectionResult(AudioClient client, string after, int? limit, RequestOptions options) |
| 19 | { |
| 20 | _client = client; |
| 21 | _after = after; |
| 22 | _limit = limit; |
| 23 | _options = options; |
| 24 | } |
| 25 | |
| 26 | public override IEnumerable<ClientResult> GetRawPages() |
| 27 | { |
| 28 | PipelineMessage message = _client.CreateGetVoiceConsentsRequest(_after, _limit, _options); |
| 29 | yield return ClientResult.FromResponse(_client.Pipeline.ProcessMessage(message, _options)); |
| 30 | } |
| 31 | |
| 32 | public override ContinuationToken GetContinuationToken(ClientResult page) |
| 33 | { |
| 34 | return null; |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |