Exemple #1
0
        public static RadioSystem FromSystem(TrunkRecorder.System system)
        {
            var radio = new RadioSystem();

            radio.UpdateFromSystem(system);
            return(radio);
        }
Exemple #2
0
        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;
        }