// Copyright © 2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace CefSharp.Internals { [DataContract] public class JavascriptMethod { /// /// Gets or sets a delegate which is used to invoke the method if the member is a method. /// public Func Function { get; set; } /// /// Identifies the for BrowserProcess to RenderProcess communication /// [DataMember] public long Id { get; set; } /// /// Gets or sets the name of the managed property. /// [DataMember] public string ManagedName { get; set; } /// /// Gets or sets the name of the property in the JavaScript runtime. /// [DataMember] public string JavascriptName { get; set; } /// /// Params this method expects /// public List Parameters { get; set; } public bool HasParamArray { get; set; } /// /// Number of Params this function exepects /// public int ParameterCount { get; set; } public override string ToString() { return ManagedName ?? base.ToString(); } } }