﻿using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
    public class OpenRouteServiceDirectionsWrapper : Object
    {
        public OnlineMapsOpenRouteServiceDirectionResult result;

        public int count
        {
            get { return result != null && result.routes != null ? result.routes.Length : 0; }
        }

        public OpenRouteServiceDirectionsWrapper(string response)
        {
            result = OnlineMapsOpenRouteService.GetDirectionResults(response);
        }
    }
}