private bool IsLower() { var packages = new List <String> { CurrentVersion, Serverversion }; if (CurrentVersion.Equals(Serverversion)) { return(false); } if (CurrentVersion.EndsWith(strings.not_available)) { return(false); } packages.Sort(new PackagesSorter()); return(packages[0].Equals(CurrentVersion)); }
public bool Equals(DestinyItemQualityBlockDefinition input) { if (input == null) { return(false); } return (( ItemLevels == input.ItemLevels || (ItemLevels != null && ItemLevels.SequenceEqual(input.ItemLevels)) ) && ( QualityLevel == input.QualityLevel || (QualityLevel.Equals(input.QualityLevel)) ) && ( InfusionCategoryName == input.InfusionCategoryName || (InfusionCategoryName != null && InfusionCategoryName.Equals(input.InfusionCategoryName)) ) && ( InfusionCategoryHash == input.InfusionCategoryHash || (InfusionCategoryHash.Equals(input.InfusionCategoryHash)) ) && ( InfusionCategoryHashes == input.InfusionCategoryHashes || (InfusionCategoryHashes != null && InfusionCategoryHashes.SequenceEqual(input.InfusionCategoryHashes)) ) && ( ProgressionLevelRequirementHash == input.ProgressionLevelRequirementHash || (ProgressionLevelRequirementHash.Equals(input.ProgressionLevelRequirementHash)) ) && ( CurrentVersion == input.CurrentVersion || (CurrentVersion.Equals(input.CurrentVersion)) ) && ( Versions == input.Versions || (Versions != null && Versions.SequenceEqual(input.Versions)) ) && ( DisplayVersionWatermarkIcons == input.DisplayVersionWatermarkIcons || (DisplayVersionWatermarkIcons != null && DisplayVersionWatermarkIcons.SequenceEqual(input.DisplayVersionWatermarkIcons)) )); }
/// <summary> /// Check if this is the first launch for a particular version number. /// Useful if you want to execute some code for first time launches of a particular version /// (like db migrations?). /// </summary> /// <returns>The first launch for version.</returns> /// <param name="version">Version.</param> public bool FirstLaunchForVersion(string version) => (CurrentVersion.Equals(version, StringComparison.OrdinalIgnoreCase)) && isFirstLaunchForVersion;