public static RadioSystem FromSystem(TrunkRecorder.System system) { var radio = new RadioSystem(); radio.UpdateFromSystem(system); return(radio); }
public void UpdateFromSystem(TrunkRecorder.System system) { ShortName = system.ShortName; SystemNumber = system.SystemNumber; NAC = system.NAC; WANC = system.WACN; if (system.SystemType != null) { SystemType = (RadioSystemType)Enum.Parse(typeof(RadioSystemType), system.SystemType, true); } LastUpdatedUtc = DateTime.UtcNow; }