示例#1
0
        public string Get(GetName request)
        {
            var networkData = VeraApi.GetNetworkDataAsync(request.IpAddress).Result;

            return(JsonSerializer.SerializeToString(new GetName
            {
                Name = VeraApi.GetVeraName(networkData.model)
            }));
        }
示例#2
0
        public string Get(VeraScenes request)
        {
            var networkData = VeraApi.GetNetworkDataAsync(VeraApi.VeraDeviceInfo.InternalIp).Result;

            return(JsonSerializer.SerializeToString(networkData.scenes));
        }