BokaMera.API.Host

<back to all web services

GoogleCalendarGetICals

The following routes are available for this service:
GET/sync/googlecalendar/icals/{companyid}/{token}Get iCals for GoogleCalendar
import 'package:servicestack/servicestack.dart';

class GoogleCalendarGetICals implements ICompany, IConvertible
{
    /**
    * The company id
    */
    // @ApiMember(Description="The company id", IsRequired=true, ParameterType="path")
    String? CompanyId;

    /**
    * Query for specific Resources, default is all resources
    */
    // @ApiMember(Description="Query for specific Resources, default is all resources", ParameterType="query")
    List<int>? ResourceIds;

    /**
    * If you want to include the schedule time slots
    */
    // @ApiMember(Description="If you want to include the schedule time slots", ParameterType="query")
    bool? IncludeSchedules;

    /**
    * GoogleCalendar Token
    */
    // @ApiMember(Description="GoogleCalendar Token", IsRequired=true, ParameterType="path")
    String? Token;

    GoogleCalendarGetICals({this.CompanyId,this.ResourceIds,this.IncludeSchedules,this.Token});
    GoogleCalendarGetICals.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CompanyId = json['CompanyId'];
        ResourceIds = JsonConverters.fromJson(json['ResourceIds'],'List<int>',context!);
        IncludeSchedules = json['IncludeSchedules'];
        Token = json['Token'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CompanyId': CompanyId,
        'ResourceIds': JsonConverters.toJson(ResourceIds,'List<int>',context!),
        'IncludeSchedules': IncludeSchedules,
        'Token': Token
    };

    getTypeName() => "GoogleCalendarGetICals";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
    'GoogleCalendarGetICals': TypeInfo(TypeOf.Class, create:() => GoogleCalendarGetICals()),
});

Dart GoogleCalendarGetICals DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /sync/googlecalendar/icals/{companyid}/{token} HTTP/1.1 
Host: api.bokamera.se 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}