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); }
internal static PubsubSimpleUser Create(BasePubsubClient client, WhisperModel model) { var entity = new PubsubSimpleUser(client, model.FromId); entity.Update(model); return(entity); }
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); }
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) { }
internal PubsubSimpleUser(BasePubsubClient client, ulong id) : base(client, id) { }
public PubsubEntity(BasePubsubClient client, T id) { Client = client; Id = id; }
internal PubsubWhisperMessage(BasePubsubClient client, ulong id) : base(client, id) { }
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) { }