public static Objects.JSHashlinkResult Decode(ScriptEngine eng, object a) { if (a is String || a is ConcatenatedString) { String str = a.ToString(); try { DecryptedHashlink hashlink = Hashlink.DecodeHashlink(a.ToString()); if (hashlink != null) { return(new Objects.JSHashlinkResult(eng.Object.InstancePrototype, hashlink)); } } catch { } } return(null); }
public JSHashlinkResult(ObjectInstance prototype, DecryptedHashlink obj) : base(prototype.Engine, ((ClrFunction)prototype.Engine.Global["HashlinkResult"]).InstancePrototype) { this.PopulateFunctions(); this.parent = obj; }