GET | /RestApi/sitefinity/data-intelligence/contact-properties |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ContactPropertiesRequestDto
{
public String Filter = null;
public String getFilter() { return Filter; }
public ContactPropertiesRequestDto setFilter(String value) { this.Filter = value; return this; }
}
public static class ContactPropertiesViewModel
{
public IList<ContactProperty> ContactProperties = null;
public String DecAppUrl = null;
public IList<ContactProperty> getContactProperties() { return ContactProperties; }
public ContactPropertiesViewModel setContactProperties(IList<ContactProperty> value) { this.ContactProperties = value; return this; }
public String getDecAppUrl() { return DecAppUrl; }
public ContactPropertiesViewModel setDecAppUrl(String value) { this.DecAppUrl = value; return this; }
}
public static class ContactProperty
{
public UUID Id = null;
public UUID DatacenterId = null;
public Boolean IsIdentifier = null;
public Boolean IsIndexed = null;
public Integer DataVolumeRank = null;
public Double Order = null;
public String Name = null;
public String ColumnName = null;
public String TableName = null;
public ContactPropertyState State = null;
public Integer DataType = null;
public IList<ContactPropertyAlias> Aliases = null;
public UUID getId() { return Id; }
public ContactProperty setId(UUID value) { this.Id = value; return this; }
public UUID getDatacenterId() { return DatacenterId; }
public ContactProperty setDatacenterId(UUID value) { this.DatacenterId = value; return this; }
public Boolean getIsIdentifier() { return IsIdentifier; }
public ContactProperty setIsIdentifier(Boolean value) { this.IsIdentifier = value; return this; }
public Boolean getIsIndexed() { return IsIndexed; }
public ContactProperty setIsIndexed(Boolean value) { this.IsIndexed = value; return this; }
public Integer getDataVolumeRank() { return DataVolumeRank; }
public ContactProperty setDataVolumeRank(Integer value) { this.DataVolumeRank = value; return this; }
public Double getOrder() { return Order; }
public ContactProperty setOrder(Double value) { this.Order = value; return this; }
public String getName() { return Name; }
public ContactProperty setName(String value) { this.Name = value; return this; }
public String getColumnName() { return ColumnName; }
public ContactProperty setColumnName(String value) { this.ColumnName = value; return this; }
public String getTableName() { return TableName; }
public ContactProperty setTableName(String value) { this.TableName = value; return this; }
public ContactPropertyState getState() { return State; }
public ContactProperty setState(ContactPropertyState value) { this.State = value; return this; }
public Integer getDataType() { return DataType; }
public ContactProperty setDataType(Integer value) { this.DataType = value; return this; }
public IList<ContactPropertyAlias> getAliases() { return Aliases; }
public ContactProperty setAliases(IList<ContactPropertyAlias> value) { this.Aliases = value; return this; }
}
public static enum ContactPropertyState
{
Initialized(1),
Processing(2),
Active(3),
Updated(4),
Deleted(5),
Error(6),
HiddenInUI(7);
private final int value;
ContactPropertyState(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class ContactPropertyAlias
{
public UUID Id = null;
public UUID PropId = null;
public String Name = null;
public Double Priority = null;
public UUID getId() { return Id; }
public ContactPropertyAlias setId(UUID value) { this.Id = value; return this; }
public UUID getPropId() { return PropId; }
public ContactPropertyAlias setPropId(UUID value) { this.PropId = value; return this; }
public String getName() { return Name; }
public ContactPropertyAlias setName(String value) { this.Name = value; return this; }
public Double getPriority() { return Priority; }
public ContactPropertyAlias setPriority(Double value) { this.Priority = value; return this; }
}
}
Java ContactPropertiesRequestDto DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"DecAppUrl":"String"}