| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Text; |
| | 4 | |
|
| | 5 | | namespace MUNity.Schema.Simulation |
| | 6 | | { |
| | 7 | | /// <summary> |
| | 8 | | /// Event Args when a user has been given a new role |
| | 9 | | /// </summary> |
| | 10 | | public class UserRoleChangedEventArgs : EventArgs |
| | 11 | | { |
| | 12 | | /// <summary> |
| | 13 | | /// The id of the simulation that the changes had been made to |
| | 14 | | /// </summary> |
| 0 | 15 | | public int SimulationId { get; private set; } |
| | 16 | |
|
| | 17 | | /// <summary> |
| | 18 | | /// The SimulationUserId of the user that is affected by this changed |
| | 19 | | /// </summary> |
| 0 | 20 | | public int UserId { get; private set; } |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// The id of the new role that has been selected. |
| | 24 | | /// </summary> |
| 0 | 25 | | public int RoleId { get; private set; } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Creates a new UserRoleChanged EventArgs with all needed parameters |
| | 29 | | /// </summary> |
| | 30 | | /// <param name="simulationId"></param> |
| | 31 | | /// <param name="userId"></param> |
| | 32 | | /// <param name="roleId"></param> |
| 0 | 33 | | public UserRoleChangedEventArgs(int simulationId, int userId, int roleId) |
| 0 | 34 | | { |
| 0 | 35 | | this.SimulationId = simulationId; |
| 0 | 36 | | this.UserId = userId; |
| 0 | 37 | | this.RoleId = roleId; |
| 0 | 38 | | } |
| | 39 | | } |
| | 40 | | } |