2019-09-02 10:28:14 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2020-03-05 15:30:50 +00:00
|
|
|
|
namespace FSecure.C3.WebController.Models
|
2019-09-02 10:28:14 +00:00
|
|
|
|
{
|
|
|
|
|
public class GatewayViewModel : AgentViewModel
|
|
|
|
|
{
|
|
|
|
|
public ICollection<RelayViewModel> Relays { get; set; }
|
|
|
|
|
|
|
|
|
|
public ICollection<Connector> Connectors { get; set; }
|
|
|
|
|
|
|
|
|
|
public GatewayViewModel(Gateway g): base(g, g.Build?.Name)
|
|
|
|
|
{
|
|
|
|
|
Connectors = g.Connectors;
|
|
|
|
|
Relays = g.Relays?.Select(r => new RelayViewModel(r)).ToList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|