public DistanceFinder(TransactionResponse transDetails) { Request = new DistanceValidatorRequest() { CurrentLatitute = double.Parse(transDetails.Latitude), CurrentLongitute = double.Parse(transDetails.Longitude) }; if (transDetails.ImmediateLastRes != null) { Request.LastTransactionDateTime = transDetails.ImmediateLastRes.TransactionDT; Request.OriginaLatitute = double.Parse(transDetails.ImmediateLastRes.Latitude ?? "0"); Request.OriginaLongitute = double.Parse(transDetails.ImmediateLastRes.Longitude ?? "0"); } }
public DistanceFinder(DistanceValidatorRequest Request) { this.Request = Request; }