<back to all web services

GetRecycleBinItemValidation

The following routes are available for this service:
GET/RestApi/recycle-bin/items/{id}/validaterestore
import 'package:servicestack/servicestack.dart';

abstract class RecycelBinItemRequestBase
{
    String? Id;

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

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

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

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

class ModalMessageProxy implements IConvertible
{
    bool? IsRecoverable;
    String? HeaderText;
    String? BodyText;
    String? ActionButtonText;
    bool? HasCancelButton;

    ModalMessageProxy({this.IsRecoverable,this.HeaderText,this.BodyText,this.ActionButtonText,this.HasCancelButton});
    ModalMessageProxy.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IsRecoverable = json['IsRecoverable'];
        HeaderText = json['HeaderText'];
        BodyText = json['BodyText'];
        ActionButtonText = json['ActionButtonText'];
        HasCancelButton = json['HasCancelButton'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IsRecoverable': IsRecoverable,
        'HeaderText': HeaderText,
        'BodyText': BodyText,
        'ActionButtonText': ActionButtonText,
        'HasCancelButton': HasCancelButton
    };

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

class GetRecycleBinItemValidation extends RecycelBinItemRequestBase implements IConvertible
{
    GetRecycleBinItemValidation();
    GetRecycleBinItemValidation.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "GetRecycleBinItemValidation";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
    'RecycelBinItemRequestBase': TypeInfo(TypeOf.AbstractClass),
    'ModalMessageProxy': TypeInfo(TypeOf.Class, create:() => ModalMessageProxy()),
    'GetRecycleBinItemValidation': TypeInfo(TypeOf.Class, create:() => GetRecycleBinItemValidation()),
});

Dart GetRecycleBinItemValidation DTOs

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

HTTP + XML

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

GET /RestApi/recycle-bin/items/{id}/validaterestore HTTP/1.1 
Host: www.asg.com.au 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ModalMessageProxy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.RecycleBin.Services.Dto.Responses">
  <ActionButtonText>String</ActionButtonText>
  <BodyText>String</BodyText>
  <HasCancelButton>false</HasCancelButton>
  <HeaderText>String</HeaderText>
  <IsRecoverable>false</IsRecoverable>
</ModalMessageProxy>