import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class GetAnalyticsInfo implements IGet
{
@DataMember(Order=1)
public Date month = null;
@DataMember(Order=2)
public String type = null;
@DataMember(Order=3)
public String op = null;
@DataMember(Order=4)
public String apiKey = null;
@DataMember(Order=5)
public String userId = null;
@DataMember(Order=6)
public String ip = null;
public Date getMonth() { return month; }
public GetAnalyticsInfo setMonth(Date value) { this.month = value; return this; }
public String getType() { return type; }
public GetAnalyticsInfo setType(String value) { this.type = value; return this; }
public String getOp() { return op; }
public GetAnalyticsInfo setOp(String value) { this.op = value; return this; }
public String getApiKey() { return apiKey; }
public GetAnalyticsInfo setApiKey(String value) { this.apiKey = value; return this; }
public String getUserId() { return userId; }
public GetAnalyticsInfo setUserId(String value) { this.userId = value; return this; }
public String getIp() { return ip; }
public GetAnalyticsInfo setIp(String value) { this.ip = value; return this; }
}
@DataContract
public static class GetAnalyticsInfoResponse
{
@DataMember(Order=1)
public ArrayList<String> months = null;
@DataMember(Order=2)
public AnalyticsLogInfo result = null;
@DataMember(Order=3)
public ResponseStatus responseStatus = null;
public ArrayList<String> getMonths() { return months; }
public GetAnalyticsInfoResponse setMonths(ArrayList<String> value) { this.months = value; return this; }
public AnalyticsLogInfo getResult() { return result; }
public GetAnalyticsInfoResponse setResult(AnalyticsLogInfo value) { this.result = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetAnalyticsInfoResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
@DataContract
public static class AnalyticsLogInfo
{
@DataMember(Order=1)
public Long id = null;
@DataMember(Order=2)
public Date dateTime = null;
@DataMember(Order=3)
public String browser = null;
@DataMember(Order=4)
public String device = null;
@DataMember(Order=5)
public String bot = null;
@DataMember(Order=6)
public String op = null;
@DataMember(Order=7)
public String userId = null;
@DataMember(Order=8)
public String userName = null;
@DataMember(Order=9)
public String apiKey = null;
@DataMember(Order=10)
public String ip = null;
public Long getId() { return id; }
public AnalyticsLogInfo setId(Long value) { this.id = value; return this; }
public Date getDateTime() { return dateTime; }
public AnalyticsLogInfo setDateTime(Date value) { this.dateTime = value; return this; }
public String getBrowser() { return browser; }
public AnalyticsLogInfo setBrowser(String value) { this.browser = value; return this; }
public String getDevice() { return device; }
public AnalyticsLogInfo setDevice(String value) { this.device = value; return this; }
public String getBot() { return bot; }
public AnalyticsLogInfo setBot(String value) { this.bot = value; return this; }
public String getOp() { return op; }
public AnalyticsLogInfo setOp(String value) { this.op = value; return this; }
public String getUserId() { return userId; }
public AnalyticsLogInfo setUserId(String value) { this.userId = value; return this; }
public String getUserName() { return userName; }
public AnalyticsLogInfo setUserName(String value) { this.userName = value; return this; }
public String getApiKey() { return apiKey; }
public AnalyticsLogInfo setApiKey(String value) { this.apiKey = value; return this; }
public String getIp() { return ip; }
public AnalyticsLogInfo setIp(String value) { this.ip = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/GetAnalyticsInfo HTTP/1.1
Host: blazordiffusion.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetAnalyticsInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Month>0001-01-01T00:00:00</Month>
<Type>String</Type>
<Op>String</Op>
<ApiKey>String</ApiKey>
<UserId>String</UserId>
<Ip>String</Ip>
</GetAnalyticsInfo>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetAnalyticsInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types"> <Months xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </Months> <Result> <Id>0</Id> <DateTime>0001-01-01T00:00:00</DateTime> <Browser>String</Browser> <Device>String</Device> <Bot>String</Bot> <Op>String</Op> <UserId>String</UserId> <UserName>String</UserName> <ApiKey>String</ApiKey> <Ip>String</Ip> </Result> <ResponseStatus> <ErrorCode>String</ErrorCode> <Message>String</Message> <StackTrace>String</StackTrace> <Errors> <ResponseError> <ErrorCode>String</ErrorCode> <FieldName>String</FieldName> <Message>String</Message> <Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </Meta> </ResponseError> </Errors> <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </Meta> </ResponseStatus> </GetAnalyticsInfoResponse>