Пример #1
0
        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);
        }
Пример #2
0
 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();
 }
Пример #4
0
        internal static bool IsChannelVisible(IChannelItem item, User user)
        {
            var channel = ChannelManager.GetChannel(item.ChannelId);

            return(channel.IsVisible(user));
        }