Пример #1
0
        /// <summary>
        /// Returns true if FavoriteImpl instances are equal
        /// </summary>
        /// <param name="other">Instance of FavoriteImpl to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(FavoriteImpl other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Item == other.Item ||
                     Item != null &&
                     Item.Equals(other.Item)
                 ));
        }
Пример #2
0
        /// <summary>
        /// Returns true if ResponseElectronicChannelsList instances are equal
        /// </summary>
        /// <param name="other">Instance of ResponseElectronicChannelsList to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ResponseElectronicChannelsList other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Data == other.Data ||
                     Data != null &&
                     Data.Equals(other.Data)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Meta == other.Meta ||
                     Meta != null &&
                     Meta.Equals(other.Meta)
                 ));
        }
Пример #3
0
        /// <summary>
        /// Returns true if ExtensionClassContainerImpl1 instances are equal
        /// </summary>
        /// <param name="other">Instance of ExtensionClassContainerImpl1 to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ExtensionClassContainerImpl1 other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Map == other.Map ||
                     Map != null &&
                     Map.Equals(other.Map)
                 ));
        }
Пример #4
0
        /// <summary>
        /// Returns true if GithubOrganization instances are equal
        /// </summary>
        /// <param name="other">Instance of GithubOrganization to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(GithubOrganization other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     JenkinsOrganizationPipeline == other.JenkinsOrganizationPipeline ||
                     JenkinsOrganizationPipeline != null &&
                     JenkinsOrganizationPipeline.Equals(other.JenkinsOrganizationPipeline)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ));
        }
        /// <summary>
        /// Returns true if GithubRespositoryContainer instances are equal
        /// </summary>
        /// <param name="other">Instance of GithubRespositoryContainer to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(GithubRespositoryContainer other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Repositories == other.Repositories ||
                     Repositories != null &&
                     Repositories.Equals(other.Repositories)
                 ));
        }
        /// <summary>
        /// Returns true if ResponseSharedAutomatedTellerMachinesList instances are equal
        /// </summary>
        /// <param name="other">Instance of ResponseSharedAutomatedTellerMachinesList to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ResponseSharedAutomatedTellerMachinesList other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Data == other.Data ||
                     Data != null &&
                     Data.Equals(other.Data)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Meta == other.Meta ||
                     Meta != null &&
                     Meta.Equals(other.Meta)
                 ));
        }
Пример #7
0
        /// <summary>
        /// Returns true if ResponseDiscoveryOutageList instances are equal
        /// </summary>
        /// <param name="other">Instance of ResponseDiscoveryOutageList to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ResponseDiscoveryOutageList other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Data == other.Data ||
                     Data != null &&
                     Data.SequenceEqual(other.Data)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Meta == other.Meta ||
                     Meta != null &&
                     Meta.Equals(other.Meta)
                 ));
        }
Пример #8
0
        /// <summary>
        /// Returns true if ExtensionClassImpl instances are equal
        /// </summary>
        /// <param name="other">Instance of ExtensionClassImpl to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ExtensionClassImpl other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Classes == other.Classes ||
                     Classes != null &&
                     Classes.SequenceEqual(other.Classes)
                 ));
        }
Пример #9
0
        /// <summary>
        /// Returns true if PipelineStepImpl instances are equal
        /// </summary>
        /// <param name="other">Instance of PipelineStepImpl to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PipelineStepImpl other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     DisplayName == other.DisplayName ||
                     DisplayName != null &&
                     DisplayName.Equals(other.DisplayName)
                 ) &&
                 (
                     DurationInMillis == other.DurationInMillis ||

                     DurationInMillis.Equals(other.DurationInMillis)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Input == other.Input ||
                     Input != null &&
                     Input.Equals(other.Input)
                 ) &&
                 (
                     Result == other.Result ||
                     Result != null &&
                     Result.Equals(other.Result)
                 ) &&
                 (
                     StartTime == other.StartTime ||
                     StartTime != null &&
                     StartTime.Equals(other.StartTime)
                 ) &&
                 (
                     State == other.State ||
                     State != null &&
                     State.Equals(other.State)
                 ));
        }
Пример #10
0
        /// <summary>
        /// Returns true if GithubRepository instances are equal
        /// </summary>
        /// <param name="other">Instance of GithubRepository to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(GithubRepository other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     DefaultBranch == other.DefaultBranch ||
                     DefaultBranch != null &&
                     DefaultBranch.Equals(other.DefaultBranch)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     Permissions == other.Permissions ||
                     Permissions != null &&
                     Permissions.Equals(other.Permissions)
                 ) &&
                 (
                     Private == other.Private ||

                     Private.Equals(other.Private)
                 ) &&
                 (
                     FullName == other.FullName ||
                     FullName != null &&
                     FullName.Equals(other.FullName)
                 ));
        }
Пример #11
0
 public bool Equals(TestResourceWithLinks other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Result.Equals(other.Result) && Links.Equals(other.Links));
 }
Пример #12
0
        /// <summary>
        /// Returns true if InputStepImpl instances are equal
        /// </summary>
        /// <param name="other">Instance of InputStepImpl to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InputStepImpl other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Message == other.Message ||
                     Message != null &&
                     Message.Equals(other.Message)
                 ) &&
                 (
                     Ok == other.Ok ||
                     Ok != null &&
                     Ok.Equals(other.Ok)
                 ) &&
                 (
                     Parameters == other.Parameters ||
                     Parameters != null &&
                     other.Parameters != null &&
                     Parameters.SequenceEqual(other.Parameters)
                 ) &&
                 (
                     Submitter == other.Submitter ||
                     Submitter != null &&
                     Submitter.Equals(other.Submitter)
                 ));
        }
Пример #13
0
        public bool Equals(TestResource other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (!DateProperty.Equals(other.DateProperty))
            {
                return(false);
            }
            if (!DateOffsetProperty.Equals(other.DateOffsetProperty) && DateOffsetProperty != DateTimeOffset.MinValue && other.DateOffsetProperty != DateTimeOffset.MinValue)
            {
                return(false);
            }
            if (!BoolProperty.Equals(other.BoolProperty))
            {
                return(false);
            }
            if (IntProperty != other.IntProperty)
            {
                return(false);
            }
            if (!string.Equals(StringProperty, other.StringProperty))
            {
                return(false);
            }
            if (ReferenceEquals(Links, other.Links))
            {
                return(true);
            }
            if (ReferenceEquals(null, other.Links))
            {
                return(false);
            }
            if (ReferenceEquals(null, Links))
            {
                return(false);
            }
            if (!Links.Equals(other.Links))
            {
                return(false);
            }

            return(true);
        }
Пример #14
0
        /// <summary>
        /// Returns true if GithubRepositories instances are equal
        /// </summary>
        /// <param name="other">Instance of GithubRepositories to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(GithubRepositories other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Items == other.Items ||
                     Items != null &&
                     other.Items != null &&
                     Items.SequenceEqual(other.Items)
                 ) &&
                 (
                     LastPage == other.LastPage ||

                     LastPage.Equals(other.LastPage)
                 ) &&
                 (
                     NextPage == other.NextPage ||

                     NextPage.Equals(other.NextPage)
                 ) &&
                 (
                     PageSize == other.PageSize ||

                     PageSize.Equals(other.PageSize)
                 ));
        }
Пример #15
0
        /// <summary>
        /// Returns true if PipelineBranchesitempullRequest instances are equal
        /// </summary>
        /// <param name="other">Instance of PipelineBranchesitempullRequest to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PipelineBranchesitempullRequest other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                     ) &&
                 (
                     Author == other.Author ||
                     Author != null &&
                     Author.Equals(other.Author)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Title == other.Title ||
                     Title != null &&
                     Title.Equals(other.Title)
                 ) &&
                 (
                     Url == other.Url ||
                     Url != null &&
                     Url.Equals(other.Url)
                 ) &&
                 (
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                 ));
        }
Пример #16
0
        /// <summary>
        /// Returns true if EnvironmentLogs instances are equal
        /// </summary>
        /// <param name="other">Instance of EnvironmentLogs to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(EnvironmentLogs other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Service == other.Service ||
                     Service != null &&
                     other.Service != null &&
                     Service.SequenceEqual(other.Service)
                     ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     other.Name != null &&
                     Name.SequenceEqual(other.Name)
                 ) &&
                 (
                     Days == other.Days ||

                     Days.Equals(other.Days)
                 ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     Embedded == other.Embedded ||
                     Embedded != null &&
                     Embedded.Equals(other.Embedded)
                 ));
        }
        public bool Equals(Kinematic other)
        {
            if (other == null)
            {
                return(false);
            }

            if (!(_internalElement?.RefBaseSystemUnitPath?.Equals(other._internalElement?.RefBaseSystemUnitPath) ??
                  false))
            {
                return(false);
            }

            if (!(Name?.Equals(other.Name) ?? false))
            {
                return(false);
            }

            if (!(Id?.Equals(other.Id) ?? false))
            {
                return(false);
            }

            if (!(Links?.Equals(other.Links) ?? false))
            {
                return(false);
            }

            if (!(JointValues?.Equals(other.JointValues) ?? false))
            {
                return(false);
            }

            if (!(Joints?.Equals(other.Joints) ?? false))
            {
                return(false);
            }

            return(true);
        }
Пример #18
0
        /// <summary>
        /// Returns true if GithubScm instances are equal
        /// </summary>
        /// <param name="other">Instance of GithubScm to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(GithubScm other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     CredentialId == other.CredentialId ||
                     CredentialId != null &&
                     CredentialId.Equals(other.CredentialId)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Uri == other.Uri ||
                     Uri != null &&
                     Uri.Equals(other.Uri)
                 ));
        }
Пример #19
0
        public bool Equals(TestListResource other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (ReferenceEquals(null, other.Results))
            {
                return(false);
            }
            if (ReferenceEquals(Results, other.Results))
            {
                return(true);
            }
            if (Results.Count != other.Results.Count)
            {
                return(false);
            }

            for (var i = 0; i < Results.Count; i++)
            {
                var a = Results[i];
                var b = other.Results[i];

                if (!a.Equals(b))
                {
                    return(false);
                }
            }

            return(Links.Equals(other.Links));
        }
Пример #20
0
        /// <summary>
        /// Returns true if BranchImpl instances are equal
        /// </summary>
        /// <param name="other">Instance of BranchImpl to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(BranchImpl other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     DisplayName == other.DisplayName ||
                     DisplayName != null &&
                     DisplayName.Equals(other.DisplayName)
                 ) &&
                 (
                     EstimatedDurationInMillis == other.EstimatedDurationInMillis ||

                     EstimatedDurationInMillis.Equals(other.EstimatedDurationInMillis)
                 ) &&
                 (
                     FullDisplayName == other.FullDisplayName ||
                     FullDisplayName != null &&
                     FullDisplayName.Equals(other.FullDisplayName)
                 ) &&
                 (
                     FullName == other.FullName ||
                     FullName != null &&
                     FullName.Equals(other.FullName)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     Organization == other.Organization ||
                     Organization != null &&
                     Organization.Equals(other.Organization)
                 ) &&
                 (
                     Parameters == other.Parameters ||
                     Parameters != null &&
                     other.Parameters != null &&
                     Parameters.SequenceEqual(other.Parameters)
                 ) &&
                 (
                     Permissions == other.Permissions ||
                     Permissions != null &&
                     Permissions.Equals(other.Permissions)
                 ) &&
                 (
                     WeatherScore == other.WeatherScore ||

                     WeatherScore.Equals(other.WeatherScore)
                 ) &&
                 (
                     PullRequest == other.PullRequest ||
                     PullRequest != null &&
                     PullRequest.Equals(other.PullRequest)
                 ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     LatestRun == other.LatestRun ||
                     LatestRun != null &&
                     LatestRun.Equals(other.LatestRun)
                 ));
        }
Пример #21
0
        /// <summary>
        /// Returns true if PipelineRunImpl instances are equal
        /// </summary>
        /// <param name="other">Instance of PipelineRunImpl to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PipelineRunImpl other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     DurationInMillis == other.DurationInMillis ||

                     DurationInMillis.Equals(other.DurationInMillis)
                 ) &&
                 (
                     EnQueueTime == other.EnQueueTime ||
                     EnQueueTime != null &&
                     EnQueueTime.Equals(other.EnQueueTime)
                 ) &&
                 (
                     EndTime == other.EndTime ||
                     EndTime != null &&
                     EndTime.Equals(other.EndTime)
                 ) &&
                 (
                     EstimatedDurationInMillis == other.EstimatedDurationInMillis ||

                     EstimatedDurationInMillis.Equals(other.EstimatedDurationInMillis)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Organization == other.Organization ||
                     Organization != null &&
                     Organization.Equals(other.Organization)
                 ) &&
                 (
                     Pipeline == other.Pipeline ||
                     Pipeline != null &&
                     Pipeline.Equals(other.Pipeline)
                 ) &&
                 (
                     Result == other.Result ||
                     Result != null &&
                     Result.Equals(other.Result)
                 ) &&
                 (
                     RunSummary == other.RunSummary ||
                     RunSummary != null &&
                     RunSummary.Equals(other.RunSummary)
                 ) &&
                 (
                     StartTime == other.StartTime ||
                     StartTime != null &&
                     StartTime.Equals(other.StartTime)
                 ) &&
                 (
                     State == other.State ||
                     State != null &&
                     State.Equals(other.State)
                 ) &&
                 (
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                 ) &&
                 (
                     CommitId == other.CommitId ||
                     CommitId != null &&
                     CommitId.Equals(other.CommitId)
                 ));
        }
Пример #22
0
 public bool ValidateCallbackErrorRequestPayload(CallBackResponse callBackResponse)
 {
     return(callBackResponse.Data.RequestedProductCount >= 0 && !string.IsNullOrWhiteSpace(callBackResponse.Data.Links.ExchangeSetBatchStatusUri.Href) && !string.IsNullOrWhiteSpace(callBackResponse.Data.Links.ExchangeSetBatchDetailsUri.Href) && Links.Equals(callBackResponse.Data.Links.ExchangeSetFileUri, null) && !string.IsNullOrWhiteSpace(callBackResponse.Id) && int.Equals(callBackResponse.Data.ExchangeSetCellCount, 0));
 }