<back to all web services

GetUncachedLibraries

The following routes are available for this service:
GET/RestApi/diagnostics/uncached-libraries
import 'package:servicestack/servicestack.dart';

class GetUncachedLibraries implements IConvertible
{
    bool? CountOnly;
    int? Skip;
    int? Take;
    String? SiteId;

    GetUncachedLibraries({this.CountOnly,this.Skip,this.Take,this.SiteId});
    GetUncachedLibraries.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CountOnly = json['CountOnly'];
        Skip = json['Skip'];
        Take = json['Take'];
        SiteId = json['SiteId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CountOnly': CountOnly,
        'Skip': Skip,
        'Take': Take,
        'SiteId': SiteId
    };

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

enum CacheProfileType
{
    Client,
    Server,
    Both,
}

class MediaLibraryProxy implements IConvertible
{
    String? Title;
    String? LibraryType;
    CacheProfileType? CacheProfileType;

    MediaLibraryProxy({this.Title,this.LibraryType,this.CacheProfileType});
    MediaLibraryProxy.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Title = json['Title'];
        LibraryType = json['LibraryType'];
        CacheProfileType = JsonConverters.fromJson(json['CacheProfileType'],'CacheProfileType',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Title': Title,
        'LibraryType': LibraryType,
        'CacheProfileType': JsonConverters.toJson(CacheProfileType,'CacheProfileType',context!)
    };

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

class UncachedLibrariesProxy implements IConvertible
{
    List<MediaLibraryProxy>? NotCachedLibraries;
    int? CountAllSites;
    int? CountCurrentSite;

    UncachedLibrariesProxy({this.NotCachedLibraries,this.CountAllSites,this.CountCurrentSite});
    UncachedLibrariesProxy.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        NotCachedLibraries = JsonConverters.fromJson(json['NotCachedLibraries'],'List<MediaLibraryProxy>',context!);
        CountAllSites = json['CountAllSites'];
        CountCurrentSite = json['CountCurrentSite'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'NotCachedLibraries': JsonConverters.toJson(NotCachedLibraries,'List<MediaLibraryProxy>',context!),
        'CountAllSites': CountAllSites,
        'CountCurrentSite': CountCurrentSite
    };

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

TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
    'GetUncachedLibraries': TypeInfo(TypeOf.Class, create:() => GetUncachedLibraries()),
    'CacheProfileType': TypeInfo(TypeOf.Enum, enumValues:CacheProfileType.values),
    'MediaLibraryProxy': TypeInfo(TypeOf.Class, create:() => MediaLibraryProxy()),
    'UncachedLibrariesProxy': TypeInfo(TypeOf.Class, create:() => UncachedLibrariesProxy()),
    'List<MediaLibraryProxy>': TypeInfo(TypeOf.Class, create:() => <MediaLibraryProxy>[]),
});

Dart GetUncachedLibraries DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /RestApi/diagnostics/uncached-libraries HTTP/1.1 
Host: www.asg.com.au 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"NotCachedLibraries":[{"Title":"String","LibraryType":"String","CacheProfileType":"Client"}],"CountAllSites":0,"CountCurrentSite":0}