internal PowerplayEvent InvokeEvent(PowerplayEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         Powerplay?.Invoke(_api, arg);
     }
     return(arg);
 }
示例#2
0
 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);
 }
示例#3
0
 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);
示例#5
0
 internal void InvokePowerplayEvent(PowerplayEvent arg) => PowerplayEvent?.Invoke(null, arg);