~ruther/Nostale-Anonymizer

ref: e25d5a082b07dd6eedcacbcda31c23f40d1bf1a2 Nostale-Anonymizer/src/Anonymizer/Sinks/FileSinkOptions.cs -rw-r--r-- 981 bytes
e25d5a08 — František Boháček fix: bugs 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
//  FileSinkOptions.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Text.RegularExpressions;

namespace Anonymizer.Sinks;

/// <summary>
/// Options for <see cref="FileSink"/>.
/// </summary>
public class FileSinkOptions
{
    /// <summary>
    /// Gets or sets the line format to output.
    /// </summary>
    public string OutputFormat { get; set; } = "[%TYPE%]\t%PACKET%";

    /// <summary>
    /// Gets or sets the regex match of the line.
    /// </summary>
    public string LineRegex { get; set; } = ".*\\[(Recv|Send)\\]\t(.*)";

    /// <summary>
    /// Gets or sets the receive string from the packet line.
    /// </summary>
    public string RecvString { get; set; } = "Recv";

    /// <summary>
    /// Gets or sets the send string from the packet line.
    /// </summary>
    public string SendString { get; set; } = "Send";
}
Do not follow this link