⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contactinfo.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 5 页
字号:
                                continue;
                            }
                            case "home-phone":
                            {
                                this.HomePhone = this.HomePhone.CloneWithContactSetValue(attribute.Value);
                                continue;
                            }
                            case "work-phone":
                            {
                                this.WorkPhone = this.WorkPhone.CloneWithContactSetValue(attribute.Value);
                                continue;
                            }
                            case "other-phone":
                            {
                                this.OtherPhone = this.OtherPhone.CloneWithContactSetValue(attribute.Value);
                                continue;
                            }
                            case "work-email":
                            {
                                this.WorkEmail = this.WorkEmail.CloneWithContactSetValue(attribute.Value);
                                continue;
                            }
                            case "personal-email":
                            {
                                this.PersonalEmail = this.PersonalEmail.CloneWithContactSetValue(attribute.Value);
                                continue;
                            }
                            case "other-email":
                            {
                                this.OtherEmail = this.OtherEmail.CloneWithContactSetValue(attribute.Value);
                                continue;
                            }
                            case "primary-email":
                            {
                                short.TryParse(attribute.Value, ref num);
                                this.PrimaryEmail = this.PrimaryEmail.CloneWithContactSetValue(num);
                                continue;
                            }
                            case "company":
                            {
                                this.Company = this.Company.CloneWithContactSetValue(attribute.Value);
                                continue;
                            }
                            case "company-website":
                            {
                                this.CompanyWebsite = this.CompanyWebsite.CloneWithContactSetValue(attribute.Value);
                                continue;
                            }
                            case "job-title":
                            {
                                this.JobTitle = this.JobTitle.CloneWithContactSetValue(attribute.Value);
                                continue;
                            }
                            default:
                            {
                                continue;
                            }
                        }
                        this.Nickname = this.Nickname.CloneWithContactSetValue(attribute.Value);
                    Label_05F9:
                        this.UpdateDisplayName();
                        continue;
                    Label_061F:
                        nicknameGuest = attribute.Value;
                    Label_0627:
                        this.Name = this.Name.CloneWithContactSetValue(nicknameGuest);
                        this.UpdateDisplayName();
                        continue;
                    Label_067C:
                        base.MobileNo = text;
                    }
                    base.Version = XmlHelper.ReadXmlAttributeString(personalNode, "version");
                }
                finally
                {
                    suspender.Dispose();
                }
            }
        }

        internal void LoadContactSetXmlNode_Extended(XmlNode extendedNode)
        {
            if (extendedNode != null)
            {
                int? nullable = XmlHelper.ReadXmlAttributeInt32(extendedNode, "score-level");
                if (nullable.get_HasValue())
                {
                    this.ScoreLevel = nullable.get_Value();
                }
            }
        }

        internal void LoadContactSetXmlNode_Need(XmlNode personalNode, DownloadPortraitPriority priority)
        {
            if (personalNode != null)
            {
                Suspender suspender = new Suspender(this);
                try
                {
                    string text = string.Empty;
                    string nicknameGuest = string.Empty;
                    int num = 0;
                    foreach (XmlAttribute attribute in personalNode.Attributes)
                    {
                        switch (attribute.Name)
                        {
                            case "provisioning":
                            {
                                if (int.TryParse(attribute.Value, ref num))
                                {
                                    this.Provision = num;
                                }
                                continue;
                            }
                            case "impresa":
                            {
                                this.Owner.Presence.MoodPhrase = StringHelper.ReplaceCrLfToSpace(attribute.Value);
                                continue;
                            }
                            case "mobile-no":
                            {
                                text = attribute.Value;
                                continue;
                            }
                            case "nickname":
                            {
                                if (string.Equals(StringTable.PersonalInfo.NicknameGuest, attribute.Value))
                                {
                                    this.Nickname = this.Nickname.CloneWithContactSetValue(StringTable.PersonalInfo.NicknameGuest);
                                }
                                else
                                {
                                    this.Nickname = this.Nickname.CloneWithContactSetValue(attribute.Value);
                                }
                                continue;
                            }
                            case "name":
                            {
                                if (string.Equals(StringTable.PersonalInfo.NicknameGuest, attribute.Value))
                                {
                                    nicknameGuest = StringTable.PersonalInfo.NicknameGuest;
                                }
                                else
                                {
                                    nicknameGuest = attribute.Value;
                                }
                                continue;
                            }
                            case "portrait-crc":
                                break;

                            default:
                            {
                                continue;
                            }
                        }
                        base.PortraitCrc = attribute.Value;
                        this.OwnerUser.PortraitDownloader.AsyncGetPortrait(this, priority);
                    }
                    if (string.IsNullOrEmpty(text) && this.OwnerUri.Belongs(IicUriType.Tel))
                    {
                        base.MobileNo = this.OwnerUri.MobileNo;
                    }
                    else if (string.IsNullOrEmpty(base.MobileNo))
                    {
                        base.MobileNo = text;
                    }
                    this.Name = this.Name.CloneWithContactSetValue(nicknameGuest);
                    this.UpdateDisplayName();
                    base.Version = XmlHelper.ReadXmlAttributeString(personalNode, "version");
                }
                finally
                {
                    suspender.Dispose();
                }
            }
        }

        internal void LoadUserSetXmlNode(XmlNode node)
        {
            if (node != null)
            {
                Suspender suspender = new Suspender(this);
                try
                {
                    int num = 0;
                    foreach (XmlAttribute attribute in node.Attributes)
                    {
                        string text = attribute.Value.Trim();
                        switch (attribute.Name)
                        {
                            case "local-name":
                            {
                                if (text.Length > 0)
                                {
                                    break;
                                }
                                this.Name = this.Name.CloneWithNoUserSetValue();
                                continue;
                            }
                            case "online-notify":
                            {
                                this.Owner.OnlineNotify = new ProposedData<bool>(attribute.Value == "1");
                                continue;
                            }
                            case "birth-date":
                            {
                                if (text.Length > 0)
                                {
                                    goto Label_023B;
                                }
                                this.BirthDate = this.BirthDate.CloneWithNoUserSetValue();
                                continue;
                            }
                            case "birthday-valid":
                            {
                                if (string.IsNullOrEmpty(text))
                                {
                                    this.IsBirthdayValid = this.IsBirthdayValid.CloneWithNoUserSetValue();
                                }
                                else
                                {
                                    this.IsBirthdayValid = this.IsBirthdayValid.CloneWithUserSetValue(text == "1");
                                }
                                continue;
                            }
                            case "nation":
                            {
                                this.UserNationality = this.UserNationality.CloneWithUserSetValue(text, string.Empty);
                                continue;
                            }
                            case "profile":
                            {
                                this.Notes = this.Notes.CloneWithUserSetValue(text, string.Empty);
                                continue;
                            }
                            case "blood-type":
                            {
                                if (text.Length > 0)
                                {
                                    goto Label_02F9;
                                }
                                this.BloodType = this.BloodType.CloneWithNoUserSetValue();
                                continue;
                            }
                            case "occupation":
                            {
                                if (text.Length > 0)
                                {
                                    goto Label_0334;
                                }
                                this.Occupation = this.Occupation.CloneWithNoUserSetValue();
                                continue;
                            }
                            case "job-title":
                            {
                                this.JobTitle = this.JobTitle.CloneWithUserSetValue(text, string.Empty);
                                continue;
                            }
                            case "home-phone":
                            {
                                this.HomePhone = this.HomePhone.CloneWithUserSetValue(text, string.Empty);
                                continue;
                            }
                            case "work-phone":
                            {
                                this.WorkPhone = this.WorkPhone.CloneWithUserSetValue(text, string.Empty);
                                continue;
                            }
                            case "other-phone":
                            {
                                this.OtherPhone = this.OtherPhone.CloneWithUserSetValue(text, string.Empty);
                                continue;
                            }
                            case "work-email":
                            {
                                this.WorkEmail = this.WorkEmail.CloneWithUserSetValue(text, string.Empty);
                                continue;
                            }
                            case "personal-email":
                            {
                                this.PersonalEmail = this.PersonalEmail.CloneWithUserSetValue(text, string.Empty);
                                continue;
                            }
                            case "other-email":
                            {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -