DigiOffice API Services Services

<back to all web services

GetUserPrivacyInformation

Requires Authentication
The following routes are available for this service:
GET/api/users/{UserID}/extranet/{ExtranetEnvironment}/privacyinformation
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class UserPrivacyInformation implements IConvertible
{
    bool? ShowPrivacyStatement;

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

    fromMap(Map<String, dynamic> json) {
        ShowPrivacyStatement = json['ShowPrivacyStatement'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ShowPrivacyStatement': ShowPrivacyStatement
    };

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

class GetUserPrivacyInformation implements IConvertible
{
    int? UserID;
    bool? ExtranetEnvironment;

    GetUserPrivacyInformation({this.UserID,this.ExtranetEnvironment});
    GetUserPrivacyInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        UserID = json['UserID'];
        ExtranetEnvironment = json['ExtranetEnvironment'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'UserID': UserID,
        'ExtranetEnvironment': ExtranetEnvironment
    };

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

TypeContext _ctx = TypeContext(library: 'test_do_services.klokgroep.nl', types: <String, TypeInfo> {
    'UserPrivacyInformation': TypeInfo(TypeOf.Class, create:() => UserPrivacyInformation()),
    'GetUserPrivacyInformation': TypeInfo(TypeOf.Class, create:() => GetUserPrivacyInformation()),
});

Dart GetUserPrivacyInformation DTOs

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

HTTP + CSV

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

GET /api/users/{UserID}/extranet/{ExtranetEnvironment}/privacyinformation HTTP/1.1 
Host: test-do-services.klokgroep.nl 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ShowPrivacyStatement":false}