private async void StationOnSetUserShipNameAsync(object sender, SetUserShipNameEvent e) =>
 await AddCommand(new SetCommanderShip(e.Ship, e.ShipId)
 {
     Name       = e.UserShipName,
     Identifier = e.UserShipId
 }).SendAsync()
 .ConfigureAwait(false);
示例#2
0
 internal SetUserShipNameEvent InvokeEvent(SetUserShipNameEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         SetUserShipName?.Invoke(_api, arg);
     }
     return(arg);
 }
 private static void AssertEvent(SetUserShipNameEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2019-08-29T14:14:38Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal("sidewinder", @event.ShipType);
     Assert.Equal(ShipModel.Sidewinder, @event.ShipModel);
     Assert.Equal(0, @event.ShipId);
     Assert.Equal("Manta", @event.UserShipName);
     Assert.Equal("NSW-01", @event.UserShipId);
 }
 internal void InvokeSetUserShipNameEvent(SetUserShipNameEvent arg)
 {
     SetUserShipNameEvent?.Invoke(this, arg);
 }
示例#5
0
 internal void InvokeSetUserShipNameEvent(SetUserShipNameEvent arg) => SetUserShipNameEvent?.Invoke(null, arg);