Пример #1
0
        internal static PubsubBitsMessage Create(BasePubsubClient client, Model model)
        {
            var entity = new PubsubBitsMessage(client, model.MessageId);

            entity.Update(model);
            return(entity);
        }
Пример #2
0
        internal new static PubsubWhisperUser Create(BasePubsubClient client, SelfModel model)
        {
            var entity = new PubsubWhisperUser(client, model.Id);

            entity.Update(model);
            return(entity);
        }
Пример #3
0
        internal static PubsubSimpleUser Create(BasePubsubClient client, WhisperModel model)
        {
            var entity = new PubsubSimpleUser(client, model.FromId);

            entity.Update(model);
            return(entity);
        }
Пример #4
0
        internal static PubsubWhisperMessage Create(BasePubsubClient client, Model model)
        {
            var entity = new PubsubWhisperMessage(client, model.Data.Id);

            entity.Update(model);
            return(entity);
        }
Пример #5
0
        internal static PubsubSimpleChannel Create(BasePubsubClient client, Model model)
        {
            var entity = new PubsubSimpleChannel(client, model.ChannelId);

            entity.Update(model);
            return(entity);
        }
Пример #6
0
 internal PubsubBitsMessage(BasePubsubClient client, string id)
     : base(client, id)
 {
 }
Пример #7
0
        //public IReadOnlyCollection<object> Badges { get; private set; }
        //public IReadOnlyCollection<object> Emotes { get; private set; }

        public PubsubWhisperUser(BasePubsubClient client, ulong id)
            : base(client, id)
        {
        }
Пример #8
0
 internal PubsubSimpleUser(BasePubsubClient client, ulong id)
     : base(client, id)
 {
 }
Пример #9
0
 public PubsubEntity(BasePubsubClient client, T id)
 {
     Client = client;
     Id     = id;
 }
Пример #10
0
 internal PubsubWhisperMessage(BasePubsubClient client, ulong id)
     : base(client, id)
 {
 }
Пример #11
0
 public static async Task HandleWhisperAsync(BasePubsubClient client, string content)
 {
     var model  = JsonConvert.DeserializeObject <WhisperMessage>(content);
     var entity = PubsubWhisperMessage.Create(client, model);
     await client.whisperReceivedEvent.InvokeAsync(entity).ConfigureAwait(false);
 }
Пример #12
0
 internal PubsubSimpleChannel(BasePubsubClient client, ulong id)
     : base(client, id)
 {
 }