public JSChannel(ObjectInstance prototype, IChannelItem item) : base(prototype.Engine, ((ClrFunction)prototype.Engine.Global["Channel"]).InstancePrototype) { this.Item = item; this.PopulateFunctions(); DefineProperty(Engine.Symbol.ToStringTag, new PropertyDescriptor("Channel", PropertyAttributes.Sealed), true); }
public FollowChannelViewModel(IChannelItem followChannel) { _followChannel = followChannel; }
public JSChannel(ObjectInstance prototype, IChannelItem item) : base(prototype.Engine, ((ClrFunction)prototype.Engine.Global["Channel"]).InstancePrototype) { this.Item = item; this.PopulateFunctions(); }
internal static bool IsChannelVisible(IChannelItem item, User user) { var channel = ChannelManager.GetChannel(item.ChannelId); return(channel.IsVisible(user)); }