2023-10-18 04:55:10 +00:00
|
|
|
using PhoneToolMX.Data;
|
|
|
|
using PhoneToolMX.Models;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
namespace PhoneToolMX.Models {
|
|
|
|
public class Extension: OwnedBase {
|
|
|
|
public ICollection<Phone> Phones { get; set; }
|
|
|
|
|
|
|
|
[Header("Ext.", Primary = true, Small = true)]
|
|
|
|
public int ExtId { get; set; }
|
|
|
|
|
|
|
|
[Header("Directory Name")]
|
|
|
|
[Required]
|
|
|
|
public string DirectoryName { get; set; }
|
|
|
|
|
|
|
|
[Header("Listed?", Small = true)]
|
|
|
|
public bool Listed { get; set; }
|
|
|
|
|
|
|
|
public CustomData HoldMusic { get; set; }
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
public string ListViewName => $"{DirectoryName} ({ExtId})";
|
2023-10-20 19:57:22 +00:00
|
|
|
|
|
|
|
public string Password { get; set; }
|
2023-10-18 04:55:10 +00:00
|
|
|
}
|
|
|
|
}
|