| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.ComponentModel.DataAnnotations; |
| | | 4 | | using System.Text; |
| | | 5 | | |
| | | 6 | | namespace MUNity.Schema.Authentication |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// The full request to create a new account at the munity API. Note that this will be reworked to |
| | | 10 | | /// only needing a Username, Password and Mail in the next implementations. |
| | | 11 | | /// </summary> |
| | | 12 | | public class RegisterRequest |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// The username that should be used to login and will be used as display name until the user |
| | | 16 | | /// types in a Forename and/or lastname. |
| | | 17 | | /// </summary> |
| | | 18 | | [Required] |
| | | 19 | | [MaxLength(40)] |
| | 0 | 20 | | public string Username { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// The forname of the user. Is required in this version but will not be used in future implementations |
| | | 24 | | /// of the munity api. |
| | | 25 | | /// </summary> |
| | | 26 | | [Required] |
| | | 27 | | [MaxLength(200)] |
| | 0 | 28 | | public string Forename { get; set; } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// the lastname of the user. Is required in this version but will not be used in future implementations |
| | | 32 | | /// of the munity api. |
| | | 33 | | /// </summary> |
| | | 34 | | [Required] |
| | | 35 | | [MaxLength(200)] |
| | 0 | 36 | | public string Lastname { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// the password. |
| | | 40 | | /// </summary> |
| | | 41 | | [Required] |
| | | 42 | | [MaxLength(300)] |
| | 0 | 43 | | public string Password { get; set; } |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// The mail address. |
| | | 47 | | /// </summary> |
| | | 48 | | [Required] |
| | | 49 | | [MaxLength(300)] |
| | 0 | 50 | | public string Mail { get; set; } |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// The birtdate of the user. |
| | | 54 | | /// </summary> |
| | | 55 | | [Required] |
| | 0 | 56 | | public DateTime Birthday { get; set; } |
| | | 57 | | } |
| | | 58 | | } |