Ejemplo n.º 1
0
        public string GetAccountState()
        {
            string str = "正常";

            if (string.IsNullOrEmpty(this.Detail))
            {
                if (TextHelper.IsContains(this.Edition, "Trial", "體驗帳號", "試玩", "已到期", "測試伺服器", "public test realm"))
                {
                    str = string.Format(" {0}", CommentAttributeGetter.GetAttribute <WowLoginStates>(WowLoginStates.Trial));
                }
                else if (TextHelper.IsContains(this.Edition, "Locked", "Banned", "Cerrada", "Account Banned", "暂时卦号"))
                {
                    str = string.Format(" {0}", CommentAttributeGetter.GetAttribute <WowLoginStates>(WowLoginStates.TempDisabled));
                }
                else if (TextHelper.IsContains(this.Edition, "EINGEFROREN", "FROZEN", "已凍結"))
                {
                    str = string.Format(" {0}", CommentAttributeGetter.GetAttribute <WowLoginStates>(WowLoginStates.Frozen));
                }
                else if (TextHelper.IsContains(this.Edition, "Active", "已取消", "啟動"))
                {
                    str = string.Format(" {0}", CommentAttributeGetter.GetAttribute <WowLoginStates>(WowLoginStates.Active));
                }

                if (TextHelper.IsContains(this.Region, "Americas", "Oceania (US)", "(US)", "美國"))
                {
                    str += "(US)";
                }
                else if (TextHelper.IsContains(this.Region, "Europe (EU)", "Europe", "(EU)"))
                {
                    str += "(EU)";
                }
                else if (TextHelper.IsContains(this.Region, "Россия и СНГ (RU)", "(RU)"))
                {
                    str += "(RU)";
                }
                return(str);
            }

            if (TextHelper.IsContains(this.Detail, "(  Trial  )", "(體驗帳號)", "(試玩)", "(已到期)",
                                      "測試伺服器", "public test realm", "新手入門版"))
            {
                str = string.Format(" {0}", CommentAttributeGetter.GetAttribute <WowLoginStates>(WowLoginStates.Trial));
            }
            else if (TextHelper.IsContains(this.Detail, "Locked", "Banned", "Cerrada", "Account Banned", "暂时卦号"))
            {
                str = string.Format(" {0}", CommentAttributeGetter.GetAttribute <WowLoginStates>(WowLoginStates.TempDisabled));
            }
            else if (TextHelper.IsContains(this.Detail, "EINGEFROREN", "FROZEN", "已凍結"))
            {
                str = string.Format(" {0}", CommentAttributeGetter.GetAttribute <WowLoginStates>(WowLoginStates.Frozen));
            }
            else if (TextHelper.IsContains(this.Detail, "Active", "已取消", "啟動"))
            {
                str = string.Format(" {0}", CommentAttributeGetter.GetAttribute <WowLoginStates>(WowLoginStates.Active));
            }
            else if (TextHelper.IsContains(this.Detail, "立即購買《暗黑破壞神"))
            {
                str = string.Format(" {0}", CommentAttributeGetter.GetAttribute <WowLoginStates>(WowLoginStates.InvalidAccount));
            }

            if (TextHelper.IsContains(this.Detail, "Americas", "Oceania (US)", "(US)", "美國"))
            {
                str += "(US)";
            }
            else if (TextHelper.IsContains(this.Detail, "Europe (EU)", "Europe", "(EU)"))
            {
                str += "(EU)";
            }
            else if (TextHelper.IsContains(this.Detail, "Россия и СНГ (RU)", "(RU)"))
            {
                str += "(RU)";
            }

            return(str);
        }