Exemplo n.º 1
0
 public Boson(
     BosonType Type,
     Energy mass,
     ElectricCharge electricCharge,
     InteractionFlags interactionFlags,
     Spin spin,
     Spin isospin,
     int hypercharge,
     float lifetime)
 {
     this._naturalMass = mass;
     this._mass        = new Mass((_naturalMass.ElectronVolts * SpeedOfLightSquared) / ElectronMassPlank,
                                  MassUnit.Kilogram);
     this._type             = Type;
     this._electricCharge   = electricCharge;
     this._interactionFlags = interactionFlags;
     this._spin             = spin;
     this._isospin          = isospin;
     this._hypercharge      = hypercharge;
     this._lifetime         = lifetime;
 }
Exemplo n.º 2
0
 public KeyRequest(TRequest request, InteractionFlags flags)
 {
     Request = request;
     Flags   = flags;
 }
 /// <summary>
 /// Sets the flags of this interaction response
 /// </summary>
 /// <param name="flags">The flags of this interaction response</param>
 /// <returns>The modified interaction builder</returns>
 public DiscordInteractionBuilder WithFlags(InteractionFlags flags)
 {
     Flags = flags;
     return(this);
 }