Exemple #1
0
        internal static PubsubBitsMessage Create(BasePubsubClient client, Model model)
        {
            var entity = new PubsubBitsMessage(client, model.MessageId);

            entity.Update(model);
            return(entity);
        }
        internal new static PubsubWhisperUser Create(BasePubsubClient client, SelfModel model)
        {
            var entity = new PubsubWhisperUser(client, model.Id);

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

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

            entity.Update(model);
            return(entity);
        }
        internal static PubsubSimpleChannel Create(BasePubsubClient client, Model model)
        {
            var entity = new PubsubSimpleChannel(client, model.ChannelId);

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

        public PubsubWhisperUser(BasePubsubClient client, ulong id)
            : base(client, id)
        {
        }
Exemple #8
0
 internal PubsubSimpleUser(BasePubsubClient client, ulong id)
     : base(client, id)
 {
 }
Exemple #9
0
 public PubsubEntity(BasePubsubClient client, T id)
 {
     Client = client;
     Id     = id;
 }
Exemple #10
0
 internal PubsubWhisperMessage(BasePubsubClient client, ulong id)
     : base(client, id)
 {
 }
Exemple #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);
 }
 internal PubsubSimpleChannel(BasePubsubClient client, ulong id)
     : base(client, id)
 {
 }