예제 #1
0
        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));
        }
예제 #2
0
 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));
     }
 }