mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-11 10:26:57 +02:00
Formatting
This commit is contained in:
parent
45ff1daff3
commit
a9eca1ceb2
5 changed files with 8877 additions and 8894 deletions
|
@ -8,8 +8,7 @@ namespace DiscordChatExporter.Core.Utils;
|
|||
[ExcludeFromCodeCoverage]
|
||||
internal static class EmojiIndex
|
||||
{
|
||||
private static Dictionary<string, string> _toCodes =
|
||||
new(5000, StringComparer.Ordinal)
|
||||
private static Dictionary<string, string> _toCodes = new(5000, StringComparer.Ordinal)
|
||||
{
|
||||
["😀"] = "grinning",
|
||||
["😃"] = "smiley",
|
||||
|
@ -3551,8 +3550,7 @@ internal static class EmojiIndex
|
|||
["🇺🇳"] = "united_nations",
|
||||
};
|
||||
|
||||
private static Dictionary<string, string> _fromCodes =
|
||||
new(5000, StringComparer.Ordinal)
|
||||
private static Dictionary<string, string> _fromCodes = new(5000, StringComparer.Ordinal)
|
||||
{
|
||||
["grinning"] = "😀",
|
||||
["smiley"] = "😃",
|
||||
|
@ -6258,8 +6256,7 @@ internal static class EmojiIndex
|
|||
["woman_and_man_holding_hands_tone2"] = "👫🏼",
|
||||
["woman_and_man_holding_hands_medium_light_skin_tone"] = "👫🏼",
|
||||
["woman_and_man_holding_hands_tone2_tone3"] = "👩🏼🤝👨🏽",
|
||||
["woman_and_man_holding_hands_medium_light_skin_tone_medium_skin_tone"] =
|
||||
"👩🏼🤝👨🏽",
|
||||
["woman_and_man_holding_hands_medium_light_skin_tone_medium_skin_tone"] = "👩🏼🤝👨🏽",
|
||||
["woman_and_man_holding_hands_tone2_tone4"] = "👩🏼🤝👨🏾",
|
||||
["woman_and_man_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"] =
|
||||
"👩🏼🤝👨🏾",
|
||||
|
@ -6268,8 +6265,7 @@ internal static class EmojiIndex
|
|||
["woman_and_man_holding_hands_tone3_tone1"] = "👩🏽🤝👨🏻",
|
||||
["woman_and_man_holding_hands_medium_skin_tone_light_skin_tone"] = "👩🏽🤝👨🏻",
|
||||
["woman_and_man_holding_hands_tone3_tone2"] = "👩🏽🤝👨🏼",
|
||||
["woman_and_man_holding_hands_medium_skin_tone_medium_light_skin_tone"] =
|
||||
"👩🏽🤝👨🏼",
|
||||
["woman_and_man_holding_hands_medium_skin_tone_medium_light_skin_tone"] = "👩🏽🤝👨🏼",
|
||||
["woman_and_man_holding_hands_tone3"] = "👫🏽",
|
||||
["woman_and_man_holding_hands_medium_skin_tone"] = "👫🏽",
|
||||
["woman_and_man_holding_hands_tone3_tone4"] = "👩🏽🤝👨🏾",
|
||||
|
@ -6403,18 +6399,15 @@ internal static class EmojiIndex
|
|||
["couple_with_heart_tone1"] = "💑🏻",
|
||||
["couple_with_heart_light_skin_tone"] = "💑🏻",
|
||||
["couple_with_heart_person_person_tone1_tone2"] = "🧑🏻❤️🧑🏼",
|
||||
["couple_with_heart_person_person_light_skin_tone_medium_light_skin_tone"] =
|
||||
"🧑🏻❤️🧑🏼",
|
||||
["couple_with_heart_person_person_light_skin_tone_medium_light_skin_tone"] = "🧑🏻❤️🧑🏼",
|
||||
["couple_with_heart_person_person_tone1_tone3"] = "🧑🏻❤️🧑🏽",
|
||||
["couple_with_heart_person_person_light_skin_tone_medium_skin_tone"] = "🧑🏻❤️🧑🏽",
|
||||
["couple_with_heart_person_person_tone1_tone4"] = "🧑🏻❤️🧑🏾",
|
||||
["couple_with_heart_person_person_light_skin_tone_medium_dark_skin_tone"] =
|
||||
"🧑🏻❤️🧑🏾",
|
||||
["couple_with_heart_person_person_light_skin_tone_medium_dark_skin_tone"] = "🧑🏻❤️🧑🏾",
|
||||
["couple_with_heart_person_person_tone1_tone5"] = "🧑🏻❤️🧑🏿",
|
||||
["couple_with_heart_person_person_light_skin_tone_dark_skin_tone"] = "🧑🏻❤️🧑🏿",
|
||||
["couple_with_heart_person_person_tone2_tone1"] = "🧑🏼❤️🧑🏻",
|
||||
["couple_with_heart_person_person_medium_light_skin_tone_light_skin_tone"] =
|
||||
"🧑🏼❤️🧑🏻",
|
||||
["couple_with_heart_person_person_medium_light_skin_tone_light_skin_tone"] = "🧑🏼❤️🧑🏻",
|
||||
["couple_with_heart_tone2"] = "💑🏼",
|
||||
["couple_with_heart_medium_light_skin_tone"] = "💑🏼",
|
||||
["couple_with_heart_person_person_tone2_tone3"] = "🧑🏼❤️🧑🏽",
|
||||
|
@ -6424,8 +6417,7 @@ internal static class EmojiIndex
|
|||
["couple_with_heart_person_person_medium_light_skin_tone_medium_dark_skin_tone"] =
|
||||
"🧑🏼❤️🧑🏾",
|
||||
["couple_with_heart_person_person_tone2_tone5"] = "🧑🏼❤️🧑🏿",
|
||||
["couple_with_heart_person_person_medium_light_skin_tone_dark_skin_tone"] =
|
||||
"🧑🏼❤️🧑🏿",
|
||||
["couple_with_heart_person_person_medium_light_skin_tone_dark_skin_tone"] = "🧑🏼❤️🧑🏿",
|
||||
["couple_with_heart_person_person_tone3_tone1"] = "🧑🏽❤️🧑🏻",
|
||||
["couple_with_heart_person_person_medium_skin_tone_light_skin_tone"] = "🧑🏽❤️🧑🏻",
|
||||
["couple_with_heart_person_person_tone3_tone2"] = "🧑🏽❤️🧑🏼",
|
||||
|
@ -6434,34 +6426,28 @@ internal static class EmojiIndex
|
|||
["couple_with_heart_tone3"] = "💑🏽",
|
||||
["couple_with_heart_medium_skin_tone"] = "💑🏽",
|
||||
["couple_with_heart_person_person_tone3_tone4"] = "🧑🏽❤️🧑🏾",
|
||||
["couple_with_heart_person_person_medium_skin_tone_medium_dark_skin_tone"] =
|
||||
"🧑🏽❤️🧑🏾",
|
||||
["couple_with_heart_person_person_medium_skin_tone_medium_dark_skin_tone"] = "🧑🏽❤️🧑🏾",
|
||||
["couple_with_heart_person_person_tone3_tone5"] = "🧑🏽❤️🧑🏿",
|
||||
["couple_with_heart_person_person_medium_skin_tone_dark_skin_tone"] = "🧑🏽❤️🧑🏿",
|
||||
["couple_with_heart_person_person_tone4_tone1"] = "🧑🏾❤️🧑🏻",
|
||||
["couple_with_heart_person_person_medium_dark_skin_tone_light_skin_tone"] =
|
||||
"🧑🏾❤️🧑🏻",
|
||||
["couple_with_heart_person_person_medium_dark_skin_tone_light_skin_tone"] = "🧑🏾❤️🧑🏻",
|
||||
["couple_with_heart_person_person_tone4_tone2"] = "🧑🏾❤️🧑🏼",
|
||||
["couple_with_heart_person_person_medium_dark_skin_tone_medium_light_skin_tone"] =
|
||||
"🧑🏾❤️🧑🏼",
|
||||
["couple_with_heart_person_person_tone4_tone3"] = "🧑🏾❤️🧑🏽",
|
||||
["couple_with_heart_person_person_medium_dark_skin_tone_medium_skin_tone"] =
|
||||
"🧑🏾❤️🧑🏽",
|
||||
["couple_with_heart_person_person_medium_dark_skin_tone_medium_skin_tone"] = "🧑🏾❤️🧑🏽",
|
||||
["couple_with_heart_tone4"] = "💑🏾",
|
||||
["couple_with_heart_medium_dark_skin_tone"] = "💑🏾",
|
||||
["couple_with_heart_person_person_tone4_tone5"] = "🧑🏾❤️🧑🏿",
|
||||
["couple_with_heart_person_person_medium_dark_skin_tone_dark_skin_tone"] =
|
||||
"🧑🏾❤️🧑🏿",
|
||||
["couple_with_heart_person_person_medium_dark_skin_tone_dark_skin_tone"] = "🧑🏾❤️🧑🏿",
|
||||
["couple_with_heart_person_person_tone5_tone1"] = "🧑🏿❤️🧑🏻",
|
||||
["couple_with_heart_person_person_dark_skin_tone_light_skin_tone"] = "🧑🏿❤️🧑🏻",
|
||||
["couple_with_heart_person_person_tone5_tone2"] = "🧑🏿❤️🧑🏼",
|
||||
["couple_with_heart_person_person_dark_skin_tone_medium_light_skin_tone"] =
|
||||
"🧑🏿❤️🧑🏼",
|
||||
["couple_with_heart_person_person_dark_skin_tone_medium_light_skin_tone"] = "🧑🏿❤️🧑🏼",
|
||||
["couple_with_heart_person_person_tone5_tone3"] = "🧑🏿❤️🧑🏽",
|
||||
["couple_with_heart_person_person_dark_skin_tone_medium_skin_tone"] = "🧑🏿❤️🧑🏽",
|
||||
["couple_with_heart_person_person_tone5_tone4"] = "🧑🏿❤️🧑🏾",
|
||||
["couple_with_heart_person_person_dark_skin_tone_medium_dark_skin_tone"] =
|
||||
"🧑🏿❤️🧑🏾",
|
||||
["couple_with_heart_person_person_dark_skin_tone_medium_dark_skin_tone"] = "🧑🏿❤️🧑🏾",
|
||||
["couple_with_heart_tone5"] = "💑🏿",
|
||||
["couple_with_heart_dark_skin_tone"] = "💑🏿",
|
||||
["couple_with_heart_woman_man"] = "👩❤️👨",
|
||||
|
@ -6480,8 +6466,7 @@ internal static class EmojiIndex
|
|||
["couple_with_heart_woman_man_tone2"] = "👩🏼❤️👨🏼",
|
||||
["couple_with_heart_woman_man_medium_light_skin_tone"] = "👩🏼❤️👨🏼",
|
||||
["couple_with_heart_woman_man_tone2_tone3"] = "👩🏼❤️👨🏽",
|
||||
["couple_with_heart_woman_man_medium_light_skin_tone_medium_skin_tone"] =
|
||||
"👩🏼❤️👨🏽",
|
||||
["couple_with_heart_woman_man_medium_light_skin_tone_medium_skin_tone"] = "👩🏼❤️👨🏽",
|
||||
["couple_with_heart_woman_man_tone2_tone4"] = "👩🏼❤️👨🏾",
|
||||
["couple_with_heart_woman_man_medium_light_skin_tone_medium_dark_skin_tone"] =
|
||||
"👩🏼❤️👨🏾",
|
||||
|
@ -6490,8 +6475,7 @@ internal static class EmojiIndex
|
|||
["couple_with_heart_woman_man_tone3_tone1"] = "👩🏽❤️👨🏻",
|
||||
["couple_with_heart_woman_man_medium_skin_tone_light_skin_tone"] = "👩🏽❤️👨🏻",
|
||||
["couple_with_heart_woman_man_tone3_tone2"] = "👩🏽❤️👨🏼",
|
||||
["couple_with_heart_woman_man_medium_skin_tone_medium_light_skin_tone"] =
|
||||
"👩🏽❤️👨🏼",
|
||||
["couple_with_heart_woman_man_medium_skin_tone_medium_light_skin_tone"] = "👩🏽❤️👨🏼",
|
||||
["couple_with_heart_woman_man_tone3"] = "👩🏽❤️👨🏽",
|
||||
["couple_with_heart_woman_man_medium_skin_tone"] = "👩🏽❤️👨🏽",
|
||||
["couple_with_heart_woman_man_tone3_tone4"] = "👩🏽❤️👨🏾",
|
||||
|
@ -6524,50 +6508,41 @@ internal static class EmojiIndex
|
|||
["couple_with_heart_woman_woman_tone1"] = "👩🏻❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_light_skin_tone"] = "👩🏻❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_tone1_tone2"] = "👩🏻❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_light_skin_tone_medium_light_skin_tone"] =
|
||||
"👩🏻❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_light_skin_tone_medium_light_skin_tone"] = "👩🏻❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_tone1_tone3"] = "👩🏻❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_light_skin_tone_medium_skin_tone"] = "👩🏻❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_tone1_tone4"] = "👩🏻❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_light_skin_tone_medium_dark_skin_tone"] =
|
||||
"👩🏻❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_light_skin_tone_medium_dark_skin_tone"] = "👩🏻❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_tone1_tone5"] = "👩🏻❤️👩🏿",
|
||||
["couple_with_heart_woman_woman_light_skin_tone_dark_skin_tone"] = "👩🏻❤️👩🏿",
|
||||
["couple_with_heart_woman_woman_tone2_tone1"] = "👩🏼❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_medium_light_skin_tone_light_skin_tone"] =
|
||||
"👩🏼❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_medium_light_skin_tone_light_skin_tone"] = "👩🏼❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_tone2"] = "👩🏼❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_medium_light_skin_tone"] = "👩🏼❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_tone2_tone3"] = "👩🏼❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_medium_light_skin_tone_medium_skin_tone"] =
|
||||
"👩🏼❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_medium_light_skin_tone_medium_skin_tone"] = "👩🏼❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_tone2_tone4"] = "👩🏼❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_medium_light_skin_tone_medium_dark_skin_tone"] =
|
||||
"👩🏼❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_tone2_tone5"] = "👩🏼❤️👩🏿",
|
||||
["couple_with_heart_woman_woman_medium_light_skin_tone_dark_skin_tone"] =
|
||||
"👩🏼❤️👩🏿",
|
||||
["couple_with_heart_woman_woman_medium_light_skin_tone_dark_skin_tone"] = "👩🏼❤️👩🏿",
|
||||
["couple_with_heart_woman_woman_tone3_tone1"] = "👩🏽❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_medium_skin_tone_light_skin_tone"] = "👩🏽❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_tone3_tone2"] = "👩🏽❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_medium_skin_tone_medium_light_skin_tone"] =
|
||||
"👩🏽❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_medium_skin_tone_medium_light_skin_tone"] = "👩🏽❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_tone3"] = "👩🏽❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_medium_skin_tone"] = "👩🏽❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_tone3_tone4"] = "👩🏽❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_medium_skin_tone_medium_dark_skin_tone"] =
|
||||
"👩🏽❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_medium_skin_tone_medium_dark_skin_tone"] = "👩🏽❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_tone3_tone5"] = "👩🏽❤️👩🏿",
|
||||
["couple_with_heart_woman_woman_medium_skin_tone_dark_skin_tone"] = "👩🏽❤️👩🏿",
|
||||
["couple_with_heart_woman_woman_tone4_tone1"] = "👩🏾❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_medium_dark_skin_tone_light_skin_tone"] =
|
||||
"👩🏾❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_medium_dark_skin_tone_light_skin_tone"] = "👩🏾❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_tone4_tone2"] = "👩🏾❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_medium_dark_skin_tone_medium_light_skin_tone"] =
|
||||
"👩🏾❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_tone4_tone3"] = "👩🏾❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_medium_dark_skin_tone_medium_skin_tone"] =
|
||||
"👩🏾❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_medium_dark_skin_tone_medium_skin_tone"] = "👩🏾❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_tone4"] = "👩🏾❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_medium_dark_skin_tone"] = "👩🏾❤️👩🏾",
|
||||
["couple_with_heart_woman_woman_tone4_tone5"] = "👩🏾❤️👩🏿",
|
||||
|
@ -6575,8 +6550,7 @@ internal static class EmojiIndex
|
|||
["couple_with_heart_woman_woman_tone5_tone1"] = "👩🏿❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_dark_skin_tone_light_skin_tone"] = "👩🏿❤️👩🏻",
|
||||
["couple_with_heart_woman_woman_tone5_tone2"] = "👩🏿❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_dark_skin_tone_medium_light_skin_tone"] =
|
||||
"👩🏿❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_dark_skin_tone_medium_light_skin_tone"] = "👩🏿❤️👩🏼",
|
||||
["couple_with_heart_woman_woman_tone5_tone3"] = "👩🏿❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_dark_skin_tone_medium_skin_tone"] = "👩🏿❤️👩🏽",
|
||||
["couple_with_heart_woman_woman_tone5_tone4"] = "👩🏿❤️👩🏾",
|
||||
|
@ -6602,8 +6576,7 @@ internal static class EmojiIndex
|
|||
["couple_with_heart_man_man_tone2_tone3"] = "👨🏼❤️👨🏽",
|
||||
["couple_with_heart_man_man_medium_light_skin_tone_medium_skin_tone"] = "👨🏼❤️👨🏽",
|
||||
["couple_with_heart_man_man_tone2_tone4"] = "👨🏼❤️👨🏾",
|
||||
["couple_with_heart_man_man_medium_light_skin_tone_medium_dark_skin_tone"] =
|
||||
"👨🏼❤️👨🏾",
|
||||
["couple_with_heart_man_man_medium_light_skin_tone_medium_dark_skin_tone"] = "👨🏼❤️👨🏾",
|
||||
["couple_with_heart_man_man_tone2_tone5"] = "👨🏼❤️👨🏿",
|
||||
["couple_with_heart_man_man_medium_light_skin_tone_dark_skin_tone"] = "👨🏼❤️👨🏿",
|
||||
["couple_with_heart_man_man_tone3_tone1"] = "👨🏽❤️👨🏻",
|
||||
|
@ -6619,8 +6592,7 @@ internal static class EmojiIndex
|
|||
["couple_with_heart_man_man_tone4_tone1"] = "👨🏾❤️👨🏻",
|
||||
["couple_with_heart_man_man_medium_dark_skin_tone_light_skin_tone"] = "👨🏾❤️👨🏻",
|
||||
["couple_with_heart_man_man_tone4_tone2"] = "👨🏾❤️👨🏼",
|
||||
["couple_with_heart_man_man_medium_dark_skin_tone_medium_light_skin_tone"] =
|
||||
"👨🏾❤️👨🏼",
|
||||
["couple_with_heart_man_man_medium_dark_skin_tone_medium_light_skin_tone"] = "👨🏾❤️👨🏼",
|
||||
["couple_with_heart_man_man_tone4_tone3"] = "👨🏾❤️👨🏽",
|
||||
["couple_with_heart_man_man_medium_dark_skin_tone_medium_skin_tone"] = "👨🏾❤️👨🏽",
|
||||
["couple_with_heart_man_man_tone4"] = "👨🏾❤️👨🏾",
|
||||
|
|
|
@ -18,8 +18,10 @@ internal class ExportContext(DiscordClient discord, ExportRequest request)
|
|||
private readonly Dictionary<Snowflake, Channel> _channelsById = new();
|
||||
private readonly Dictionary<Snowflake, Role> _rolesById = new();
|
||||
|
||||
private readonly ExportAssetDownloader _assetDownloader =
|
||||
new(request.AssetsDirPath, request.ShouldReuseAssets);
|
||||
private readonly ExportAssetDownloader _assetDownloader = new(
|
||||
request.AssetsDirPath,
|
||||
request.ShouldReuseAssets
|
||||
);
|
||||
|
||||
public DiscordClient Discord { get; } = discord;
|
||||
|
||||
|
|
|
@ -17,8 +17,7 @@ namespace DiscordChatExporter.Core.Exporting;
|
|||
internal class JsonMessageWriter(Stream stream, ExportContext context)
|
||||
: MessageWriter(stream, context)
|
||||
{
|
||||
private readonly Utf8JsonWriter _writer =
|
||||
new(
|
||||
private readonly Utf8JsonWriter _writer = new(
|
||||
stream,
|
||||
new JsonWriterOptions
|
||||
{
|
||||
|
@ -436,7 +435,11 @@ internal class JsonMessageWriter(Stream stream, ExportContext context)
|
|||
_writer.WriteString("id", attachment.Id.ToString());
|
||||
_writer.WriteString(
|
||||
"url",
|
||||
await Context.ResolveAssetUrlAsync(attachment.Url, cancellationToken, message.Timestamp)
|
||||
await Context.ResolveAssetUrlAsync(
|
||||
attachment.Url,
|
||||
cancellationToken,
|
||||
message.Timestamp
|
||||
)
|
||||
);
|
||||
_writer.WriteString("fileName", attachment.FileName);
|
||||
_writer.WriteNumber("fileSizeBytes", attachment.FileSize.TotalBytes);
|
||||
|
@ -466,7 +469,11 @@ internal class JsonMessageWriter(Stream stream, ExportContext context)
|
|||
_writer.WriteString("format", sticker.Format.ToString());
|
||||
_writer.WriteString(
|
||||
"sourceUrl",
|
||||
await Context.ResolveAssetUrlAsync(sticker.SourceUrl, cancellationToken, message.Timestamp)
|
||||
await Context.ResolveAssetUrlAsync(
|
||||
sticker.SourceUrl,
|
||||
cancellationToken,
|
||||
message.Timestamp
|
||||
)
|
||||
);
|
||||
|
||||
_writer.WriteEndObject();
|
||||
|
|
|
@ -10,8 +10,9 @@ public class UrlBuilder
|
|||
{
|
||||
private string _path = "";
|
||||
|
||||
private readonly Dictionary<string, string?> _queryParameters =
|
||||
new(StringComparer.OrdinalIgnoreCase);
|
||||
private readonly Dictionary<string, string?> _queryParameters = new(
|
||||
StringComparer.OrdinalIgnoreCase
|
||||
);
|
||||
|
||||
public UrlBuilder SetPath(string path)
|
||||
{
|
||||
|
|
|
@ -6,8 +6,9 @@ namespace DiscordChatExporter.Gui.Framework;
|
|||
|
||||
public abstract partial class DialogViewModelBase<T> : ViewModelBase
|
||||
{
|
||||
private readonly TaskCompletionSource<T> _closeTcs =
|
||||
new(TaskCreationOptions.RunContinuationsAsynchronously);
|
||||
private readonly TaskCompletionSource<T> _closeTcs = new(
|
||||
TaskCreationOptions.RunContinuationsAsynchronously
|
||||
);
|
||||
|
||||
[ObservableProperty]
|
||||
private T? _dialogResult;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue