Server

<back to all web services

DisableUserLogins

Requires Authentication
The following routes are available for this service:
GET/Config/DisableUserLogins
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

enum SynchronisationStatus
{
    Successful,
    UserSessionNotExpired,
    SynchronisationInProgress,
}

class DisableUserLoginsResponse implements IConvertible
{
    SynchronisationStatus? status;
    List<String>? loggedInWebUsers;
    ResponseStatus? responseStatus;

    DisableUserLoginsResponse({this.status,this.loggedInWebUsers,this.responseStatus});
    DisableUserLoginsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        status = JsonConverters.fromJson(json['status'],'SynchronisationStatus',context!);
        loggedInWebUsers = JsonConverters.fromJson(json['loggedInWebUsers'],'List<String>',context!);
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'status': JsonConverters.toJson(status,'SynchronisationStatus',context!),
        'loggedInWebUsers': JsonConverters.toJson(loggedInWebUsers,'List<String>',context!),
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

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

// @DataContract
class DisableUserLogins implements IConvertible
{
    // @DataMember(Name="CustomerGuids")
    List<String>? CustomerGuids;

    DisableUserLogins({this.CustomerGuids});
    DisableUserLogins.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'customerGuids': JsonConverters.toJson(CustomerGuids,'List<String>',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'andreiuologmbh_servdesk.eras_online.de', types: <String, TypeInfo> {
    'SynchronisationStatus': TypeInfo(TypeOf.Enum, enumValues:SynchronisationStatus.values),
    'DisableUserLoginsResponse': TypeInfo(TypeOf.Class, create:() => DisableUserLoginsResponse()),
    'DisableUserLogins': TypeInfo(TypeOf.Class, create:() => DisableUserLogins()),
});

Dart DisableUserLogins 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 /Config/DisableUserLogins HTTP/1.1 
Host: andreiuologmbh-servdesk.eras-online.de 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"status":"Successful","loggedInWebUsers":["String"],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}