/* Options: Date: 2025-01-18 09:04:19 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: ListWebhookMessages.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.IO; using BokaMera.API.ServiceModel.Interfaces; using Webhook.Service.External.Models.Models; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/webhook/messages", "GET")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class ListWebhookMessages : ListMessagesRequestDto, IReturn, ICompany { /// ///The company id, if empty will use the company id for the user you are logged in with. /// [ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", IsRequired=true, ParameterType="query")] public virtual Guid? CompanyId { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } } namespace Webhook.Service.External.Models.Models { public partial class ClientWebhookRequestBase { public virtual Guid ClientId { get; set; } } public partial class ListMessagesRequestDto : ClientWebhookRequestBase { public ListMessagesRequestDto() { EventTypes = new List{}; } public virtual DateTime? Before { get; set; } public virtual DateTime? After { get; set; } public virtual string Channel { get; set; } public virtual string Iterator { get; set; } public virtual int? Limit { get; set; } public virtual Ordering? Order { get; set; } public virtual List EventTypes { get; set; } public virtual bool? WithContent { get; set; } } public partial class ListMessagesResponseDto { public ListMessagesResponseDto() { Data = new GetMessageResponseDto[]{}; } public virtual GetMessageResponseDto[] Data { get; set; } public virtual bool Done { get; set; } public virtual string Iterator { get; set; } } public enum Ordering { [EnumMember(Value="ascending")] Ascending = 1, [EnumMember(Value="descending")] Descending = 2, } }