24 lines
552 B
C#
24 lines
552 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Dynamic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace KGdev.BI3D.Revit.Addin.MainWindow.External.Browser
|
|
{
|
|
internal class BrowserFunctions
|
|
{
|
|
public BrowserFunctions(Queue<string> callQueue)
|
|
{
|
|
this.callQueue = callQueue;
|
|
}
|
|
|
|
public void Execute(ExpandoObject obj)
|
|
{
|
|
string text = JsonConvert.SerializeObject(obj);
|
|
this.callQueue.Enqueue("execute:" + text);
|
|
}
|
|
|
|
private Queue<string> callQueue;
|
|
}
|
|
}
|