public static CoordGoogleResponse Send(this DirectionsRequest req, Vehicle v, string serviceScope = "") { CoordGoogleRequest coordGoogleRequest = JsonConvert.DeserializeObject <CoordGoogleRequest>(JsonConvert.SerializeObject(req)); coordGoogleRequest.Vehicle = v; return(coordGoogleRequest.Send(serviceScope)); }
public static CoordGoogleResponse Send(this CoordGoogleRequest req, string serviceScope = "") { if (string.IsNullOrEmpty(serviceScope)) { return(CoordGoogleClient.GetSingletonInstance().SendCoordGoogleRequest(req)); } else { return(CoordGoogleClient.GetScopedInstance(serviceScope).SendCoordGoogleRequest(req)); } }