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); }
public Task <TurnoutInformation> GetTurnoutInformation(TurnoutInformationRequest request) => SendRequestWithAddressSpecificResponse(request);