Closed PhilPJL closed 4 years ago
Change the two GetGridSupplyPoints methods for consitency
1) Change Task<IEnumerable<GridSupplyPoint>>GetGridSupplyPointsAsync(string postcode = null) to: Task<string> GetGridSupplyPointByPostcodeAsync(string postcode)
Task<IEnumerable<GridSupplyPoint>>GetGridSupplyPointsAsync(string postcode = null)
Task<string> GetGridSupplyPointByPostcodeAsync(string postcode)
postcode is now required if 0 or >1 GSP is found throw an exception
2) Change Task<MeterPointGridSupplyPoint> GetGridSupplyPointAsync(string mpan) to Task<string> GetGridSupplyPointByMpanAsync(string mpan)
Task<MeterPointGridSupplyPoint> GetGridSupplyPointAsync(string mpan)
Task<string> GetGridSupplyPointByMpanAsync(string mpan)
Both methods will return a GSP of the form 'A', 'B', .. 'P' (e.g. strip any leading underscore).
Change the two GetGridSupplyPoints methods for consitency
1) Change
Task<IEnumerable<GridSupplyPoint>>GetGridSupplyPointsAsync(string postcode = null)
to:Task<string> GetGridSupplyPointByPostcodeAsync(string postcode)
postcode is now required if 0 or >1 GSP is found throw an exception
2) Change
Task<MeterPointGridSupplyPoint> GetGridSupplyPointAsync(string mpan)
toTask<string> GetGridSupplyPointByMpanAsync(string mpan)
Both methods will return a GSP of the form 'A', 'B', .. 'P' (e.g. strip any leading underscore).