| | |
| | |
|
| | | public bool GetAutoPlayVoice(ChatInfoType type, int netState)
|
| | | {
|
| | | if (netState == 0)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | switch (type)
|
| | | {
|
| | | case ChatInfoType.World:
|
| | | if (netState == 1)
|
| | | if (netState == 2)
|
| | | {
|
| | | return GetBool(ChatBoolType.WorldVoiceWifi);
|
| | | }
|
| | | else if (netState == 4)
|
| | | else
|
| | | {
|
| | | return GetBool(ChatBoolType.WorldVoice4G);
|
| | | }
|
| | | break;
|
| | | case ChatInfoType.Area:
|
| | | if (netState == 1)
|
| | | if (netState == 2)
|
| | | {
|
| | | return GetBool(ChatBoolType.AreaVoiceWifi);
|
| | | }
|
| | | else if (netState == 4)
|
| | | else
|
| | | {
|
| | | return GetBool(ChatBoolType.AreaVoice4G);
|
| | | }
|
| | | break;
|
| | | case ChatInfoType.Team:
|
| | | if (netState == 1)
|
| | | if (netState == 2)
|
| | | {
|
| | | return GetBool(ChatBoolType.TeamVoiceWifi);
|
| | | }
|
| | | else if (netState == 4)
|
| | | else
|
| | | {
|
| | | return GetBool(ChatBoolType.TeamVoice4G);
|
| | | }
|
| | | break;
|
| | | case ChatInfoType.Fairy:
|
| | | if (netState == 1)
|
| | | if (netState == 2)
|
| | | {
|
| | | return GetBool(ChatBoolType.GradVoiceWifi);
|
| | | }
|
| | | else if (netState == 4)
|
| | | else
|
| | | {
|
| | | return GetBool(ChatBoolType.GradVoice4G);
|
| | | }
|
| | | break;
|
| | | case ChatInfoType.Friend:
|
| | | if (netState == 1)
|
| | | if (netState == 2)
|
| | | {
|
| | | return GetBool(ChatBoolType.PrivateChatVoiceWifi);
|
| | | }
|
| | | else if (netState == 4)
|
| | | else
|
| | | {
|
| | | return GetBool(ChatBoolType.PrivatChatVoice4G);
|
| | | }
|
| | | break;
|
| | | }
|
| | | return false;
|
| | | }
|