From 619a37b0c8c78845a034d1e36a5d77654f88a23e Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 06 九月 2018 20:52:06 +0800
Subject: [PATCH] 3324 【1.0.15】【主干】聊天监控仙盟频道添加仙盟名

---
 System/SystemSetting/ChatSetting.cs |  338 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 169 insertions(+), 169 deletions(-)

diff --git a/System/SystemSetting/ChatSetting.cs b/System/SystemSetting/ChatSetting.cs
index 0c151fe..bf719c3 100644
--- a/System/SystemSetting/ChatSetting.cs
+++ b/System/SystemSetting/ChatSetting.cs
@@ -1,170 +1,170 @@
-锘縰sing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-public enum ChatBoolType
-{
-    ChannelSystem = 0 , //绯荤粺棰戦亾
-    ChannelWorld,//涓栫晫棰戦亾
-    ChannelATeam,//缁勯槦棰戦亾
-    ChannelTeam,//闃熶紞棰戦亾
-    ChannelBugle,//鍠囧彮棰戦亾
-    ChannelGrad,//浠欑洘棰戦亾
-    ChannelArea,//鍖哄煙棰戦亾
-    //ChannelAlliance,//鍚岀洘棰戦亾
-
-    Voice1,
-    Voice2,
-    Voice3,
-
-    GradVoiceWifi,  //浠欑洘璇煶Wifi
-    PrivateChatVoiceWifi,//绉佽亰璇煶Wifi
-    TeamVoiceWifi,//闃熶紞璇煶Wifi
-    WorldVoiceWifi,//涓栫晫璇煶Wifi
-    AreaVoiceWifi,//鍖哄煙璇煶Wifi
-   // AllianceVoiceWifi, //鍚岀洘璇煶Wifi
-
-    GradVoice4G,//浠欑洘璇煶4G
-    PrivatChatVoice4G,//绉佽亰璇煶4G
-    TeamVoice4G,//闃熶紞璇煶4G
-    WorldVoice4G,//涓栫晫璇煶4G
-    AreaVoice4G,//鍖哄煙璇煶4G
-    //AllianceVoice4G, //鍚岀洘璇煶4G
-}
-
- public class ChatSetting : Singleton<ChatSetting>
-{
-    const string ChatBoolSet_Key = "ChatBoolSet";
-
-    public event Action<ChatBoolType, bool> RefreshChatSetAct;
-
-    #region 缂撳瓨鏁版嵁
-    public Dictionary<ChatBoolType, bool> boolSetDict { get; private set; }
-    public void GetLoginBoolSet()
-    {
-        boolSetDict = new Dictionary<ChatBoolType, bool>();
-        for (int i = 0; i < 20; i++)
-        {
-            if (!boolSetDict.ContainsKey((ChatBoolType)i))
-            {
-                boolSetDict.Add((ChatBoolType)i, SettingMgr.Instance.GetAccountSetBoolInfo(((ChatBoolType)i).ToString()));
-            }
-
-        }
-    }
-    #endregion
-
-    public void SetBoolSetStr(ChatBoolType type, bool isOpen)
-    {
-        SettingMgr.Instance.SetAccountSetStr(type.ToString(),isOpen.ToString());
-        switch (type) {
-            case ChatBoolType.ChannelSystem:
-                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.System, isOpen);
-                break;
-            case ChatBoolType.ChannelWorld:
-                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.World, isOpen);
-                break;
-            case ChatBoolType.ChannelATeam:
-                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Invite, isOpen);
-                break;
-            case ChatBoolType.ChannelTeam:
-                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Team, isOpen);
-                break;
-            case ChatBoolType.ChannelBugle:
-                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Trumpet, isOpen);
-                break;
-            case ChatBoolType.ChannelGrad:
-                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Fairy, isOpen);
-                break;
-            case ChatBoolType.ChannelArea:
-                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Area, isOpen);
-                break;
-        }
-
-        if (boolSetDict != null)
-        {
-            if (boolSetDict.ContainsKey(type))
-            {
-                boolSetDict[type] = isOpen;
-            }
-        }
-
-        if(RefreshChatSetAct != null)
-        {
-            RefreshChatSetAct(type,isOpen);
-        }
-    }
-
-    public bool GetBool(ChatBoolType type)
-    {
-        if (boolSetDict != null)
-        {
-            bool isOpen = false;
-            boolSetDict.TryGetValue(type, out isOpen);
-            return isOpen;
-        }
-        else
-        {
-            return SettingMgr.Instance.GetAccountSetBoolInfo(type.ToString());
-        }
-    }
-
-    public bool GetAutoPlayVoice(ChatInfoType type, int netState)
-    {
-        switch (type)
-        {
-            case ChatInfoType.World:
-                if (netState == 1)
-                {
-                    return GetBool(ChatBoolType.WorldVoiceWifi);
-                }
-                else if (netState == 4)
-                {
-                    return GetBool(ChatBoolType.WorldVoice4G);
-                }
-                break;
-            case ChatInfoType.Area:
-                if (netState == 1)
-                {
-                    return GetBool(ChatBoolType.AreaVoiceWifi);
-                }
-                else if (netState == 4)
-                {
-                    return GetBool(ChatBoolType.AreaVoice4G);
-                }
-                break;
-            case ChatInfoType.Team:
-                if (netState == 1)
-                {
-                    return GetBool(ChatBoolType.TeamVoiceWifi);
-                }
-                else if (netState == 4)
-                {
-                    return GetBool(ChatBoolType.TeamVoice4G);
-                }
-                break;
-            case ChatInfoType.Fairy:
-                if (netState == 1)
-                {
-                    return GetBool(ChatBoolType.GradVoiceWifi);
-                }
-                else if (netState == 4)
-                {
-                    return GetBool(ChatBoolType.GradVoice4G);
-                }
-                break;
-            case ChatInfoType.Friend:
-                if (netState == 1)
-                {
-                    return GetBool(ChatBoolType.PrivateChatVoiceWifi);
-                }
-                else if (netState == 4)
-                {
-                    return GetBool(ChatBoolType.PrivatChatVoice4G);
-                }
-                break;
-        }
-        return false;
-    }
+锘縰sing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+public enum ChatBoolType
+{
+    ChannelSystem = 0 , //绯荤粺棰戦亾
+    ChannelWorld,//涓栫晫棰戦亾
+    ChannelATeam,//缁勯槦棰戦亾
+    ChannelTeam,//闃熶紞棰戦亾
+    ChannelBugle,//鍠囧彮棰戦亾
+    ChannelGrad,//浠欑洘棰戦亾
+    ChannelArea,//鍖哄煙棰戦亾
+    //ChannelAlliance,//鍚岀洘棰戦亾
+
+    Voice1,
+    Voice2,
+    Voice3,
+
+    GradVoiceWifi,  //浠欑洘璇煶Wifi
+    PrivateChatVoiceWifi,//绉佽亰璇煶Wifi
+    TeamVoiceWifi,//闃熶紞璇煶Wifi
+    WorldVoiceWifi,//涓栫晫璇煶Wifi
+    AreaVoiceWifi,//鍖哄煙璇煶Wifi
+   // AllianceVoiceWifi, //鍚岀洘璇煶Wifi
+
+    GradVoice4G,//浠欑洘璇煶4G
+    PrivatChatVoice4G,//绉佽亰璇煶4G
+    TeamVoice4G,//闃熶紞璇煶4G
+    WorldVoice4G,//涓栫晫璇煶4G
+    AreaVoice4G,//鍖哄煙璇煶4G
+    //AllianceVoice4G, //鍚岀洘璇煶4G
+}
+
+ public class ChatSetting : Singleton<ChatSetting>
+{
+    const string ChatBoolSet_Key = "ChatBoolSet";
+
+    public event Action<ChatBoolType, bool> RefreshChatSetAct;
+
+    #region 缂撳瓨鏁版嵁
+    public Dictionary<ChatBoolType, bool> boolSetDict { get; private set; }
+    public void GetLoginBoolSet()
+    {
+        boolSetDict = new Dictionary<ChatBoolType, bool>();
+        for (int i = 0; i < 20; i++)
+        {
+            if (!boolSetDict.ContainsKey((ChatBoolType)i))
+            {
+                boolSetDict.Add((ChatBoolType)i, SettingMgr.Instance.GetAccountSetBoolInfo(((ChatBoolType)i).ToString()));
+            }
+
+        }
+    }
+    #endregion
+
+    public void SetBoolSetStr(ChatBoolType type, bool isOpen)
+    {
+        SettingMgr.Instance.SetAccountSetStr(type.ToString(),isOpen.ToString());
+        switch (type) {
+            case ChatBoolType.ChannelSystem:
+                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.System, isOpen);
+                break;
+            case ChatBoolType.ChannelWorld:
+                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.World, isOpen);
+                break;
+            case ChatBoolType.ChannelATeam:
+                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Invite, isOpen);
+                break;
+            case ChatBoolType.ChannelTeam:
+                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Team, isOpen);
+                break;
+            case ChatBoolType.ChannelBugle:
+                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Trumpet, isOpen);
+                break;
+            case ChatBoolType.ChannelGrad:
+                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Fairy, isOpen);
+                break;
+            case ChatBoolType.ChannelArea:
+                ChatCtrl.Inst.SetChatChannelShow(ChatInfoType.Area, isOpen);
+                break;
+        }
+
+        if (boolSetDict != null)
+        {
+            if (boolSetDict.ContainsKey(type))
+            {
+                boolSetDict[type] = isOpen;
+            }
+        }
+
+        if(RefreshChatSetAct != null)
+        {
+            RefreshChatSetAct(type,isOpen);
+        }
+    }
+
+    public bool GetBool(ChatBoolType type)
+    {
+        if (boolSetDict != null)
+        {
+            bool isOpen = false;
+            boolSetDict.TryGetValue(type, out isOpen);
+            return isOpen;
+        }
+        else
+        {
+            return SettingMgr.Instance.GetAccountSetBoolInfo(type.ToString());
+        }
+    }
+
+    public bool GetAutoPlayVoice(ChatInfoType type, int netState)
+    {
+        switch (type)
+        {
+            case ChatInfoType.World:
+                if (netState == 1)
+                {
+                    return GetBool(ChatBoolType.WorldVoiceWifi);
+                }
+                else if (netState == 4)
+                {
+                    return GetBool(ChatBoolType.WorldVoice4G);
+                }
+                break;
+            case ChatInfoType.Area:
+                if (netState == 1)
+                {
+                    return GetBool(ChatBoolType.AreaVoiceWifi);
+                }
+                else if (netState == 4)
+                {
+                    return GetBool(ChatBoolType.AreaVoice4G);
+                }
+                break;
+            case ChatInfoType.Team:
+                if (netState == 1)
+                {
+                    return GetBool(ChatBoolType.TeamVoiceWifi);
+                }
+                else if (netState == 4)
+                {
+                    return GetBool(ChatBoolType.TeamVoice4G);
+                }
+                break;
+            case ChatInfoType.Fairy:
+                if (netState == 1)
+                {
+                    return GetBool(ChatBoolType.GradVoiceWifi);
+                }
+                else if (netState == 4)
+                {
+                    return GetBool(ChatBoolType.GradVoice4G);
+                }
+                break;
+            case ChatInfoType.Friend:
+                if (netState == 1)
+                {
+                    return GetBool(ChatBoolType.PrivateChatVoiceWifi);
+                }
+                else if (netState == 4)
+                {
+                    return GetBool(ChatBoolType.PrivatChatVoice4G);
+                }
+                break;
+        }
+        return false;
+    }
 }
\ No newline at end of file

--
Gitblit v1.8.0