public string Get(GetName request) { var networkData = VeraApi.GetNetworkDataAsync(request.IpAddress).Result; return(JsonSerializer.SerializeToString(new GetName { Name = VeraApi.GetVeraName(networkData.model) })); }
public string Get(VeraScenes request) { var networkData = VeraApi.GetNetworkDataAsync(VeraApi.VeraDeviceInfo.InternalIp).Result; return(JsonSerializer.SerializeToString(networkData.scenes)); }