private void ParseResponseData(Json.DiscoveryResponseData responseData) { this.Ttl = Ttl.HasValue ? Ttl : CalculateTTL(responseData?.ttl); if (responseData == null) { return; } this.OperatorUrls = OperatorUrls.Parse(responseData); this.ApplicationShortName = responseData.response?.client_name; if (responseData.error != null) { this.ErrorResponse = new ErrorResponse() { Error = responseData.error, ErrorDescription = responseData.description }; } }
public DiscoveryResponse(Json.DiscoveryResponseData responseData) { ParseResponseData(responseData); this.ResponseData = responseData; }