<back to all web services

ContactPropertiesRequestDto

The following routes are available for this service:
GET/RestApi/sitefinity/data-intelligence/contact-properties
import 'package:servicestack/servicestack.dart';

class ContactPropertiesRequestDto implements IConvertible
{
    String? Filter;

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

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

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

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

enum ContactPropertyState
{
    Initialized,
    Processing,
    Active,
    Updated,
    Deleted,
    Error,
    HiddenInUI,
}

class ContactPropertyAlias implements IConvertible
{
    String? Id;
    String? PropId;
    String? Name;
    double? Priority;

    ContactPropertyAlias({this.Id,this.PropId,this.Name,this.Priority});
    ContactPropertyAlias.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        PropId = json['PropId'];
        Name = json['Name'];
        Priority = JsonConverters.toDouble(json['Priority']);
        return this;
    }

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

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

class ContactProperty implements IConvertible
{
    String? Id;
    String? DatacenterId;
    bool? IsIdentifier;
    bool? IsIndexed;
    int? DataVolumeRank;
    double? Order;
    String? Name;
    String? ColumnName;
    String? TableName;
    ContactPropertyState? State;
    int? DataType;
    List<ContactPropertyAlias>? Aliases;

    ContactProperty({this.Id,this.DatacenterId,this.IsIdentifier,this.IsIndexed,this.DataVolumeRank,this.Order,this.Name,this.ColumnName,this.TableName,this.State,this.DataType,this.Aliases});
    ContactProperty.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        DatacenterId = json['DatacenterId'];
        IsIdentifier = json['IsIdentifier'];
        IsIndexed = json['IsIndexed'];
        DataVolumeRank = json['DataVolumeRank'];
        Order = JsonConverters.toDouble(json['Order']);
        Name = json['Name'];
        ColumnName = json['ColumnName'];
        TableName = json['TableName'];
        State = JsonConverters.fromJson(json['State'],'ContactPropertyState',context!);
        DataType = json['DataType'];
        Aliases = JsonConverters.fromJson(json['Aliases'],'List<ContactPropertyAlias>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'DatacenterId': DatacenterId,
        'IsIdentifier': IsIdentifier,
        'IsIndexed': IsIndexed,
        'DataVolumeRank': DataVolumeRank,
        'Order': Order,
        'Name': Name,
        'ColumnName': ColumnName,
        'TableName': TableName,
        'State': JsonConverters.toJson(State,'ContactPropertyState',context!),
        'DataType': DataType,
        'Aliases': JsonConverters.toJson(Aliases,'List<ContactPropertyAlias>',context!)
    };

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

class ContactPropertiesViewModel implements IConvertible
{
    List<ContactProperty>? ContactProperties;
    String? DecAppUrl;

    ContactPropertiesViewModel({this.ContactProperties,this.DecAppUrl});
    ContactPropertiesViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
    'ContactPropertiesRequestDto': TypeInfo(TypeOf.Class, create:() => ContactPropertiesRequestDto()),
    'ContactPropertyState': TypeInfo(TypeOf.Enum, enumValues:ContactPropertyState.values),
    'ContactPropertyAlias': TypeInfo(TypeOf.Class, create:() => ContactPropertyAlias()),
    'ContactProperty': TypeInfo(TypeOf.Class, create:() => ContactProperty()),
    'List<ContactPropertyAlias>': TypeInfo(TypeOf.Class, create:() => <ContactPropertyAlias>[]),
    'ContactPropertiesViewModel': TypeInfo(TypeOf.Class, create:() => ContactPropertiesViewModel()),
    'List<ContactProperty>': TypeInfo(TypeOf.Class, create:() => <ContactProperty>[]),
});

Dart ContactPropertiesRequestDto 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/sitefinity/data-intelligence/contact-properties HTTP/1.1 
Host: www.asg.com.au 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"DecAppUrl":"String"}