2021-02-23 18:03:37 +08:00
|
|
|
using System;
|
2022-05-17 18:08:53 +08:00
|
|
|
using BililiveRecorder.Core.SimpleWebhook;
|
2021-02-23 18:03:37 +08:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace BililiveRecorder.Core.Event
|
|
|
|
{
|
2022-05-17 18:08:53 +08:00
|
|
|
/// <summary>
|
|
|
|
/// <see cref="EventType.FileClosed"/>
|
|
|
|
/// </summary>
|
|
|
|
public sealed class RecordFileClosedEventArgs : RecordEventArgsBase, IRecordSessionEventArgs
|
2021-02-23 18:03:37 +08:00
|
|
|
{
|
2022-05-17 18:08:53 +08:00
|
|
|
internal RecordFileClosedEventArgs(IRoom room) : base(room) { }
|
2021-02-23 18:03:37 +08:00
|
|
|
|
2022-05-17 18:08:53 +08:00
|
|
|
public Guid SessionId { get; set; }
|
2021-02-23 18:03:37 +08:00
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
public string FullPath { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
public string RelativePath { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
public long FileSize { get; set; }
|
|
|
|
|
|
|
|
public double Duration { get; set; }
|
|
|
|
|
|
|
|
public DateTimeOffset FileOpenTime { get; set; }
|
|
|
|
|
|
|
|
public DateTimeOffset FileCloseTime { get; set; }
|
|
|
|
}
|
|
|
|
}
|