using System;
using Dpz.Core.Infrastructure;
using Dpz.Core.Public.Entity;
using Dpz.Core.Public.Entity.V4;
namespace Dpz.Core.Public.ViewModel.V4;
/// <summary>
/// 录音
/// </summary>
public class VmAudio : IMapFrom<Audio>
{
public string Id { get; set; }
/// <summary>
/// 访问地址
/// </summary>
public string AccessUrl { get; set; }
/// <summary>
/// 文件大小
/// </summary>
public long Size { get; set; }
/// <summary>
/// 时长
/// </summary>
public TimeSpan Duration { get; set; }
private DateTime _uploadTime;
/// <summary>
/// 上传时间
/// </summary>
public DateTime UploadTime
{
get => _uploadTime.ToLocalTime();
set => _uploadTime = value;
}
/// <summary>
/// 上传人
/// </summary>
public VmUserInfo Uploader { get; set; }
}