forked from lokinmodar/Echoglossian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntitiesHelper.cs
40 lines (34 loc) · 1.77 KB
/
EntitiesHelper.cs
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
36
37
38
39
40
// <copyright file="EntitiesHelper.cs" company="lokinmodar">
// Copyright (c) lokinmodar. All rights reserved.
// Licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License license.
// </copyright>
using System;
using Echoglossian.EFCoreSqlite.Models;
using Echoglossian.EFCoreSqlite.Models.Journal;
using Humanizer;
namespace Echoglossian
{
public partial class Echoglossian
{
public TalkMessage FormatTalkMessage(string sender, string text)
{
return new TalkMessage(sender, text, ClientState.ClientLanguage.Humanize(), LangIdentify(sender), string.Empty, string.Empty,
this.languagesDictionary[this.configuration.Lang].Code, this.configuration.ChosenTransEngine, DateTime.Now, DateTime.Now);
}
public BattleTalkMessage FormatBattleTalkMessage(string sender, string text)
{
return new BattleTalkMessage(sender, text, ClientState.ClientLanguage.Humanize(), LangIdentify(sender), string.Empty, string.Empty,
this.languagesDictionary[this.configuration.Lang].Code, this.configuration.ChosenTransEngine, DateTime.Now, DateTime.Now);
}
public ToastMessage FormatToastMessage(string type, string text)
{
return new ToastMessage(type, text, ClientState.ClientLanguage.Humanize(), string.Empty,
this.languagesDictionary[this.configuration.Lang].Code, this.configuration.ChosenTransEngine, DateTime.Now, DateTime.Now);
}
public QuestPlate FormatQuestPlate(string questName, string questMessage)
{
return new QuestPlate(questName, questMessage, ClientState.ClientLanguage.Humanize(), string.Empty, string.Empty, string.Empty,
this.languagesDictionary[this.configuration.Lang].Code, this.configuration.ChosenTransEngine, DateTime.Now, DateTime.Now);
}
}
}