Beispiel #1
0
        internal static CfTextRecord FromTextRecord(TextRecord source)
        {
            if (source == null)
            {
                return(null);
            }
            var result           = EnumeratedMapper.EnumFromSoapEnumerated <CfResult>(source.Result);
            var questionResponse = ActionRecordQuestionResponseMapper.FromActionRecordQuestionResponse(source.QuestionResponse);

            return(new CfTextRecord(result, source.FinishTime, source.BilledAmount, questionResponse, source.id, source.Message));
        }
Beispiel #2
0
        internal static TextRecord ToTextRecord(CfTextRecord source)
        {
            if (source == null)
            {
                return(null);
            }
            var result           = EnumeratedMapper.ScreamingSnakeCase(source.Result.ToString());
            var questionResponse = ActionRecordQuestionResponseMapper.ToActionRecordQuestionResponse(source.QuestionResponse);

            return(new TextRecord(result, source.FinishTime, source.BilledAmount, questionResponse, source.Id, source.Message));
        }
Beispiel #3
0
        internal static CfCallRecord FromCallRecord(CallRecord source)
        {
            if (source == null)
            {
                return(null);
            }
            var result           = EnumeratedMapper.EnumFromSoapEnumerated <CfResult>(source.Result);
            var questionResponse = ActionRecordQuestionResponseMapper.FromActionRecordQuestionResponse(source.QuestionResponse);
            var recordingMeta    = RecordingMetaMapper.FromRecordingMeta(source.RecordingMeta);

            return(new CfCallRecord(result, source.FinishTime, source.BilledAmount, questionResponse, source.id, source.OriginateTime,
                                    source.AnswerTime, source.Duration, recordingMeta));
        }