protected override async Task <Turnout> GetObjectInfoFromController(int address, string name)
        {
            var request = new TurnoutInformationRequest {
                Address = (short)address
            };
            var response = await client.Value.GetTurnoutInformation(request);

            var turnout = new Turnout(address, name, response.TurnoutPosition);

            return(turnout);
        }
示例#2
0
 public Task <TurnoutInformation> GetTurnoutInformation(TurnoutInformationRequest request) => SendRequestWithAddressSpecificResponse(request);