Beispiel #1
0
        public virtual string ToLog()
        {
            StringBuilder builder = new StringBuilder();

            builder.Append("[");
            builder.Append("ID:");
            builder.Append(ID);
            builder.Append(", ");

            builder.Append("Code:");
            builder.Append(Code);
            builder.Append(", ");

            builder.Append("Title:");
            builder.Append(Title.ToLog());
            builder.Append(", ");

            builder.Append("ShortTitle:");
            builder.Append(ShortTitle.ToLog());
            builder.Append(", ");

            //builder.Append("EffectivePeriod:");
            //builder.Append(EffectivePeriod.ToLog());
            //builder.Append(", ");

            builder.Append("Description:");
            builder.Append(Description.ToLog());
            builder.Append(", ");

            builder.Append("Remark:");
            builder.Append(Remark);
            builder.Append(", ");

            builder.Append("IsActive:");
            builder.Append(IsActive);
            builder.Append(", ");

            builder.Append("MaxPersonnelLevel:");
            builder.Append(MaxPersonnelLevel);
            builder.Append(", ");

            builder.Append("MinPersonnelLevel:");
            builder.Append(MinPersonnelLevel);
            builder.Append(", ");

            builder.Append("MaxSalary:");
            builder.Append(MaxSalary);
            builder.Append(", ");

            builder.Append("MinSalary:");
            builder.Append(MinSalary);
            builder.Append(", ");

            //builder.Append("Organization:");
            //builder.Append(Organization.ToLog());
            //builder.Append("]");

            return(builder.ToString());
        }
        public bool Equals(DestinyItemCategoryDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     Visible == input.Visible ||
                     (Visible != null && Visible.Equals(input.Visible))
                 ) &&
                 (
                     Deprecated == input.Deprecated ||
                     (Deprecated != null && Deprecated.Equals(input.Deprecated))
                 ) &&
                 (
                     ShortTitle == input.ShortTitle ||
                     (ShortTitle != null && ShortTitle.Equals(input.ShortTitle))
                 ) &&
                 (
                     ItemTypeRegex == input.ItemTypeRegex ||
                     (ItemTypeRegex != null && ItemTypeRegex.Equals(input.ItemTypeRegex))
                 ) &&
                 (
                     GrantDestinyBreakerType == input.GrantDestinyBreakerType ||
                     (GrantDestinyBreakerType != null && GrantDestinyBreakerType.Equals(input.GrantDestinyBreakerType))
                 ) &&
                 (
                     PlugCategoryIdentifier == input.PlugCategoryIdentifier ||
                     (PlugCategoryIdentifier != null && PlugCategoryIdentifier.Equals(input.PlugCategoryIdentifier))
                 ) &&
                 (
                     ItemTypeRegexNot == input.ItemTypeRegexNot ||
                     (ItemTypeRegexNot != null && ItemTypeRegexNot.Equals(input.ItemTypeRegexNot))
                 ) &&
                 (
                     OriginBucketIdentifier == input.OriginBucketIdentifier ||
                     (OriginBucketIdentifier != null && OriginBucketIdentifier.Equals(input.OriginBucketIdentifier))
                 ) &&
                 (
                     GrantDestinyItemType == input.GrantDestinyItemType ||
                     (GrantDestinyItemType != null && GrantDestinyItemType.Equals(input.GrantDestinyItemType))
                 ) &&
                 (
                     GrantDestinySubType == input.GrantDestinySubType ||
                     (GrantDestinySubType != null && GrantDestinySubType.Equals(input.GrantDestinySubType))
                 ) &&
                 (
                     GrantDestinyClass == input.GrantDestinyClass ||
                     (GrantDestinyClass != null && GrantDestinyClass.Equals(input.GrantDestinyClass))
                 ) &&
                 (
                     TraitId == input.TraitId ||
                     (TraitId != null && TraitId.Equals(input.TraitId))
                 ) &&
                 (
                     GroupedCategoryHashes == input.GroupedCategoryHashes ||
                     (GroupedCategoryHashes != null && GroupedCategoryHashes.SequenceEqual(input.GroupedCategoryHashes))
                 ) &&
                 (
                     ParentCategoryHashes == input.ParentCategoryHashes ||
                     (ParentCategoryHashes != null && ParentCategoryHashes.SequenceEqual(input.ParentCategoryHashes))
                 ) &&
                 (
                     GroupCategoryOnly == input.GroupCategoryOnly ||
                     (GroupCategoryOnly != null && GroupCategoryOnly.Equals(input.GroupCategoryOnly))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
Beispiel #3
0
 public virtual Boolean IsEqual(TitleDescriptionObjectTranslation item)
 {
     return(Title.Equals(item.Title) && Description.Equals(item.Description) && ShortTitle.Equals(item.ShortTitle));
 }
Beispiel #4
0
 public virtual Boolean IsShortTitleEqual(String shortTitle)
 {
     shortTitle = String.IsNullOrEmpty(shortTitle) ? "" : shortTitle.ToLower();
     return((!String.IsNullOrEmpty(ShortTitle) && ShortTitle.ToLower() == shortTitle));
 }