private static LocationHash ReadBootStrapperItem(XmlReader reader)
        {
            var result = new LocationHash();

            reader.ReadStartElement("LocationHash");

            reader.ReadStartElement("Location");
            result.Location = reader.ReadContentAsString();
            reader.ReadEndElement();

            reader.ReadStartElement("Path");
            if (reader.NodeType == XmlNodeType.Text)
            {
                result.Path = reader.ReadContentAsString();
                reader.ReadEndElement();
            }
            else
            {
                result.Path = String.Empty;
            }

            reader.ReadStartElement("Base64Hash");
            result.Base64Hash = reader.ReadContentAsString();
            reader.ReadEndElement();

            reader.ReadEndElement();

            return(result);
        }
        public bool Equals(DestinyProfileTransitoryTrackingEntry input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     LocationHash == input.LocationHash ||
                     (LocationHash.Equals(input.LocationHash))
                     ) &&
                 (
                     ItemHash == input.ItemHash ||
                     (ItemHash.Equals(input.ItemHash))
                 ) &&
                 (
                     ObjectiveHash == input.ObjectiveHash ||
                     (ObjectiveHash.Equals(input.ObjectiveHash))
                 ) &&
                 (
                     ActivityHash == input.ActivityHash ||
                     (ActivityHash.Equals(input.ActivityHash))
                 ) &&
                 (
                     QuestlineItemHash == input.QuestlineItemHash ||
                     (QuestlineItemHash.Equals(input.QuestlineItemHash))
                 ) &&
                 (
                     TrackedDate == input.TrackedDate ||
                     (TrackedDate != null && TrackedDate.Equals(input.TrackedDate))
                 ));
        }
示例#3
0
        public bool Equals(DestinyEnvironmentLocationMapping input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     LocationHash == input.LocationHash ||
                     (LocationHash.Equals(input.LocationHash))
                     ) &&
                 (
                     ActivationSource == input.ActivationSource ||
                     (ActivationSource != null && ActivationSource.Equals(input.ActivationSource))
                 ) &&
                 (
                     ItemHash == input.ItemHash ||
                     (ItemHash.Equals(input.ItemHash))
                 ) &&
                 (
                     ObjectiveHash == input.ObjectiveHash ||
                     (ObjectiveHash.Equals(input.ObjectiveHash))
                 ) &&
                 (
                     ActivityHash == input.ActivityHash ||
                     (ActivityHash.Equals(input.ActivityHash))
                 ));
        }
        public bool Equals(DestinyChecklistEntryDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                     ) &&
                 (
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                 ) &&
                 (
                     DestinationHash == input.DestinationHash ||
                     (DestinationHash.Equals(input.DestinationHash))
                 ) &&
                 (
                     LocationHash == input.LocationHash ||
                     (LocationHash.Equals(input.LocationHash))
                 ) &&
                 (
                     BubbleHash == input.BubbleHash ||
                     (BubbleHash.Equals(input.BubbleHash))
                 ) &&
                 (
                     ActivityHash == input.ActivityHash ||
                     (ActivityHash.Equals(input.ActivityHash))
                 ) &&
                 (
                     ItemHash == input.ItemHash ||
                     (ItemHash.Equals(input.ItemHash))
                 ) &&
                 (
                     VendorHash == input.VendorHash ||
                     (VendorHash.Equals(input.VendorHash))
                 ) &&
                 (
                     VendorInteractionIndex == input.VendorInteractionIndex ||
                     (VendorInteractionIndex.Equals(input.VendorInteractionIndex))
                 ) &&
                 (
                     Scope == input.Scope ||
                     (Scope != null && Scope.Equals(input.Scope))
                 ));
        }
示例#5
0
        protected bool CheckHash(string tempPath, List <LocationHash> versionItems, out LocationHash badOne)
        {
            badOne = null;

            foreach (var item in versionItems)
            {
                //if (item.InstallAction == InstallAction.Delete)
                //    continue;

                if (FileHash.GetBase64FileHash(Path.Combine(tempPath, item.GetUnzipItemFullPath())) !=
                    item.Base64Hash)
                {
                    badOne = item;
                    return(false);
                }
            }

            return(true);
        }
示例#6
0
        public bool Equals(DestinyObjectiveDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     CompletionValue == input.CompletionValue ||
                     (CompletionValue.Equals(input.CompletionValue))
                 ) &&
                 (
                     Scope == input.Scope ||
                     (Scope != null && Scope.Equals(input.Scope))
                 ) &&
                 (
                     LocationHash == input.LocationHash ||
                     (LocationHash.Equals(input.LocationHash))
                 ) &&
                 (
                     AllowNegativeValue == input.AllowNegativeValue ||
                     (AllowNegativeValue != null && AllowNegativeValue.Equals(input.AllowNegativeValue))
                 ) &&
                 (
                     AllowValueChangeWhenCompleted == input.AllowValueChangeWhenCompleted ||
                     (AllowValueChangeWhenCompleted != null && AllowValueChangeWhenCompleted.Equals(input.AllowValueChangeWhenCompleted))
                 ) &&
                 (
                     IsCountingDownward == input.IsCountingDownward ||
                     (IsCountingDownward != null && IsCountingDownward.Equals(input.IsCountingDownward))
                 ) &&
                 (
                     ValueStyle == input.ValueStyle ||
                     (ValueStyle != null && ValueStyle.Equals(input.ValueStyle))
                 ) &&
                 (
                     ProgressDescription == input.ProgressDescription ||
                     (ProgressDescription != null && ProgressDescription.Equals(input.ProgressDescription))
                 ) &&
                 (
                     Perks == input.Perks ||
                     (Perks != null && Perks.Equals(input.Perks))
                 ) &&
                 (
                     Stats == input.Stats ||
                     (Stats != null && Stats.Equals(input.Stats))
                 ) &&
                 (
                     MinimumVisibilityThreshold == input.MinimumVisibilityThreshold ||
                     (MinimumVisibilityThreshold.Equals(input.MinimumVisibilityThreshold))
                 ) &&
                 (
                     AllowOvercompletion == input.AllowOvercompletion ||
                     (AllowOvercompletion != null && AllowOvercompletion.Equals(input.AllowOvercompletion))
                 ) &&
                 (
                     ShowValueOnComplete == input.ShowValueOnComplete ||
                     (ShowValueOnComplete != null && ShowValueOnComplete.Equals(input.ShowValueOnComplete))
                 ) &&
                 (
                     CompletedValueStyle == input.CompletedValueStyle ||
                     (CompletedValueStyle != null && CompletedValueStyle.Equals(input.CompletedValueStyle))
                 ) &&
                 (
                     InProgressValueStyle == input.InProgressValueStyle ||
                     (InProgressValueStyle != null && InProgressValueStyle.Equals(input.InProgressValueStyle))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }