Trendsic Platform Service

<back to all web services

SafetyTalkAssignRequest

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

public class dtos
{

    public static class SafetyTalkAssignRequest
    {
        public Integer SafetyTalkLibraryID = null;
        public ArrayList<Integer> ProjectIDs = new ArrayList<Integer>();
        public Date AssignedDate = null;
        
        public Integer getSafetyTalkLibraryID() { return SafetyTalkLibraryID; }
        public SafetyTalkAssignRequest setSafetyTalkLibraryID(Integer value) { this.SafetyTalkLibraryID = value; return this; }
        public ArrayList<Integer> getProjectIDs() { return ProjectIDs; }
        public SafetyTalkAssignRequest setProjectIDs(ArrayList<Integer> value) { this.ProjectIDs = value; return this; }
        public Date getAssignedDate() { return AssignedDate; }
        public SafetyTalkAssignRequest setAssignedDate(Date value) { this.AssignedDate = value; return this; }
    }

    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 SafetyTalkAssignRequest DTOs

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

HTTP + CSV

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

POST /v1/safety/talks/{SafetyTalkLibraryID}/assign HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"SafetyTalkLibraryID":0,"ProjectIDs":[0],"AssignedDate":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Talks":[{"SafetyTalkLibraryID":0,"SafetyTalkLibraryUID":"String","Title":"String","Kind":"String","Category":"String","Body":"String","MediaUrl":"String","DurationMinutes":0,"Active":false,"AssignmentCount":0}]}