internal PowerplayEvent InvokeEvent(PowerplayEvent arg) { if (_api.ValidateEvent(arg)) { Powerplay?.Invoke(_api, arg); } return(arg); }
private void AssertEvent(PowerplayEvent @event) { Assert.NotNull(@event); Assert.Equal(DateTime.Parse("2018-01-31T10:53:04Z"), @event.Timestamp); Assert.Equal(EventName, @event.Event); Assert.Equal("Edmund Mahon", @event.Power); Assert.Equal(1, @event.Rank); Assert.Equal(10, @event.Merits); Assert.Equal(5, @event.Votes); Assert.Equal(433024, @event.TimePledged); }
internal void InvokePowerplayEvent(PowerplayEvent arg) { PowerplayEvent?.Invoke(this, arg); }
private async void PowerplayOnPowerplayAsync(object sender, PowerplayEvent e) => await AddCommand(new SetCommanderRankPower(e.Power, e.Rank)) .SendAsync() .ConfigureAwait(false);
internal void InvokePowerplayEvent(PowerplayEvent arg) => PowerplayEvent?.Invoke(null, arg);