/* Options: Date: 2024-11-21 11:38:38 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: DeleteGoogleCalendarToken.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class GoogleCalendarTokenResponse implements IConvertible { String? Result; GoogleCalendarTokenResponse({this.Result}); GoogleCalendarTokenResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Result = json['Result']; return this; } Map toJson() => { 'Result': Result }; getTypeName() => "GoogleCalendarTokenResponse"; TypeContext? context = _ctx; } // @Route("/sync/googlecalendar", "DELETE") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class DeleteGoogleCalendarToken implements IReturn, ICompany, IConvertible, IDelete { /** * 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; /** * GoogleCalendar Token */ // @ApiMember(Description="GoogleCalendar Token", IsRequired=true, ParameterType="path") String? Token; DeleteGoogleCalendarToken({this.CompanyId,this.Token}); DeleteGoogleCalendarToken.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Token = json['Token']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Token': Token }; createResponse() => GoogleCalendarTokenResponse(); getResponseTypeName() => "GoogleCalendarTokenResponse"; getTypeName() => "DeleteGoogleCalendarToken"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'GoogleCalendarTokenResponse': TypeInfo(TypeOf.Class, create:() => GoogleCalendarTokenResponse()), 'DeleteGoogleCalendarToken': TypeInfo(TypeOf.Class, create:() => DeleteGoogleCalendarToken()), });