| POST | /trackinglog |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TrackingLog
{
public Long tenantsId = null;
public Long appUserId = null;
public Long mediaId = null;
public Long mediaPercentage = null;
public Integer score = null;
public String menuItems = null;
public String entities = null;
public String ipAddress = null;
public String country = null;
public Date accessDateTime = null;
public Long getTenantsId() { return tenantsId; }
public TrackingLog setTenantsId(Long value) { this.tenantsId = value; return this; }
public Long getAppUserId() { return appUserId; }
public TrackingLog setAppUserId(Long value) { this.appUserId = value; return this; }
public Long getMediaId() { return mediaId; }
public TrackingLog setMediaId(Long value) { this.mediaId = value; return this; }
public Long getMediaPercentage() { return mediaPercentage; }
public TrackingLog setMediaPercentage(Long value) { this.mediaPercentage = value; return this; }
public Integer getScore() { return score; }
public TrackingLog setScore(Integer value) { this.score = value; return this; }
public String getMenuItems() { return menuItems; }
public TrackingLog setMenuItems(String value) { this.menuItems = value; return this; }
public String getEntities() { return entities; }
public TrackingLog setEntities(String value) { this.entities = value; return this; }
public String getIpAddress() { return ipAddress; }
public TrackingLog setIpAddress(String value) { this.ipAddress = value; return this; }
public String getCountry() { return country; }
public TrackingLog setCountry(String value) { this.country = value; return this; }
public Date getAccessDateTime() { return accessDateTime; }
public TrackingLog setAccessDateTime(Date value) { this.accessDateTime = 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 /trackinglog HTTP/1.1
Host: sfgboxapi.dev.scadsoftware.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<TrackingLog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel">
<AccessDateTime>0001-01-01T00:00:00</AccessDateTime>
<AppUserId>0</AppUserId>
<Country>String</Country>
<Entities>String</Entities>
<IPAddress>String</IPAddress>
<MediaId>0</MediaId>
<MediaPercentage>0</MediaPercentage>
<MenuItems>String</MenuItems>
<Score>0</Score>
<TenantsId>0</TenantsId>
</TrackingLog>