28 lines
813 B
C#
28 lines
813 B
C#
using TemuKJD.ChatForms.ChatModel;
|
|
using NaiBa.Util;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace TemuKJD.ChatForms.ChatHelper
|
|
{
|
|
public class ChatConfig
|
|
{
|
|
public static ChatSettingsParam ChatSettingConfig { get; set; }
|
|
|
|
public static void LoadChatSetting()
|
|
{
|
|
ChatConfig.ChatSettingConfig = NaiBa.Util.Helper.ConfigHelper.LoadConfig<ChatSettingsParam>("chat_setting");
|
|
if (ChatConfig.ChatSettingConfig == null)
|
|
ChatConfig.ChatSettingConfig = new ChatSettingsParam();
|
|
}
|
|
|
|
public static void SaveChatSettingParam()
|
|
{
|
|
NaiBa.Util.Helper.ConfigHelper.SaveConfig("chat_setting", ChatConfig.ChatSettingConfig);
|
|
}
|
|
}
|
|
}
|