Example #1
0
        public static RadioCall FromCall(TrunkRecorder.Call call)
        {
            var radioCall = new RadioCall();

            radioCall.UpdateFromCall(call);
            return(radioCall);
        }
Example #2
0
        public void UpdateFromCall(TrunkRecorder.Call call)
        {
            CallIdentifier      = call.Id;
            CallRecordState     = ushort.Parse(call.RecordState);
            CallState           = ushort.Parse(call.State);
            Elapsed             = uint.Parse(call.Elasped);
            Frequency           = long.Parse(call.Frequency);
            IsAnalog            = bool.Parse(call.Analog);
            IsConventional      = bool.Parse(call.Conventional);
            IsEncrypted         = bool.Parse(call.Encrypted);
            IsEmergency         = bool.Parse(call.Emergency);
            IsPhase2            = bool.Parse(call.Phase2);
            Length              = uint.Parse(call.Length);
            StartTime           = ulong.Parse(call.StartTime);
            StopTime            = ulong.Parse(call.StopTime);
            TalkGroupIdentifier = ushort.Parse(call.Talkgroup);
            TalkGroupTag        = call.Talkgrouptag;

            CallWavPath    = call.Filename;
            Filename       = call.Filename;
            DebugFilename  = call.DebugFilename;
            SigmfFileName  = call.SigmfFilename;
            StatusFilename = call.StatusFilename;
        }