﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sones.GraphQL.Result;

namespace sones.GraphDS.GraphDSRemoteClient.sonesGraphDSRemoteAPI
{
    public partial class ServiceHyperEdgeView
    {
        internal IHyperEdgeView ToHyperEdgeView(IServiceToken myServiceToken)
        {
            Dictionary<String, Object> properties = new Dictionary<string, object>();
            foreach (var item in this.PropertyList)
                properties.Add(item.Item1, item.Item2);
            return new HyperEdgeView(properties, this.Edges.Select(x => x.ToSingleEdgeView(myServiceToken)));
        }
    }
}
