QueryQueueWaitNumRequest.cs 636 B

12345678910111213141516171819202122232425262728
  1. using RestSharp;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Text.Json.Serialization;
  7. using System.Threading.Tasks;
  8. namespace Tr.Sdk.Tels
  9. {
  10. public class QueryQueueWaitNumRequest : TrRequest
  11. {
  12. public override Method HttpMethod() => Method.Get;
  13. public override string Path() => $"/api/ola/queues/{QueueId}/get-callers";
  14. [RequestProperty(Name = "args")]
  15. public string QueueId { get; set; }
  16. }
  17. public class QueryQueueWaitNumResponse
  18. {
  19. [JsonPropertyName("count")]
  20. public string Count { get; set; }
  21. }
  22. }