<back to all web services

TouchpointRequestDto

The following routes are available for this service:
GET/RestApi/sitefinity/data-intelligence/touchpoint
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class TouchpointRequestDto
    {
        public String Filter = null;
        
        public String getFilter() { return Filter; }
        public TouchpointRequestDto setFilter(String value) { this.Filter = value; return this; }
    }

    public static class TouchpointsViewModel
    {
        public IList<Touchpoint> Touchpoints = null;
        
        public IList<Touchpoint> getTouchpoints() { return Touchpoints; }
        public TouchpointsViewModel setTouchpoints(IList<Touchpoint> value) { this.Touchpoints = value; return this; }
    }

    public static class Touchpoint
    {
        public Integer Id = null;
        public String Name = null;
        public ConditionExpression Definition = null;
        public CalculationState State = null;
        public Date CreatedOn = null;
        public String CreatedByUserId = null;
        public Date ModifiedOn = null;
        public String ModifiedByUserId = null;
        public Integer TotalHits = null;
        public Integer TotalMetaClientHits = null;
        public Integer AbsoluteHits = null;
        public Date AttributionsCalculatedOn = null;
        public Date StatisticsCalculatedOn = null;
        public String Errors = null;
        public TouchpointType TouchpointType = null;
        
        public Integer getId() { return Id; }
        public Touchpoint setId(Integer value) { this.Id = value; return this; }
        public String getName() { return Name; }
        public Touchpoint setName(String value) { this.Name = value; return this; }
        public ConditionExpression getDefinition() { return Definition; }
        public Touchpoint setDefinition(ConditionExpression value) { this.Definition = value; return this; }
        public CalculationState getState() { return State; }
        public Touchpoint setState(CalculationState value) { this.State = value; return this; }
        public Date getCreatedOn() { return CreatedOn; }
        public Touchpoint setCreatedOn(Date value) { this.CreatedOn = value; return this; }
        public String getCreatedByUserId() { return CreatedByUserId; }
        public Touchpoint setCreatedByUserId(String value) { this.CreatedByUserId = value; return this; }
        public Date getModifiedOn() { return ModifiedOn; }
        public Touchpoint setModifiedOn(Date value) { this.ModifiedOn = value; return this; }
        public String getModifiedByUserId() { return ModifiedByUserId; }
        public Touchpoint setModifiedByUserId(String value) { this.ModifiedByUserId = value; return this; }
        public Integer getTotalHits() { return TotalHits; }
        public Touchpoint setTotalHits(Integer value) { this.TotalHits = value; return this; }
        public Integer getTotalMetaClientHits() { return TotalMetaClientHits; }
        public Touchpoint setTotalMetaClientHits(Integer value) { this.TotalMetaClientHits = value; return this; }
        public Integer getAbsoluteHits() { return AbsoluteHits; }
        public Touchpoint setAbsoluteHits(Integer value) { this.AbsoluteHits = value; return this; }
        public Date getAttributionsCalculatedOn() { return AttributionsCalculatedOn; }
        public Touchpoint setAttributionsCalculatedOn(Date value) { this.AttributionsCalculatedOn = value; return this; }
        public Date getStatisticsCalculatedOn() { return StatisticsCalculatedOn; }
        public Touchpoint setStatisticsCalculatedOn(Date value) { this.StatisticsCalculatedOn = value; return this; }
        public String getErrors() { return Errors; }
        public Touchpoint setErrors(String value) { this.Errors = value; return this; }
        public TouchpointType getTouchpointType() { return TouchpointType; }
        public Touchpoint setTouchpointType(TouchpointType value) { this.TouchpointType = value; return this; }
    }

    public static class ConditionExpression
    {
        public String Relation = null;
        public IList<ConditionPart> Parts = null;
        
        public String getRelation() { return Relation; }
        public ConditionExpression setRelation(String value) { this.Relation = value; return this; }
        public IList<ConditionPart> getParts() { return Parts; }
        public ConditionExpression setParts(IList<ConditionPart> value) { this.Parts = value; return this; }
    }

    public static class ConditionPart
    {
        public Integer Id = null;
        public String Predicate = null;
        public Boolean IsNegated = null;
        public MatchingOperator PredicateOperator = null;
        public MatchingOperator ObjectOperator = null;
        public ArrayList<String> Objects = null;
        public String ClientAttribute = null;
        public UUID ContactPropertyId = null;
        public HashMap<String,String> ObjectMetadata = null;
        public HashMap<String,String> UrlParameters = null;
        
        public Integer getId() { return Id; }
        public ConditionPart setId(Integer value) { this.Id = value; return this; }
        public String getPredicate() { return Predicate; }
        public ConditionPart setPredicate(String value) { this.Predicate = value; return this; }
        public Boolean getIsNegated() { return IsNegated; }
        public ConditionPart setIsNegated(Boolean value) { this.IsNegated = value; return this; }
        public MatchingOperator getPredicateOperator() { return PredicateOperator; }
        public ConditionPart setPredicateOperator(MatchingOperator value) { this.PredicateOperator = value; return this; }
        public MatchingOperator getObjectOperator() { return ObjectOperator; }
        public ConditionPart setObjectOperator(MatchingOperator value) { this.ObjectOperator = value; return this; }
        public ArrayList<String> getObjects() { return Objects; }
        public ConditionPart setObjects(ArrayList<String> value) { this.Objects = value; return this; }
        public String getClientAttribute() { return ClientAttribute; }
        public ConditionPart setClientAttribute(String value) { this.ClientAttribute = value; return this; }
        public UUID getContactPropertyId() { return ContactPropertyId; }
        public ConditionPart setContactPropertyId(UUID value) { this.ContactPropertyId = value; return this; }
        public HashMap<String,String> getObjectMetadata() { return ObjectMetadata; }
        public ConditionPart setObjectMetadata(HashMap<String,String> value) { this.ObjectMetadata = value; return this; }
        public HashMap<String,String> getUrlParameters() { return UrlParameters; }
        public ConditionPart setUrlParameters(HashMap<String,String> value) { this.UrlParameters = value; return this; }
    }

    public static enum MatchingOperator
    {
        ExactMatch,
        Contains,
        StartsWith,
        EndsWith,
        UrlStrippedMatch;
    }

    public static enum CalculationState
    {
        Inactive,
        Initializing,
        Active,
        ToBeDeleted,
        Error,
        Pending,
        Expired;
    }

    public static enum TouchpointType
    {
        Touchpoint,
        Discovered,
        Personalization,
        AbVariant,
        AbGoal,
        Content;
    }

}

Java TouchpointRequestDto DTOs

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

HTTP + OTHER

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

GET /RestApi/sitefinity/data-intelligence/touchpoint HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{}