/* Options: Date: 2026-04-26 18:37:18 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryAxemaUserSyncJobs.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } enum AxemaUserSyncStatus { Pending, Processing, Completed, Failed, } class AxemaUserSyncJobResponse implements IConvertible { String Id = ""; String CompanyId = ""; int Status = 0; String StatusName = ""; int? UsersFound; int? UsersCreated; int? UsersUpdated; String? ErrorMessage; DateTime CreatedDate = DateTime(0); DateTime UpdatedDate = DateTime(0); AxemaUserSyncJobResponse({this.Id,this.CompanyId,this.Status,this.StatusName,this.UsersFound,this.UsersCreated,this.UsersUpdated,this.ErrorMessage,this.CreatedDate,this.UpdatedDate}); AxemaUserSyncJobResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CompanyId = json['CompanyId']; Status = json['Status']; StatusName = json['StatusName']; UsersFound = json['UsersFound']; UsersCreated = json['UsersCreated']; UsersUpdated = json['UsersUpdated']; ErrorMessage = json['ErrorMessage']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); UpdatedDate = JsonConverters.fromJson(json['UpdatedDate'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'CompanyId': CompanyId, 'Status': Status, 'StatusName': StatusName, 'UsersFound': UsersFound, 'UsersCreated': UsersCreated, 'UsersUpdated': UsersUpdated, 'ErrorMessage': ErrorMessage, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'UpdatedDate': JsonConverters.toJson(UpdatedDate,'DateTime',context!) }; getTypeName() => "AxemaUserSyncJobResponse"; TypeContext? context = _ctx; } class QueryAxemaUserSyncJobsResponse implements IConvertible { List Results = []; ResponseStatus ResponseStatus; QueryAxemaUserSyncJobsResponse({this.Results,this.ResponseStatus}); QueryAxemaUserSyncJobsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Results = JsonConverters.fromJson(json['Results'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Results': JsonConverters.toJson(Results,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "QueryAxemaUserSyncJobsResponse"; TypeContext? context = _ctx; } // @Route("/codelock/axema/usersync", "GET") // @ValidateRequest(Validator="IsAuthenticated") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privileges to call this service", StatusCode=403) class QueryAxemaUserSyncJobs implements IReturn, ICompany, IConvertible, IGet { /** * 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.") String? CompanyId; /** * Filter by status (0=Pending, 1=Processing, 2=Completed, 3=Failed). */ // @ApiMember(Description="Filter by status (0=Pending, 1=Processing, 2=Completed, 3=Failed).") AxemaUserSyncStatus? Status; QueryAxemaUserSyncJobs({this.CompanyId,this.Status}); QueryAxemaUserSyncJobs.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Status = JsonConverters.fromJson(json['Status'],'AxemaUserSyncStatus',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'Status': JsonConverters.toJson(Status,'AxemaUserSyncStatus',context!) }; createResponse() => QueryAxemaUserSyncJobsResponse(); getResponseTypeName() => "QueryAxemaUserSyncJobsResponse"; getTypeName() => "QueryAxemaUserSyncJobs"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'AxemaUserSyncStatus': TypeInfo(TypeOf.Enum, enumValues:AxemaUserSyncStatus.values), 'AxemaUserSyncJobResponse': TypeInfo(TypeOf.Class, create:() => AxemaUserSyncJobResponse()), 'QueryAxemaUserSyncJobsResponse': TypeInfo(TypeOf.Class, create:() => QueryAxemaUserSyncJobsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'QueryAxemaUserSyncJobs': TypeInfo(TypeOf.Class, create:() => QueryAxemaUserSyncJobs()), });