| GET | /{Workspace}/TeamCurrentLocation |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
/**
* GET /{Workspace}/TeamCurrentLocation - Returns the current location of all users in the workspace, grouped by team.
*/
public static class TeamCurrentLocation
{
public String Workspace = null;
public ArrayList<TeamLocation> TeamLocations = null;
public String getWorkspace() { return Workspace; }
public TeamCurrentLocation setWorkspace(String value) { this.Workspace = value; return this; }
public ArrayList<TeamLocation> getTeamLocations() { return TeamLocations; }
public TeamCurrentLocation setTeamLocations(ArrayList<TeamLocation> value) { this.TeamLocations = value; return this; }
}
public static class TeamLocation
{
public String ObjectId = null;
public ArrayList<UserCurrentLocation> UserLocations = null;
public String getObjectId() { return ObjectId; }
public TeamLocation setObjectId(String value) { this.ObjectId = value; return this; }
public ArrayList<UserCurrentLocation> getUserLocations() { return UserLocations; }
public TeamLocation setUserLocations(ArrayList<UserCurrentLocation> value) { this.UserLocations = value; return this; }
}
public static class UserCurrentLocation extends Location
{
public String ObjectId = null;
public String TimeStamp = null;
public String getObjectId() { return ObjectId; }
public UserCurrentLocation setObjectId(String value) { this.ObjectId = value; return this; }
public String getTimeStamp() { return TimeStamp; }
public UserCurrentLocation setTimeStamp(String value) { this.TimeStamp = value; return this; }
}
public static class Location
{
public Double y = null;
public Double x = null;
public Double getY() { return y; }
public Location setY(Double value) { this.y = value; return this; }
public Double getX() { return x; }
public Location setX(Double value) { this.x = 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 /{Workspace}/TeamCurrentLocation HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv