コード例 #1
0
        public EarthProfileResponseDto Execute(EarthProfileRequestDto request)
        {
            var response         = new EarthProfileResponseDto();
            var processElevation = setElevationEarth.Execute(request);

            if (processElevation.Failure)
            {
                return(new EarthProfileResponseDto(processElevation.ErrorList));
            }
            var earthProfileList = processElevation.Result;

            earthProfileList          = new CalculateProfileEarth().Execute(earthProfileList, request);
            response.Distance         = request.Distance;
            response.EarthProfileList = earthProfileList;
            return(CalculateGoodLink(response));
        }
コード例 #2
0
 private EarthProfileResponseDto CalculateGoodLink(EarthProfileResponseDto response)
 {
     response.IsGoodLink = response.EarthProfileList.Any(x => x.Ht > x.Zf) ? false : true;
     return(response);
 }