| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Text; |
| | 4 | |
|
| | 5 | | namespace MUNity.Schema.Simulation |
| | 6 | | { |
| | 7 | | /// <summary> |
| | 8 | | /// Event arguments for when the roles of a simulation have changed. |
| | 9 | | /// This could mean that a role has been added, removed or been renamed. |
| | 10 | | /// It will contain the List of new Roles. |
| | 11 | | /// </summary> |
| | 12 | | public class RolesChangedEventArgs : EventArgs |
| | 13 | | { |
| | 14 | | /// <summary> |
| | 15 | | /// The Id of the Simulation that is effected by the changes |
| | 16 | | /// </summary> |
| 0 | 17 | | public int SimulationId { get; private set; } |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// The current or new roles |
| | 21 | | /// </summary> |
| 0 | 22 | | public IEnumerable<SimulationRoleDto> Roles { get; private set; } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Create event arguments with all given parameters |
| | 26 | | /// </summary> |
| | 27 | | /// <param name="simulationId"></param> |
| | 28 | | /// <param name="roles"></param> |
| 0 | 29 | | public RolesChangedEventArgs(int simulationId, IEnumerable<SimulationRoleDto> roles) |
| 0 | 30 | | { |
| 0 | 31 | | this.SimulationId = simulationId; |
| 0 | 32 | | this.Roles = roles; |
| 0 | 33 | | } |
| | 34 | | } |
| | 35 | | } |