// /** // * File: CDR.cs // * Author: haraldwolff // * // * This file and it's content is copyrighted by the Author and / or copyright holder. // * Any use wihtout proper permission is illegal and may lead to legal actions. // * // * // **/ using System; namespace ln.provider.data.phone { public class CDR { public Guid ID { get; private set; } = Guid.NewGuid(); public String Caller { get; } public String Called { get; } public DateTime Created { get; } public DateTime CallStarted { get; } public DateTime CallAnswered { get; } public DateTime CallEnded { get; } public TimeSpan CallDuration => CallEnded - CallStarted; public TimeSpan DurationToBill => CallEnded - CallAnswered; public Guid BilledTo { get; set; } public String DiagnosticInformation { get; } public CDR() { } } }