Trendsic Platform Service

<back to all web services

SchedulerConfigurationRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/Scheduler/Settings/{LocationId}/{AgentId}/{Mode}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class Line
            Public Overridable Property Id As Guid
            Public Overridable Property LocationId As Guid
            Public Overridable Property LocationName As String
            Public Overridable Property Name As String
            Public Overridable Property Description As String
            Public Overridable Property ServiceDurationMinutes As Integer
            Public Overridable Property WaitTime As Integer
            Public Overridable Property Cost As Decimal
            Public Overridable Property UpperThreshold As Integer?
            Public Overridable Property LowerThreshold As Integer?
            Public Overridable Property Active As Boolean
            Public Overridable Property EntDate As Date?
            Public Overridable Property ModDate As Date?
            Public Overridable Property SendQuestionnaire As Boolean
            Public Overridable Property RequireUpload As Boolean
            Public Overridable Property UploadMessage As String
            Public Overridable Property LineImages As List(Of LineImage) = New List(Of LineImage)
        End Class

        Public Partial Class LineImage
            Public Overridable Property ImageId As Guid?
            Public Overridable Property FileName As String
            Public Overridable Property ImageTitle As String
            Public Overridable Property UploadDate As Date
        End Class

        Public Partial Class ScheduleConfigDay
            Public Overridable Property DayName As String
            Public Overridable Property DayNumber As Integer?
            Public Overridable Property DayEnabled As Boolean?
            Public Overridable Property TimeBlocks As List(Of ScheduleConfigTimeBlock) = New List(Of ScheduleConfigTimeBlock)
        End Class

        Public Partial Class ScheduleConfigTimeBlock
            Public Overridable Property StartTime As TimeSpan
            Public Overridable Property DayStartFriendly As String
            Public Overridable Property EndTime As TimeSpan
            Public Overridable Property DayEndFriendly As String
        End Class

        Public Partial Class SchedulerConfiguration
            Public Overridable Property ConfigId As Integer
            Public Overridable Property SchedulerUrl As String
            Public Overridable Property SchedulerName As String
            Public Overridable Property DefaultLocation As String
            Public Overridable Property DefaultSummary As String
            Public Overridable Property DefaultDescription As String
            Public Overridable Property DayStart As TimeSpan
            Public Overridable Property DayStartFriendly As String
            Public Overridable Property DayEnd As TimeSpan
            Public Overridable Property DayEndFriendly As String
            Public Overridable Property TimeslotDuration As Integer
            Public Overridable Property NumberOfSlots As Integer?
            Public Overridable Property LocationId As Guid
            Public Overridable Property CalendarId As Guid
            Public Overridable Property AgentId As Integer
            Public Overridable Property TimeZone As String
            Public Overridable Property AvailableDateTimes As List(Of ScheduleConfigDay) = New List(Of ScheduleConfigDay)
            Public Overridable Property AvailableServices As List(Of Guid) = New List(Of Guid)
            Public Overridable Property AllServices As List(Of Line) = New List(Of Line)
        End Class

        Public Partial Class SchedulerConfigurationRequest
            Public Overridable Property LocationId As Guid
            Public Overridable Property AgentId As Integer
            Public Overridable Property Mode As String
        End Class
    End Namespace
End Namespace

VB.NET SchedulerConfigurationRequest DTOs

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

HTTP + OTHER

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

GET /v1/Scheduler/Settings/{LocationId}/{AgentId}/{Mode} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ConfigId":0,"SchedulerUrl":"String","SchedulerName":"String","DefaultLocation":"String","DefaultSummary":"String","DefaultDescription":"String","DayStart":"PT0S","DayStartFriendly":"00:00","DayEnd":"PT0S","DayEndFriendly":"00:00","TimeslotDuration":0,"NumberOfSlots":0,"LocationId":"00000000000000000000000000000000","CalendarId":"00000000000000000000000000000000","AgentId":0,"TimeZone":"String","AvailableDateTimes":[{"DayName":"String","DayNumber":0,"DayEnabled":false,"TimeBlocks":[{"StartTime":"PT0S","DayStartFriendly":"00:00","EndTime":"PT0S","DayEndFriendly":"00:00"}]}],"AvailableServices":["00000000000000000000000000000000"],"AllServices":[{"Id":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000","LocationName":"String","Name":"String","Description":"String","ServiceDurationMinutes":0,"WaitTime":0,"Cost":0,"UpperThreshold":0,"LowerThreshold":0,"Active":false,"EntDate":"0001-01-01T00:00:00.0000000","ModDate":"0001-01-01T00:00:00.0000000","SendQuestionnaire":false,"RequireUpload":false,"UploadMessage":"String","LineImages":[{"ImageId":"00000000000000000000000000000000","FileName":"String","ImageTitle":"String","UploadDate":"0001-01-01T00:00:00.0000000"}]}]}