GET | /RestApi/sitefinity/data-intelligence/leadscore |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class LeadScoreRequestDto
{
public String Filter = null;
public String getFilter() { return Filter; }
public LeadScoreRequestDto setFilter(String value) { this.Filter = value; return this; }
}
public static class LeadScoreListViewModel
{
public IList<LeadScore> LeadScores = null;
public String DecAppUrl = null;
public IList<LeadScore> getLeadScores() { return LeadScores; }
public LeadScoreListViewModel setLeadScores(IList<LeadScore> value) { this.LeadScores = value; return this; }
public String getDecAppUrl() { return DecAppUrl; }
public LeadScoreListViewModel setDecAppUrl(String value) { this.DecAppUrl = value; return this; }
}
public static class LeadScore
{
public Integer Id = null;
public String Name = null;
public LeadScoreState State = null;
public IList<LeadScoreLevel> Levels = null;
public HashMap<String,String> Fields = null;
public Date CreatedOn = null;
public String CreatedByUserId = null;
public Date ModifiedOn = null;
public String ModifiedByUserId = null;
public Date ToBeReinitializedAt = null;
public Integer getId() { return Id; }
public LeadScore setId(Integer value) { this.Id = value; return this; }
public String getName() { return Name; }
public LeadScore setName(String value) { this.Name = value; return this; }
public LeadScoreState getState() { return State; }
public LeadScore setState(LeadScoreState value) { this.State = value; return this; }
public IList<LeadScoreLevel> getLevels() { return Levels; }
public LeadScore setLevels(IList<LeadScoreLevel> value) { this.Levels = value; return this; }
public HashMap<String,String> getFields() { return Fields; }
public LeadScore setFields(HashMap<String,String> value) { this.Fields = value; return this; }
public Date getCreatedOn() { return CreatedOn; }
public LeadScore setCreatedOn(Date value) { this.CreatedOn = value; return this; }
public String getCreatedByUserId() { return CreatedByUserId; }
public LeadScore setCreatedByUserId(String value) { this.CreatedByUserId = value; return this; }
public Date getModifiedOn() { return ModifiedOn; }
public LeadScore setModifiedOn(Date value) { this.ModifiedOn = value; return this; }
public String getModifiedByUserId() { return ModifiedByUserId; }
public LeadScore setModifiedByUserId(String value) { this.ModifiedByUserId = value; return this; }
public Date getToBeReinitializedAt() { return ToBeReinitializedAt; }
public LeadScore setToBeReinitializedAt(Date value) { this.ToBeReinitializedAt = value; return this; }
}
public static enum LeadScoreState
{
Inactive,
Active,
ToBeDeleted;
}
public static class LeadScoreLevel
{
public Integer Id = null;
public String Name = null;
public Integer Threshold = null;
public Boolean SendNotification = null;
public String Email = null;
public Integer getId() { return Id; }
public LeadScoreLevel setId(Integer value) { this.Id = value; return this; }
public String getName() { return Name; }
public LeadScoreLevel setName(String value) { this.Name = value; return this; }
public Integer getThreshold() { return Threshold; }
public LeadScoreLevel setThreshold(Integer value) { this.Threshold = value; return this; }
public Boolean isSendNotification() { return SendNotification; }
public LeadScoreLevel setSendNotification(Boolean value) { this.SendNotification = value; return this; }
public String getEmail() { return Email; }
public LeadScoreLevel setEmail(String value) { this.Email = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /RestApi/sitefinity/data-intelligence/leadscore HTTP/1.1 Host: www.asg.com.au Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { DecAppUrl: String }