Trendsic Platform Service

<back to all web services

MyWorkPhotosRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/photos/mine
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class MyWorkPhotosRequest
    {
        public Integer Take = null;
        
        public Integer getTake() { return Take; }
        public MyWorkPhotosRequest setTake(Integer value) { this.Take = value; return this; }
    }

    public static class WorkPhotoListResponse
    {
        public ArrayList<WorkPhotoRow> Photos = new ArrayList<WorkPhotoRow>();
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<WorkPhotoRow> getPhotos() { return Photos; }
        public WorkPhotoListResponse setPhotos(ArrayList<WorkPhotoRow> value) { this.Photos = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public WorkPhotoListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class WorkPhotoRow
    {
        public Integer WorkPhotoID = null;
        public Integer ContactId = null;
        public String TakerName = null;
        public String RoleKey = null;
        public String TargetType = null;
        public String TargetId = null;
        public String TargetRef = null;
        public String TargetTitle = null;
        public String Kind = null;
        public String Caption = null;
        public Date CapturedAtUtc = null;
        public BigDecimal Lat = null;
        public BigDecimal Lng = null;
        public Integer AccuracyM = null;
        public Integer DistanceM = null;
        public Boolean InApp = null;
        public String Source = null;
        public Boolean IsLate = null;
        public Boolean CountsAsProof = null;
        public Integer MarkCount = null;
        public Boolean IssueOpen = null;
        public String IssueClosedBy = null;
        public Boolean FromGeneral = null;
        public String Url = null;
        public String MarkedUrl = null;
        public String TriageStatus = null;
        public String RouteTo = null;
        public String SuggestType = null;
        public String SuggestId = null;
        public String SuggestTitle = null;
        public String SuggestWhy = null;
        public String FiledType = null;
        public String FiledId = null;
        public String FiledTitle = null;
        public String ReplyText = null;
        public String TriagedBy = null;
        public Date TriagedAtUtc = null;
        public Date ExpiresAtUtc = null;
        
        public Integer getWorkPhotoID() { return WorkPhotoID; }
        public WorkPhotoRow setWorkPhotoID(Integer value) { this.WorkPhotoID = value; return this; }
        public Integer getContactId() { return ContactId; }
        public WorkPhotoRow setContactId(Integer value) { this.ContactId = value; return this; }
        public String getTakerName() { return TakerName; }
        public WorkPhotoRow setTakerName(String value) { this.TakerName = value; return this; }
        public String getRoleKey() { return RoleKey; }
        public WorkPhotoRow setRoleKey(String value) { this.RoleKey = value; return this; }
        public String getTargetType() { return TargetType; }
        public WorkPhotoRow setTargetType(String value) { this.TargetType = value; return this; }
        public String getTargetId() { return TargetId; }
        public WorkPhotoRow setTargetId(String value) { this.TargetId = value; return this; }
        public String getTargetRef() { return TargetRef; }
        public WorkPhotoRow setTargetRef(String value) { this.TargetRef = value; return this; }
        public String getTargetTitle() { return TargetTitle; }
        public WorkPhotoRow setTargetTitle(String value) { this.TargetTitle = value; return this; }
        public String getKind() { return Kind; }
        public WorkPhotoRow setKind(String value) { this.Kind = value; return this; }
        public String getCaption() { return Caption; }
        public WorkPhotoRow setCaption(String value) { this.Caption = value; return this; }
        public Date getCapturedAtUtc() { return CapturedAtUtc; }
        public WorkPhotoRow setCapturedAtUtc(Date value) { this.CapturedAtUtc = value; return this; }
        public BigDecimal getLat() { return Lat; }
        public WorkPhotoRow setLat(BigDecimal value) { this.Lat = value; return this; }
        public BigDecimal getLng() { return Lng; }
        public WorkPhotoRow setLng(BigDecimal value) { this.Lng = value; return this; }
        public Integer getAccuracyM() { return AccuracyM; }
        public WorkPhotoRow setAccuracyM(Integer value) { this.AccuracyM = value; return this; }
        public Integer getDistanceM() { return DistanceM; }
        public WorkPhotoRow setDistanceM(Integer value) { this.DistanceM = value; return this; }
        public Boolean isInApp() { return InApp; }
        public WorkPhotoRow setInApp(Boolean value) { this.InApp = value; return this; }
        public String getSource() { return Source; }
        public WorkPhotoRow setSource(String value) { this.Source = value; return this; }
        public Boolean getIsLate() { return IsLate; }
        public WorkPhotoRow setIsLate(Boolean value) { this.IsLate = value; return this; }
        public Boolean isCountsAsProof() { return CountsAsProof; }
        public WorkPhotoRow setCountsAsProof(Boolean value) { this.CountsAsProof = value; return this; }
        public Integer getMarkCount() { return MarkCount; }
        public WorkPhotoRow setMarkCount(Integer value) { this.MarkCount = value; return this; }
        public Boolean getIssueOpen() { return IssueOpen; }
        public WorkPhotoRow setIssueOpen(Boolean value) { this.IssueOpen = value; return this; }
        public String getIssueClosedBy() { return IssueClosedBy; }
        public WorkPhotoRow setIssueClosedBy(String value) { this.IssueClosedBy = value; return this; }
        public Boolean isFromGeneral() { return FromGeneral; }
        public WorkPhotoRow setFromGeneral(Boolean value) { this.FromGeneral = value; return this; }
        public String getUrl() { return Url; }
        public WorkPhotoRow setUrl(String value) { this.Url = value; return this; }
        public String getMarkedUrl() { return MarkedUrl; }
        public WorkPhotoRow setMarkedUrl(String value) { this.MarkedUrl = value; return this; }
        public String getTriageStatus() { return TriageStatus; }
        public WorkPhotoRow setTriageStatus(String value) { this.TriageStatus = value; return this; }
        public String getRouteTo() { return RouteTo; }
        public WorkPhotoRow setRouteTo(String value) { this.RouteTo = value; return this; }
        public String getSuggestType() { return SuggestType; }
        public WorkPhotoRow setSuggestType(String value) { this.SuggestType = value; return this; }
        public String getSuggestId() { return SuggestId; }
        public WorkPhotoRow setSuggestId(String value) { this.SuggestId = value; return this; }
        public String getSuggestTitle() { return SuggestTitle; }
        public WorkPhotoRow setSuggestTitle(String value) { this.SuggestTitle = value; return this; }
        public String getSuggestWhy() { return SuggestWhy; }
        public WorkPhotoRow setSuggestWhy(String value) { this.SuggestWhy = value; return this; }
        public String getFiledType() { return FiledType; }
        public WorkPhotoRow setFiledType(String value) { this.FiledType = value; return this; }
        public String getFiledId() { return FiledId; }
        public WorkPhotoRow setFiledId(String value) { this.FiledId = value; return this; }
        public String getFiledTitle() { return FiledTitle; }
        public WorkPhotoRow setFiledTitle(String value) { this.FiledTitle = value; return this; }
        public String getReplyText() { return ReplyText; }
        public WorkPhotoRow setReplyText(String value) { this.ReplyText = value; return this; }
        public String getTriagedBy() { return TriagedBy; }
        public WorkPhotoRow setTriagedBy(String value) { this.TriagedBy = value; return this; }
        public Date getTriagedAtUtc() { return TriagedAtUtc; }
        public WorkPhotoRow setTriagedAtUtc(Date value) { this.TriagedAtUtc = value; return this; }
        public Date getExpiresAtUtc() { return ExpiresAtUtc; }
        public WorkPhotoRow setExpiresAtUtc(Date value) { this.ExpiresAtUtc = value; return this; }
    }

}

Java MyWorkPhotosRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/worker/photos/mine HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Photos":[{"WorkPhotoID":0,"ContactId":0,"TakerName":"String","RoleKey":"String","TargetType":"String","TargetId":"String","TargetRef":"String","TargetTitle":"String","Kind":"String","Caption":"String","CapturedAtUtc":"0001-01-01T00:00:00.0000000","Lat":0,"Lng":0,"AccuracyM":0,"DistanceM":0,"InApp":false,"Source":"String","IsLate":false,"CountsAsProof":false,"MarkCount":0,"IssueOpen":false,"IssueClosedBy":"String","FromGeneral":false,"Url":"String","MarkedUrl":"String","TriageStatus":"String","RouteTo":"String","SuggestType":"String","SuggestId":"String","SuggestTitle":"String","SuggestWhy":"String","FiledType":"String","FiledId":"String","FiledTitle":"String","ReplyText":"String","TriagedBy":"String","TriagedAtUtc":"0001-01-01T00:00:00.0000000","ExpiresAtUtc":"0001-01-01T00:00:00.0000000"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}