/* Options: Date: 2026-04-04 02:07:51 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SettingsChangeLogQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class SettingsChangeLog extends BaseModel implements IBaseModelCreated, IConvertible { int Id = 0; // @Required() String CompanyId = ""; // @Required() // @StringLength(128) String SettingsType = ""; // @Required() // @StringLength(256) String PropertyName = ""; // @StringLength(2147483647) String? OldValue; // @StringLength(2147483647) String? NewValue; // @StringLength(256) String? ModifiedBy; // @Required() DateTime CreatedDate = DateTime(0); DateTime? ModifiedDate; SettingsChangeLog({this.Id,this.CompanyId,this.SettingsType,this.PropertyName,this.OldValue,this.NewValue,this.ModifiedBy,this.CreatedDate,this.ModifiedDate}); SettingsChangeLog.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; CompanyId = json['CompanyId']; SettingsType = json['SettingsType']; PropertyName = json['PropertyName']; OldValue = json['OldValue']; NewValue = json['NewValue']; ModifiedBy = json['ModifiedBy']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'CompanyId': CompanyId, 'SettingsType': SettingsType, 'PropertyName': PropertyName, 'OldValue': OldValue, 'NewValue': NewValue, 'ModifiedBy': ModifiedBy, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "SettingsChangeLog"; TypeContext? context = _ctx; } class SettingsChangeLogQueryResponse implements IConvertible { /** * The change log entry id */ // @ApiMember(Description="The change log entry id") int Id = 0; /** * The company id */ // @ApiMember(Description="The company id") String CompanyId = ""; /** * The settings type that was changed, e.g. BookingSettings */ // @ApiMember(Description="The settings type that was changed, e.g. BookingSettings") String SettingsType = ""; /** * The property name that was changed */ // @ApiMember(Description="The property name that was changed") String PropertyName = ""; /** * The value before the change */ // @ApiMember(Description="The value before the change") String? OldValue; /** * The value after the change */ // @ApiMember(Description="The value after the change") String? NewValue; /** * The user who made the change */ // @ApiMember(Description="The user who made the change") String? ModifiedBy; /** * When the change was made */ // @ApiMember(Description="When the change was made") DateTime CreatedDate = DateTime(0); SettingsChangeLogQueryResponse({this.Id,this.CompanyId,this.SettingsType,this.PropertyName,this.OldValue,this.NewValue,this.ModifiedBy,this.CreatedDate}); SettingsChangeLogQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CompanyId = json['CompanyId']; SettingsType = json['SettingsType']; PropertyName = json['PropertyName']; OldValue = json['OldValue']; NewValue = json['NewValue']; ModifiedBy = json['ModifiedBy']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'CompanyId': CompanyId, 'SettingsType': SettingsType, 'PropertyName': PropertyName, 'OldValue': OldValue, 'NewValue': NewValue, 'ModifiedBy': ModifiedBy, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!) }; getTypeName() => "SettingsChangeLogQueryResponse"; TypeContext? context = _ctx; } abstract class IBaseModelCreated { DateTime CreatedDate = DateTime(0); } // @Route("/settings/changelog", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privileges to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") class SettingsChangeLogQuery extends QueryDb2 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.", ParameterType="query") String? CompanyId; /** * Filter by settings type, e.g. BookingSettings, PaymentSettings, CompanySetting, EAccountingSettings */ // @ApiMember(Description="Filter by settings type, e.g. BookingSettings, PaymentSettings, CompanySetting, EAccountingSettings", ParameterType="query") String? SettingsType; /** * Filter by property name, e.g. SendEmailReminder */ // @ApiMember(Description="Filter by property name, e.g. SendEmailReminder", ParameterType="query") String? PropertyName; /** * Filter by who made the change */ // @ApiMember(Description="Filter by who made the change", ParameterType="query") String? ModifiedBy; /** * Filter changes created on or after this date */ // @ApiMember(Description="Filter changes created on or after this date", ParameterType="query") DateTime? CreatedDateGreaterThanOrEqualTo; /** * Filter changes created on or before this date */ // @ApiMember(Description="Filter changes created on or before this date", ParameterType="query") DateTime? CreatedDateLessThanOrEqualTo; SettingsChangeLogQuery({this.CompanyId,this.SettingsType,this.PropertyName,this.ModifiedBy,this.CreatedDateGreaterThanOrEqualTo,this.CreatedDateLessThanOrEqualTo}); SettingsChangeLogQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; SettingsType = json['SettingsType']; PropertyName = json['PropertyName']; ModifiedBy = json['ModifiedBy']; CreatedDateGreaterThanOrEqualTo = JsonConverters.fromJson(json['CreatedDateGreaterThanOrEqualTo'],'DateTime',context!); CreatedDateLessThanOrEqualTo = JsonConverters.fromJson(json['CreatedDateLessThanOrEqualTo'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'SettingsType': SettingsType, 'PropertyName': PropertyName, 'ModifiedBy': ModifiedBy, 'CreatedDateGreaterThanOrEqualTo': JsonConverters.toJson(CreatedDateGreaterThanOrEqualTo,'DateTime',context!), 'CreatedDateLessThanOrEqualTo': JsonConverters.toJson(CreatedDateLessThanOrEqualTo,'DateTime',context!) }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "SettingsChangeLogQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'SettingsChangeLog': TypeInfo(TypeOf.Class, create:() => SettingsChangeLog()), 'SettingsChangeLogQueryResponse': TypeInfo(TypeOf.Class, create:() => SettingsChangeLogQueryResponse()), 'IBaseModelCreated': TypeInfo(TypeOf.Interface), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'SettingsChangeLogQuery': TypeInfo(TypeOf.Class, create:() => SettingsChangeLogQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });