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 .xml suffix or ?format=xml

HTTP + XML

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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<WorkPhotoListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Photos>
    <WorkPhotoRow>
      <AccuracyM>0</AccuracyM>
      <Caption>String</Caption>
      <CapturedAtUtc>0001-01-01T00:00:00</CapturedAtUtc>
      <ContactId>0</ContactId>
      <CountsAsProof>false</CountsAsProof>
      <DistanceM>0</DistanceM>
      <ExpiresAtUtc>0001-01-01T00:00:00</ExpiresAtUtc>
      <FiledId>String</FiledId>
      <FiledTitle>String</FiledTitle>
      <FiledType>String</FiledType>
      <FromGeneral>false</FromGeneral>
      <InApp>false</InApp>
      <IsLate>false</IsLate>
      <IssueClosedBy>String</IssueClosedBy>
      <IssueOpen>false</IssueOpen>
      <Kind>String</Kind>
      <Lat>0</Lat>
      <Lng>0</Lng>
      <MarkCount>0</MarkCount>
      <MarkedUrl>String</MarkedUrl>
      <ReplyText>String</ReplyText>
      <RoleKey>String</RoleKey>
      <RouteTo>String</RouteTo>
      <Source>String</Source>
      <SuggestId>String</SuggestId>
      <SuggestTitle>String</SuggestTitle>
      <SuggestType>String</SuggestType>
      <SuggestWhy>String</SuggestWhy>
      <TakerName>String</TakerName>
      <TargetId>String</TargetId>
      <TargetRef>String</TargetRef>
      <TargetTitle>String</TargetTitle>
      <TargetType>String</TargetType>
      <TriageStatus>String</TriageStatus>
      <TriagedAtUtc>0001-01-01T00:00:00</TriagedAtUtc>
      <TriagedBy>String</TriagedBy>
      <Url>String</Url>
      <WorkPhotoID>0</WorkPhotoID>
    </WorkPhotoRow>
  </Photos>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1: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>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1: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>
    </d2p1:Meta>
  </ResponseStatus>
</WorkPhotoListResponse>