private class JsCall { public JsCall(long id, string identifier, object[] args, object tcs, Type type) { Id = id; Identifier = identifier; Args = args; Tcs = tcs; Type = type; } public long Id { get; } public string Identifier { get; } public object[] Args { get; } public Type Type { get; } public object Tcs { get; } } private class JsResult { public bool Success { get; set; } public object ReturnValue { get; set; } public string Error { get; set; } }