Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

ShowPredictive

Requires Authentication
The following routes are available for this service:
All Verbs/ShowPredictive/{BlinkKey}/{SteadyKey}/{Color}/{ShowHeader}/{Owner}
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using GoToLightAPI;

namespace GoToLightAPI
{
    public enum HeaderMode
    {
        on,
        off,
        once,
    }

    public partial class ShowPredictive
    {
        ///<summary>
        ///Key identifying a location that will be shown blinking
        ///</summary>
        [ApiMember(Description="Key identifying a location that will be shown blinking", IsRequired=true)]
        public virtual string BlinkKey { get; set; }

        ///<summary>
        ///Key identifying a location that will be shown not blinking
        ///</summary>
        [ApiMember(Description="Key identifying a location that will be shown not blinking", IsRequired=true)]
        public virtual string SteadyKey { get; set; }

        ///<summary>
        ///HTML Color code (e.g. FF00FF)
        ///</summary>
        [ApiMember(Description="HTML Color code (e.g. FF00FF)", IsRequired=true)]
        public virtual string Color { get; set; }

        ///<summary>
        ///Indicates the way the area header will be displayed (possible values are on, off, once)
        ///</summary>
        [ApiMember(Description="Indicates the way the area header will be displayed (possible values are on, off, once)", IsRequired=true)]
        public virtual HeaderMode ShowHeader { get; set; }

        ///<summary>
        ///Name of the owner of the color/command to allow color sharing
        ///</summary>
        [ApiMember(Description="Name of the owner of the color/command to allow color sharing", IsRequired=true)]
        public virtual string Owner { get; set; }

        ///<summary>
        ///Optional: name of the stockroom where to show the position
        ///</summary>
        [ApiMember(Description="Optional: name of the stockroom where to show the position")]
        public virtual string StockroomName { get; set; }
    }

}

C# ShowPredictive 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.

POST /ShowPredictive/{BlinkKey}/{SteadyKey}/{Color}/{ShowHeader}/{Owner} HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"BlinkKey":"String","SteadyKey":"String","Color":"String","ShowHeader":"on","Owner":"String","StockroomName":"String"}