示例#1
0
 public SA()
 {
     if (!ecErrorCode.Equals(ErrorCode.ecNone))
     {
         throw new NotImplementedException();
     }
 }
示例#2
0
        internal override bool EqualsData(DnsOption other)
        {
            DnsOptionLongLivedQuery castedOther = (DnsOptionLongLivedQuery)other;

            return(Version.Equals(castedOther.Version) &&
                   OpCode.Equals(castedOther.OpCode) &&
                   ErrorCode.Equals(castedOther.ErrorCode) &&
                   Id.Equals(castedOther.Id) &&
                   LeaseLife.Equals(castedOther.LeaseLife));
        }
        /// <summary>
        ///     Returns true if StatusMessage instances are equal
        /// </summary>
        /// <param name="other">Instance of StatusMessage to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(StatusMessage other)
        {
            // credit: http://stackoverflow.com/a/10454552/677735
            if (other == null)
            {
                return(false);
            }

            return((Op == other.Op || Op != null && Op.Equals(other.Op)) &&
                   (Id == other.Id || Id != null && Id.Equals(other.Id)) &&
                   (ErrorMessage == other.ErrorMessage || ErrorMessage != null && ErrorMessage.Equals(other.ErrorMessage)) &&
                   (ErrorCode == other.ErrorCode || ErrorCode != null && ErrorCode.Equals(other.ErrorCode)) &&
                   (ConnectionId == other.ConnectionId || ConnectionId != null && ConnectionId.Equals(other.ConnectionId)) &&
                   (ConnectionClosed == other.ConnectionClosed || ConnectionClosed != null && ConnectionClosed.Equals(other.ConnectionClosed)) &&
                   (StatusCode == other.StatusCode || StatusCode != null && StatusCode.Equals(other.StatusCode)));
        }
        public bool Equals(DestinyErrorProfile input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ErrorCode == input.ErrorCode ||
                     (ErrorCode != null && ErrorCode.Equals(input.ErrorCode))
                     ) &&
                 (
                     InfoCard == input.InfoCard ||
                     (InfoCard != null && InfoCard.Equals(input.InfoCard))
                 ));
        }
示例#5
0
        /// <summary>
        /// Returns true if AnalysisErrorReport instances are equal
        /// </summary>
        /// <param name="input">Instance of AnalysisErrorReport to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(AnalysisErrorReport input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ErrorCode == input.ErrorCode ||
                     ErrorCode != null &&
                     ErrorCode.Equals(input.ErrorCode)
                     ) &&
                 (
                     ErrorMessage == input.ErrorMessage ||
                     ErrorMessage != null &&
                     ErrorMessage.Equals(input.ErrorMessage)
                 ));
        }
示例#6
0
        /// <summary>
        /// Compares two StatusNotification requests for equality.
        /// </summary>
        /// <param name="StatusNotificationRequest">A StatusNotification request to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public override Boolean Equals(StatusNotificationRequest StatusNotificationRequest)
        {
            if (StatusNotificationRequest is null)
            {
                return(false);
            }

            return(ConnectorId.Equals(StatusNotificationRequest.ConnectorId) &&
                   Status.Equals(StatusNotificationRequest.Status) &&
                   ErrorCode.Equals(StatusNotificationRequest.ErrorCode) &&

                   Info.Equals(StatusNotificationRequest.Info) &&

                   ((!StatusTimestamp.HasValue && !StatusNotificationRequest.StatusTimestamp.HasValue) ||
                    (StatusTimestamp.HasValue && StatusNotificationRequest.StatusTimestamp.HasValue && StatusTimestamp.Value.Equals(StatusNotificationRequest.StatusTimestamp.Value))) &&

                   VendorId.Equals(StatusNotificationRequest.VendorId) &&
                   VendorErrorCode.Equals(StatusNotificationRequest.VendorErrorCode));
        }
示例#7
0
        /// <summary>
        ///     Returns true if MsalAuthenticationResult instances are equal
        /// </summary>
        /// <param name="other">Instance of MsalAuthenticationResult to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(MsalAuthenticationResult other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return((IsCanceled == other.IsCanceled || IsCanceled != null && IsCanceled.Equals(other.IsCanceled)) &&
                   (IsError == other.IsError || IsError != null && IsError.Equals(other.IsError)) &&
                   (ErrorCode == other.ErrorCode || ErrorCode != null && ErrorCode.Equals(other.ErrorCode)) &&
                   (AccessToken == other.AccessToken || AccessToken != null && AccessToken.Equals(other.AccessToken)) &&
                   (IdToken == other.IdToken || IdToken != null && IdToken.Equals(other.IdToken)) &&
                   (Scopes == other.Scopes || Scopes != null && Scopes.Equals(other.Scopes)) &&
                   (ExpiresOn == other.ExpiresOn || ExpiresOn != null && ExpiresOn.Equals(other.ExpiresOn)));
        }
示例#8
0
        private void OnEventConnect(object sender, _DKHOpenAPIEvents_OnEventConnectEvent e)
        {
            if (!axAPI.GetLoginInfo("GetServerGubun").Equals("1") && e.nErrCode == 0 && confirm.Identify(axAPI.GetLoginInfo("USER_ID"), axAPI.GetLoginInfo("USER_NAME")) && !ErrorCode.Equals(915))
            {
                if (DialogResult.Yes == MessageBox.Show("Do You Want to Retrieve Recent Data?", "Notice", MessageBoxButtons.YesNo, MessageBoxIcon.Question))
                {
                    Delay.delay = 4150;
                    Request();
                }
                SendConfirm?.Invoke(this, new Identify("The Remaining Validity Period is ", CallBasicInformation(e.nErrCode)));

                return;
            }
            else if (ErrorCode.Equals(915) && e.nErrCode.Equals(0))
            {
                CallBasicInformation(e.nErrCode);

                return;
            }
            Box.Show("등록되지 않은 사용자이거나 모의투자로 접속하셨습니다.\n\n프로그램을 종료합니다.", "오류", waiting);
            SendExit?.Invoke(this, new ForceQuit(end));
        }
示例#9
0
        /// <summary>
        /// Returns true if ReduceErrorInfo instances are equal
        /// </summary>
        /// <param name="input">Instance of ReduceErrorInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ReduceErrorInfo input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ErrorCode == input.ErrorCode ||
                     ErrorCode.Equals(input.ErrorCode)
                     ) &&
                 (
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                 ) &&
                 (
                     ExtErrorMessage == input.ExtErrorMessage ||
                     (ExtErrorMessage != null &&
                      ExtErrorMessage.Equals(input.ExtErrorMessage))
                 ));
        }
示例#10
0
        /// <summary>
        /// Returns true if ResponseError instances are equal
        /// </summary>
        /// <param name="other">Instance of ResponseError to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ResponseError other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     HttpStatus == other.HttpStatus ||

                     HttpStatus.Equals(other.HttpStatus)
                     ) &&
                 (
                     ErrorCode == other.ErrorCode ||

                     ErrorCode.Equals(other.ErrorCode)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     DocumentationLink == other.DocumentationLink ||
                     DocumentationLink != null &&
                     DocumentationLink.Equals(other.DocumentationLink)
                 ) &&
                 (
                     AdditionalInfo == other.AdditionalInfo ||
                     AdditionalInfo != null &&
                     other.AdditionalInfo != null &&
                     AdditionalInfo.SequenceEqual(other.AdditionalInfo)
                 ));
        }
示例#11
0
        /// <summary>
        /// Returns true if ErrorResponse instances are equal
        /// </summary>
        /// <param name="other">Instance of ErrorResponse to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ErrorResponse other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

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

            return
                ((
                     ErrorCode == other.ErrorCode ||

                     ErrorCode.Equals(other.ErrorCode)
                     ) &&
                 (
                     Message == other.Message ||
                     Message != null &&
                     Message.Equals(other.Message)
                 ));
        }
示例#13
0
 public bool Equals(ErrorResult <TError> other)
 {
     if (!ErrorCode.Equals(other.ErrorCode))
     {
         return(false);
     }
     if (ErrorMessage != other.ErrorMessage)
     {
         return(false);
     }
     if (_validationErrors != null && other._validationErrors == null)
     {
         return(false);
     }
     if (_validationErrors == null && other._validationErrors != null)
     {
         return(false);
     }
     if (_validationErrors != null && other._validationErrors != null && _validationErrors.Equals(other._validationErrors))
     {
         return(false);
     }
     return(true);
 }
 public bool equals(ErrorClass errorClass, ErrorCode errorCode)
 {
     return(ErrorClass.Equals(errorClass) && ErrorCode.Equals(errorCode));
 }