Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Globalization;
- using Newtonsoft.Json;
- namespace NeonTo99__.NET_.Models
- {
- class User
- {
- public User(string username, string password)
- {
- this.Username = username;
- this.Password = password;
- }
- public string Username { get; set; }
- public string Password { get; set; }
- public string Token { get; set; }
- public string RequestDate { get {
- return DateTime.UtcNow.ToString("s", CultureInfo.InvariantCulture);
- } set {
- RequestDate = value;
- }
- }
- public string ToJson()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement