/* Options: Date: 2024-06-26 04:29:26 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddSupportCaseComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } abstract class ISupportCase extends ICompany { int? Id; } class SupportCaseCommentsResponse implements IConvertible { /** * The case id */ // @ApiMember(Description="The case id") int? SupportCaseId; /** * The comments id */ // @ApiMember(Description="The comments id") int? Id; /** * The case comment */ // @ApiMember(Description="The case comment") String? Comment; /** * The case comment created by */ // @ApiMember(Description="The case comment created by") String? CreatedBy; /** * The case comment created date */ // @ApiMember(Description="The case comment created date") DateTime? Created; SupportCaseCommentsResponse({this.SupportCaseId,this.Id,this.Comment,this.CreatedBy,this.Created}); SupportCaseCommentsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SupportCaseId = json['SupportCaseId']; Id = json['Id']; Comment = json['Comment']; CreatedBy = json['CreatedBy']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); return this; } Map toJson() => { 'SupportCaseId': SupportCaseId, 'Id': Id, 'Comment': Comment, 'CreatedBy': CreatedBy, 'Created': JsonConverters.toJson(Created,'DateTime',context!) }; getTypeName() => "SupportCaseCommentsResponse"; TypeContext? context = _ctx; } // @Route("/support/cases/{Id}/comments", "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 AddSupportCaseComment 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.") String? CompanyId; /** * The support case id */ // @ApiMember(Description="The support case id", IsRequired=true, ParameterType="path") int? Id; /** * The case comment. */ // @ApiMember(Description="The case comment.") String? Comment; AddSupportCaseComment({this.CompanyId,this.Id,this.Comment}); AddSupportCaseComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; Comment = json['Comment']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'Comment': Comment }; createResponse() => SupportCaseCommentsResponse(); getResponseTypeName() => "SupportCaseCommentsResponse"; getTypeName() => "AddSupportCaseComment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ISupportCase': TypeInfo(TypeOf.Interface), 'SupportCaseCommentsResponse': TypeInfo(TypeOf.Class, create:() => SupportCaseCommentsResponse()), 'AddSupportCaseComment': TypeInfo(TypeOf.Class, create:() => AddSupportCaseComment()), });