using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using _0_Framework.Domain; using AccountManagement.Domain.AccountAgg; namespace AccountManagement.Domain.CameraAccountAgg; public class CameraAccount : EntityBase { public CameraAccount(string username, string password, string mobile, string workshopName, long workshopId, long accountId) { Username = username; Password = password; Mobile = mobile; WorkshopName = workshopName; WorkshopId = workshopId; AccountId = accountId; IsActiveSting = "true"; } public string Username { get; private set; } public string Password { get; private set; } public string Mobile { get; private set; } public long WorkshopId { get; private set; } public string WorkshopName { get; private set; } public long AccountId { get; private set; } public string IsActiveSting { get; private set; } public Account Account { get; private set; } public void Active() { this.IsActiveSting = "true"; } public void DeActive() { this.IsActiveSting = "false"; } public void ChangePassword(string password) { Password = password; } }