39 lines
967 B
C#
39 lines
967 B
C#
namespace PS.IPAM;
|
|
using System;
|
|
using System.Dynamic;
|
|
|
|
[Serializable]
|
|
public class Vlan : DynamicObject {
|
|
public int Id { get; }
|
|
public int DomainId { get; }
|
|
public string Name { get; }
|
|
public int Number { get; }
|
|
public string Description { get; }
|
|
public DateTime? EditDate { get; }
|
|
public int CustomerId { get; }
|
|
public Object? ExtendedData { get; }
|
|
public Vlan (
|
|
int vlanId,
|
|
int domainId,
|
|
string name,
|
|
int number,
|
|
string description,
|
|
DateTime? editDate,
|
|
int customer_id,
|
|
Object? custom_fields
|
|
) {
|
|
this.Id = vlanId;
|
|
this.DomainId = domainId;
|
|
this.Name = name;
|
|
this.Number = number;
|
|
this.Description = description;
|
|
this.EditDate = editDate;
|
|
this.CustomerId = customer_id;
|
|
this.ExtendedData = custom_fields;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{this.Number}";
|
|
}
|
|
} |