/* Options: Date: 2024-11-21 11:35:03 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: DeleteFavorite.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CompanyQueryResponse implements IConvertible { String? Id; String? Name; /** * The organisation number will only be visible if your owner to the company */ // @ApiMember(DataType="string", Description="The organisation number will only be visible if your owner to the company") String? OrganisationNumber; /** * What type of company. If it's used for personal use or as a company. */ // @ApiMember(DataType="int", Description="What type of company. If it's used for personal use or as a company.") int? TypeId; String? Details; int? CategoryId; String? Category; Uri? LogoType; Uri? CoverImage; String? Street1; String? Street2; String? ZipCode; String? City; String? CountryId; String? Longitude; String? Latitude; double? Distance; String? Phone; String? Email; String? Homepage; String? SitePath; bool? Active; CodeLockSystemType? CodeLockSystem; bool? IsFreeAccount; /** * Will show when the company was updated, note it will only be shown if your logged in as admin for the company. */ // @ApiMember(DataType="datetime", Description="Will show when the company was updated, note it will only be shown if your logged in as admin for the company.") DateTime? Updated; /** * Will show when the company was created, note it will only be shown if your logged in as admin for the company. */ // @ApiMember(DataType="datetime", Description="Will show when the company was created, note it will only be shown if your logged in as admin for the company.") DateTime? Created; int? StatusId; /** * If the company is marked as favourite for the logged in user */ // @ApiMember(DataType="boolean", Description="If the company is marked as favourite for the logged in user") bool? IsFavorite; String? BookingAgreements; CompanyBookingSettings? BookingSettings; CompanySystemSettings? SystemSettings; CompanyWidgetSettings? WidgetSettings; HomepageSettingsResponse? HomepageSettings; CompanyRatingSummary? RatingSummary; List? Reviews; List? CustomerCustomFields; ResponseStatus? ResponseStatus; CompanyQueryResponse({this.Id,this.Name,this.OrganisationNumber,this.TypeId,this.Details,this.CategoryId,this.Category,this.LogoType,this.CoverImage,this.Street1,this.Street2,this.ZipCode,this.City,this.CountryId,this.Longitude,this.Latitude,this.Distance,this.Phone,this.Email,this.Homepage,this.SitePath,this.Active,this.CodeLockSystem,this.IsFreeAccount,this.Updated,this.Created,this.StatusId,this.IsFavorite,this.BookingAgreements,this.BookingSettings,this.SystemSettings,this.WidgetSettings,this.HomepageSettings,this.RatingSummary,this.Reviews,this.CustomerCustomFields,this.ResponseStatus}); CompanyQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; OrganisationNumber = json['OrganisationNumber']; TypeId = json['TypeId']; Details = json['Details']; CategoryId = json['CategoryId']; Category = json['Category']; LogoType = JsonConverters.fromJson(json['LogoType'],'Uri',context!); CoverImage = JsonConverters.fromJson(json['CoverImage'],'Uri',context!); Street1 = json['Street1']; Street2 = json['Street2']; ZipCode = json['ZipCode']; City = json['City']; CountryId = json['CountryId']; Longitude = json['Longitude']; Latitude = json['Latitude']; Distance = JsonConverters.toDouble(json['Distance']); Phone = json['Phone']; Email = json['Email']; Homepage = json['Homepage']; SitePath = json['SitePath']; Active = json['Active']; CodeLockSystem = JsonConverters.fromJson(json['CodeLockSystem'],'CodeLockSystemType',context!); IsFreeAccount = json['IsFreeAccount']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); StatusId = json['StatusId']; IsFavorite = json['IsFavorite']; BookingAgreements = json['BookingAgreements']; BookingSettings = JsonConverters.fromJson(json['BookingSettings'],'CompanyBookingSettings',context!); SystemSettings = JsonConverters.fromJson(json['SystemSettings'],'CompanySystemSettings',context!); WidgetSettings = JsonConverters.fromJson(json['WidgetSettings'],'CompanyWidgetSettings',context!); HomepageSettings = JsonConverters.fromJson(json['HomepageSettings'],'HomepageSettingsResponse',context!); RatingSummary = JsonConverters.fromJson(json['RatingSummary'],'CompanyRatingSummary',context!); Reviews = JsonConverters.fromJson(json['Reviews'],'List',context!); CustomerCustomFields = JsonConverters.fromJson(json['CustomerCustomFields'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'OrganisationNumber': OrganisationNumber, 'TypeId': TypeId, 'Details': Details, 'CategoryId': CategoryId, 'Category': Category, 'LogoType': JsonConverters.toJson(LogoType,'Uri',context!), 'CoverImage': JsonConverters.toJson(CoverImage,'Uri',context!), 'Street1': Street1, 'Street2': Street2, 'ZipCode': ZipCode, 'City': City, 'CountryId': CountryId, 'Longitude': Longitude, 'Latitude': Latitude, 'Distance': Distance, 'Phone': Phone, 'Email': Email, 'Homepage': Homepage, 'SitePath': SitePath, 'Active': Active, 'CodeLockSystem': JsonConverters.toJson(CodeLockSystem,'CodeLockSystemType',context!), 'IsFreeAccount': IsFreeAccount, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'StatusId': StatusId, 'IsFavorite': IsFavorite, 'BookingAgreements': BookingAgreements, 'BookingSettings': JsonConverters.toJson(BookingSettings,'CompanyBookingSettings',context!), 'SystemSettings': JsonConverters.toJson(SystemSettings,'CompanySystemSettings',context!), 'WidgetSettings': JsonConverters.toJson(WidgetSettings,'CompanyWidgetSettings',context!), 'HomepageSettings': JsonConverters.toJson(HomepageSettings,'HomepageSettingsResponse',context!), 'RatingSummary': JsonConverters.toJson(RatingSummary,'CompanyRatingSummary',context!), 'Reviews': JsonConverters.toJson(Reviews,'List',context!), 'CustomerCustomFields': JsonConverters.toJson(CustomerCustomFields,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CompanyQueryResponse"; TypeContext? context = _ctx; } class UserFavorites implements IConvertible { String? CompanyId; CompanyQueryResponse? Company; UserFavorites({this.CompanyId,this.Company}); UserFavorites.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Company = JsonConverters.fromJson(json['Company'],'CompanyQueryResponse',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'Company': JsonConverters.toJson(Company,'CompanyQueryResponse',context!) }; getTypeName() => "UserFavorites"; TypeContext? context = _ctx; } // @Route("/users/favorite", "DELETE") // @ValidateRequest(Validator="IsAuthenticated") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) class DeleteFavorite implements IReturn, IConvertible, IDelete { /** * Id of the company */ // @ApiMember(Description="Id of the company", IsRequired=true, ParameterType="path") String? CompanyId; DeleteFavorite({this.CompanyId}); DeleteFavorite.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => UserFavorites(); getResponseTypeName() => "UserFavorites"; getTypeName() => "DeleteFavorite"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'CompanyQueryResponse': TypeInfo(TypeOf.Class, create:() => CompanyQueryResponse()), 'Uri': TypeInfo(TypeOf.Class, create:() => Uri()), 'CodeLockSystemType': TypeInfo(TypeOf.Class, create:() => CodeLockSystemType()), 'CompanyBookingSettings': TypeInfo(TypeOf.Class, create:() => CompanyBookingSettings()), 'CompanySystemSettings': TypeInfo(TypeOf.Class, create:() => CompanySystemSettings()), 'CompanyWidgetSettings': TypeInfo(TypeOf.Class, create:() => CompanyWidgetSettings()), 'HomepageSettingsResponse': TypeInfo(TypeOf.Class, create:() => HomepageSettingsResponse()), 'CompanyRatingSummary': TypeInfo(TypeOf.Class, create:() => CompanyRatingSummary()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RatingReviewResponse': TypeInfo(TypeOf.Class, create:() => RatingReviewResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomFieldConfigData': TypeInfo(TypeOf.Class, create:() => CustomFieldConfigData()), 'UserFavorites': TypeInfo(TypeOf.Class, create:() => UserFavorites()), 'DeleteFavorite': TypeInfo(TypeOf.Class, create:() => DeleteFavorite()), });