-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: added CI * feat: stylecop
- Loading branch information
Showing
14 changed files
with
1,047 additions
and
19 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
namespace TelegramExportProcessor; | ||
|
||
public class ChatExport | ||
{ | ||
public string Name { get; set; } | ||
|
||
public string Type { get; set; } | ||
|
||
public int Id { get; set; } | ||
|
||
public List<ChatMessage> Messages { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
|
||
using System.Text.Json.Serialization; | ||
|
||
namespace TelegramExportProcessor; | ||
|
||
public class ChatMessage | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Type { get; set; } | ||
|
||
public DateTime Date { get; set; } | ||
|
||
[JsonPropertyName("date_unixtime")] | ||
public string DateUnixTime { get; set; } | ||
|
||
public DateTime? Edited { get; set; } | ||
|
||
[JsonPropertyName("edited_unixtime")] | ||
public string? EditedUnixTime { get; set; } | ||
|
||
public string? Title { get; set; } | ||
//public string? Text { get; set; } | ||
|
||
// public string? Text { get; set; } | ||
public string? From { get; set; } | ||
|
||
[JsonPropertyName("from_id")] | ||
public string? FromId { get; set; } | ||
|
||
[JsonPropertyName("text_entities")] | ||
public List<TextEntity> TextEntities { get; set; } | ||
|
||
public List<Reaction> Reactions { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace TelegramExportProcessor; | ||
namespace TelegramExportProcessor; | ||
|
||
public class ComplexTextPart | ||
{ | ||
public string Text { get; set; } | ||
|
||
public string Type { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
namespace TelegramExportProcessor; | ||
|
||
public class Reaction | ||
{ | ||
public int Count { get; set; } | ||
|
||
public string Type { get; set; } | ||
|
||
public string Emoji { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
namespace TelegramExportProcessor; | ||
|
||
public class TextEntity | ||
{ | ||
public string Text { get; set; } | ||
|
||
public string Type { get; set; } | ||
} |