| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.ComponentModel.DataAnnotations; |
| | | 4 | | using System.Text; |
| | | 5 | | |
| | | 6 | | namespace MUNity.Schema.Simulation |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// The body of a request to join into a simulation with a given PublicId and password |
| | | 10 | | /// </summary> |
| | | 11 | | public class JoinAuthenticate |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// The id of the Simulation you want to join |
| | | 15 | | /// </summary> |
| | | 16 | | [Required] |
| | 0 | 17 | | public int SimulationId { get; set; } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// The public user id of the slot you want to join in |
| | | 21 | | /// </summary> |
| | | 22 | | [Required(ErrorMessage = "Eine Kennung wird benötigt.")] |
| | | 23 | | [MaxLength(100)] |
| | 0 | 24 | | public string UserId { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The password of the simulation you want to enter. |
| | | 28 | | /// </summary> |
| | | 29 | | [MaxLength(100)] |
| | | 30 | | [Required(ErrorMessage = "Ein Passwort wird benötogt.")] |
| | 0 | 31 | | public string Password { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// The display name you want to enter with. |
| | | 35 | | /// </summary> |
| | | 36 | | [MaxLength(50)] |
| | | 37 | | [Required(ErrorMessage = "Ein Anzeigename wird benötigt.")] |
| | 0 | 38 | | public string DisplayName { get; set; } |
| | | 39 | | } |
| | | 40 | | } |