GET | /RestApi/ab-testing/edit-page-selector |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetABTestEditPageSelector implements IHasConnectionError
{
public UUID PageNodeId = null;
public String Culture = null;
public Boolean HasConnectionConfigurationError = null;
public UUID getPageNodeId() { return PageNodeId; }
public GetABTestEditPageSelector setPageNodeId(UUID value) { this.PageNodeId = value; return this; }
public String getCulture() { return Culture; }
public GetABTestEditPageSelector setCulture(String value) { this.Culture = value; return this; }
public Boolean isHasConnectionConfigurationError() { return HasConnectionConfigurationError; }
public GetABTestEditPageSelector setHasConnectionConfigurationError(Boolean value) { this.HasConnectionConfigurationError = value; return this; }
}
public static class ABTestEditPageSelectorViewModel
{
public UUID Id = null;
public ABTestStatus Status = null;
public ArrayList<ABTestVariationViewModel> Variations = null;
public String PreviewLink = null;
public Boolean AbTestingApiServerHasConnection = null;
public Boolean HasConnectionConfigurationError = null;
public String WarningMessage = null;
public Boolean ApiKeyChanged = null;
public UUID getId() { return Id; }
public ABTestEditPageSelectorViewModel setId(UUID value) { this.Id = value; return this; }
public ABTestStatus getStatus() { return Status; }
public ABTestEditPageSelectorViewModel setStatus(ABTestStatus value) { this.Status = value; return this; }
public ArrayList<ABTestVariationViewModel> getVariations() { return Variations; }
public ABTestEditPageSelectorViewModel setVariations(ArrayList<ABTestVariationViewModel> value) { this.Variations = value; return this; }
public String getPreviewLink() { return PreviewLink; }
public ABTestEditPageSelectorViewModel setPreviewLink(String value) { this.PreviewLink = value; return this; }
public Boolean isAbTestingApiServerHasConnection() { return AbTestingApiServerHasConnection; }
public ABTestEditPageSelectorViewModel setAbTestingApiServerHasConnection(Boolean value) { this.AbTestingApiServerHasConnection = value; return this; }
public Boolean isHasConnectionConfigurationError() { return HasConnectionConfigurationError; }
public ABTestEditPageSelectorViewModel setHasConnectionConfigurationError(Boolean value) { this.HasConnectionConfigurationError = value; return this; }
public String getWarningMessage() { return WarningMessage; }
public ABTestEditPageSelectorViewModel setWarningMessage(String value) { this.WarningMessage = value; return this; }
public Boolean isApiKeyChanged() { return ApiKeyChanged; }
public ABTestEditPageSelectorViewModel setApiKeyChanged(Boolean value) { this.ApiKeyChanged = value; return this; }
}
public static enum ABTestStatus
{
NotStarted,
Scheduled,
Active,
Stopped,
Ended;
}
public static class ABTestVariationViewModel
{
public UUID VariatonId = null;
public String VariationName = null;
public String VariationLink = null;
public Boolean IsWinner = null;
public Integer Ordinal = null;
public UUID getVariatonId() { return VariatonId; }
public ABTestVariationViewModel setVariatonId(UUID value) { this.VariatonId = value; return this; }
public String getVariationName() { return VariationName; }
public ABTestVariationViewModel setVariationName(String value) { this.VariationName = value; return this; }
public String getVariationLink() { return VariationLink; }
public ABTestVariationViewModel setVariationLink(String value) { this.VariationLink = value; return this; }
public Boolean getIsWinner() { return IsWinner; }
public ABTestVariationViewModel setIsWinner(Boolean value) { this.IsWinner = value; return this; }
public Integer getOrdinal() { return Ordinal; }
public ABTestVariationViewModel setOrdinal(Integer value) { this.Ordinal = value; return this; }
}
}
Java GetABTestEditPageSelector DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /RestApi/ab-testing/edit-page-selector HTTP/1.1 Host: www.asg.com.au Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Status":"NotStarted","PreviewLink":"String","AbTestingApiServerHasConnection":false,"HasConnectionConfigurationError":false,"WarningMessage":"String","ApiKeyChanged":false}