Пример #1
0
        public static string previewObject(string URIs)
        {
            List<string> URIsArray = new List<string>();

            if (URIs.Contains(","))
            {
                URIsArray = URIs.Split(',').ToList<string>();
            }
            else
            {
                URIsArray.Add(URIs);
            }

            ObjectsPreviewManager objectsPreviewManager = new ObjectsPreviewManager();
            List<string> result = objectsPreviewManager.run(URIsArray[0]);

            string RelationsArray = "[";
            foreach (string res in result)
            {
              RelationsArray += res + ",";
            }

            RelationsArray.Remove(RelationsArray.Length-1);
            RelationsArray += "]";

            return RelationsArray;
        }
Пример #2
0
        public static string previewObject(string URIs)
        {
            List<string> URIsArray = new List<string>();

            if (URIs.Contains(","))
            {
                URIsArray = URIs.Split(',').ToList<string>();
            }
            else
            {
                URIsArray.Add(URIs);
            }

            ObjectsPreviewManager objectsPreviewManager = new ObjectsPreviewManager();
            List<string> result = objectsPreviewManager.run(URIsArray[0]);

            string RelationsArray = "[";

            RelationsArray+= string.Join(",", result.ToArray());

            RelationsArray += "]";

            return RelationsArray;
        }