/* Options: Date: 2024-11-21 12:10:07 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddSupportCaseAttachment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } abstract class ISupportCase extends ICompany { int? Id; } class SupportCaseAttachmentResponse implements IConvertible { /** * The attachment id */ // @ApiMember(Description="The attachment id") int? Id; /** * The attachment file url */ // @ApiMember(Description="The attachment file url") String? FileUrl; SupportCaseAttachmentResponse({this.Id,this.FileUrl}); SupportCaseAttachmentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; FileUrl = json['FileUrl']; return this; } Map toJson() => { 'Id': Id, 'FileUrl': FileUrl }; getTypeName() => "SupportCaseAttachmentResponse"; TypeContext? context = _ctx; } // @Route("/support/cases/{Id}/attachments", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") class AddSupportCaseAttachment implements IReturn, ISupportCase, IConvertible, IPost { /** * Enter the company id, if blank company id and you are an admin, your company id will be used. */ // @ApiMember(Description="Enter the company id, if blank company id and you are an admin, your company id will be used.", IsRequired=true) String? CompanyId; /** * The support case id */ // @ApiMember(Description="The support case id", ParameterType="path") int? Id; /** * The case attachment url. Only images are allowed to attach. */ // @ApiMember(Description="The case attachment url. Only images are allowed to attach.") String? FileUrl; AddSupportCaseAttachment({this.CompanyId,this.Id,this.FileUrl}); AddSupportCaseAttachment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; FileUrl = json['FileUrl']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'FileUrl': FileUrl }; createResponse() => SupportCaseAttachmentResponse(); getResponseTypeName() => "SupportCaseAttachmentResponse"; getTypeName() => "AddSupportCaseAttachment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ISupportCase': TypeInfo(TypeOf.Interface), 'SupportCaseAttachmentResponse': TypeInfo(TypeOf.Class, create:() => SupportCaseAttachmentResponse()), 'AddSupportCaseAttachment': TypeInfo(TypeOf.Class, create:() => AddSupportCaseAttachment()), });