예제 #1
0
 public static bool RequestTimestampWithinTolerance(SkillRequest request)
 {
     return(RequestTimestampWithinTolerance(request.Request.Timestamp));
 }
예제 #2
0
 public static bool APLTSupported(this SkillRequest request)
 {
     return(Supported(request));
 }
예제 #3
0
        public static APLInterfaceDetails APLTInterfaceDetails(this SkillRequest request)
        {
            var raw = GetAPLTInterfaceObject(request);

            return(raw == null ? null : JsonConvert.DeserializeObject <APLInterfaceDetails>(raw.ToString()));
        }
예제 #4
0
        private static object GetAPLTInterfaceObject(SkillRequest request)
        {
            var interfaces = request.Context.System.Device.SupportedInterfaces;

            return(interfaces.ContainsKey(InterfaceName) ? interfaces[InterfaceName] : null);
        }
예제 #5
0
 public static bool Supported(SkillRequest request)
 {
     return(request.Context.System.Device.SupportedInterfaces.ContainsKey(InterfaceName));
 }