Trendsic Platform Service

<back to all web services

SafetyTalkLibListRequest

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

public class dtos
{

    public static class SafetyTalkLibListRequest
    {
        
    }

    public static class SafetyTalkLibResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<SafetyTalkLib> Talks = new ArrayList<SafetyTalkLib>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public SafetyTalkLibResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<SafetyTalkLib> getTalks() { return Talks; }
        public SafetyTalkLibResponse setTalks(ArrayList<SafetyTalkLib> value) { this.Talks = value; return this; }
    }

    public static class SafetyTalkLib
    {
        public Integer SafetyTalkLibraryID = null;
        public String SafetyTalkLibraryUID = null;
        public String Title = null;
        public String Kind = null;
        public String Category = null;
        public String Body = null;
        public String MediaUrl = null;
        public Integer DurationMinutes = null;
        public Boolean Active = null;
        public Integer AssignmentCount = null;
        
        public Integer getSafetyTalkLibraryID() { return SafetyTalkLibraryID; }
        public SafetyTalkLib setSafetyTalkLibraryID(Integer value) { this.SafetyTalkLibraryID = value; return this; }
        public String getSafetyTalkLibraryUID() { return SafetyTalkLibraryUID; }
        public SafetyTalkLib setSafetyTalkLibraryUID(String value) { this.SafetyTalkLibraryUID = value; return this; }
        public String getTitle() { return Title; }
        public SafetyTalkLib setTitle(String value) { this.Title = value; return this; }
        public String getKind() { return Kind; }
        public SafetyTalkLib setKind(String value) { this.Kind = value; return this; }
        public String getCategory() { return Category; }
        public SafetyTalkLib setCategory(String value) { this.Category = value; return this; }
        public String getBody() { return Body; }
        public SafetyTalkLib setBody(String value) { this.Body = value; return this; }
        public String getMediaUrl() { return MediaUrl; }
        public SafetyTalkLib setMediaUrl(String value) { this.MediaUrl = value; return this; }
        public Integer getDurationMinutes() { return DurationMinutes; }
        public SafetyTalkLib setDurationMinutes(Integer value) { this.DurationMinutes = value; return this; }
        public Boolean isActive() { return Active; }
        public SafetyTalkLib setActive(Boolean value) { this.Active = value; return this; }
        public Integer getAssignmentCount() { return AssignmentCount; }
        public SafetyTalkLib setAssignmentCount(Integer value) { this.AssignmentCount = value; return this; }
    }

}

Java SafetyTalkLibListRequest 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/safety/talks HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SafetyTalkLibResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <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>
  <Talks>
    <SafetyTalkLib>
      <Active>false</Active>
      <AssignmentCount>0</AssignmentCount>
      <Body>String</Body>
      <Category>String</Category>
      <DurationMinutes>0</DurationMinutes>
      <Kind>String</Kind>
      <MediaUrl>String</MediaUrl>
      <SafetyTalkLibraryID>0</SafetyTalkLibraryID>
      <SafetyTalkLibraryUID>String</SafetyTalkLibraryUID>
      <Title>String</Title>
    </SafetyTalkLib>
  </Talks>
</SafetyTalkLibResponse>