Files
WatchIt/WatchIt.Common/WatchIt.Common.Model/Accounts/AccountUsernameRequest.cs

27 lines
501 B
C#
Raw Normal View History

2024-11-06 00:11:45 +01:00
using System.Text.Json.Serialization;
namespace WatchIt.Common.Model.Accounts;
public class AccountUsernameRequest
{
#region PROPERTIES
[JsonPropertyName("new_username")]
public string NewUsername { get; set; }
[JsonPropertyName("password")]
public string Password { get; set; }
#endregion
#region PUBLIC METHODS
public void UpdateAccount(Database.Model.Account.Account account)
{
account.Username = NewUsername;
}
#endregion
}