57 lines
1.5 KiB
C#
57 lines
1.5 KiB
C#
namespace PS.IPAM;
|
|
using System;
|
|
|
|
[Serializable]
|
|
public class Section {
|
|
public int Id { get; }
|
|
public string Name { get; }
|
|
public string Description { get; }
|
|
public int MasterSectionId { get; }
|
|
public string Permissions { get; }
|
|
public bool StrictMode { get; }
|
|
public string SubnetOrdering { get; }
|
|
public int Order { get; }
|
|
public DateTime? EditDate { get; }
|
|
public bool ShowSubnet { get; }
|
|
public bool ShowVlan { get; }
|
|
public bool ShowVRF { get; }
|
|
public bool ShowSupernetOnly { get; }
|
|
public int DNSId { get; }
|
|
|
|
public Section (
|
|
int id,
|
|
string name,
|
|
string description,
|
|
int masterSectionId,
|
|
string permissions,
|
|
bool strictMode,
|
|
string subnetOrdering,
|
|
int order,
|
|
DateTime? editDate,
|
|
bool showSubnet,
|
|
bool showVlan,
|
|
bool showVRF,
|
|
bool showSupernetOnly,
|
|
int dnsId
|
|
) {
|
|
this.Id = id;
|
|
this.Name = name;
|
|
this.Description = description;
|
|
this.MasterSectionId = masterSectionId;
|
|
this.Permissions = permissions;
|
|
this.StrictMode = strictMode;
|
|
this.SubnetOrdering = subnetOrdering;
|
|
this.Order = order;
|
|
this.EditDate = editDate;
|
|
this.ShowSubnet = showSubnet;
|
|
this.ShowVlan = showVlan;
|
|
this.ShowVRF = showVRF;
|
|
this.ShowSupernetOnly = showSupernetOnly;
|
|
this.DNSId = dnsId;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return this.Name;
|
|
}
|
|
} |