public CallRecord(CfCallRecord source) { Result = EnumeratedMapper.ScreamingSnakeCase(source.Result.ToString()); FinishTime = source.FinishTime; BilledAmount = source.BilledAmount; QuestionResponse = ActionRecordQuestionResponseMapper.ToActionRecordQuestionResponse(source.QuestionResponse); id = source.Id; if (source.OriginateTime.HasValue) { OriginateTime = source.OriginateTime.Value; OriginateTimeSpecified = true; } if (source.AnswerTime.HasValue) { AnswerTime = source.AnswerTime.Value; AnswerTimeSpecified = true; } Duration = source.Duration; RecordingMeta = RecordingMetaMapper.ToRecordingMeta(source.RecordingMeta); }
internal static CallRecord ToCallRecord(CfCallRecord source) { return source == null ? null : new CallRecord(source); }
public CfCall(string fromNumber, CfToNumber toNumber, CfActionState state, long batchId, long broadcastId, long contactId, bool inbound, DateTime created, DateTime modified, CfResult finalResult, CfLabel[] label, long id, CfCallRecord[] callRecord) : base(fromNumber, toNumber, state, batchId, broadcastId, contactId, inbound, created, modified, finalResult, label, id) { CallRecord = callRecord; }
internal static CallRecord[] ToCallRecord(CfCallRecord[] source) { return source == null ? null : source.Select(ToCallRecord).ToArray(); }