Ejemplo n.º 1
0
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLLibraryQuestionCategory)obj;

            //reference types
            if (!Object.Equals(Name, other.Name))
            {
                return(false);
            }
            //value types
            if (!CategoryId.Equals(other.CategoryId))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }

            return(true);
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLSurveyTheme)obj;

            //reference types
            if (!Object.Equals(Name, other.Name))
            {
                return(false);
            }
            if (!Object.Equals(RtHtml, other.RtHtml))
            {
                return(false);
            }
            if (!Object.Equals(RtCSS, other.RtCSS))
            {
                return(false);
            }
            if (!Object.Equals(DtHtml, other.DtHtml))
            {
                return(false);
            }
            if (!Object.Equals(DtCSS, other.DtCSS))
            {
                return(false);
            }
            //value types
            if (!ThemeId.Equals(other.ThemeId))
            {
                return(false);
            }
            if (!ClientId.Equals(other.ClientId))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }

            return(true);
        }
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLQuestionColumn)obj;

            //reference types
            if (!Object.Equals(ColumnText, other.ColumnText))
            {
                return(false);
            }
            //value types
            if (!Survey.Equals(other.Survey))
            {
                return(false);
            }
            if (!Question.Equals(other.Question))
            {
                return(false);
            }
            if (!ColumnId.Equals(other.ColumnId))
            {
                return(false);
            }
            if (!DisplayOrder.Equals(other.DisplayOrder))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLClientProfile)obj;

            //reference types
            if (!Object.Equals(Name, other.Name))
            {
                return(false);
            }
            if (!Object.Equals(Comment, other.Comment))
            {
                return(false);
            }
            //value types
            if (!ProfileId.Equals(other.ProfileId))
            {
                return(false);
            }
            if (!MaxNumberOfUsers.Equals(other.MaxNumberOfUsers))
            {
                return(false);
            }
            if (!MaxNumberOfSurveys.Equals(other.MaxNumberOfSurveys))
            {
                return(false);
            }
            if (!MaxNumberOfLists.Equals(other.MaxNumberOfLists))
            {
                return(false);
            }
            if (!MaxNumberOfRecipientsPerList.Equals(other.MaxNumberOfRecipientsPerList))
            {
                return(false);
            }
            if (!MaxNumberOfRecipientsPerMessage.Equals(other.MaxNumberOfRecipientsPerMessage))
            {
                return(false);
            }
            if (!MaxNumberOfCollectorsPerSurvey.Equals(other.MaxNumberOfCollectorsPerSurvey))
            {
                return(false);
            }
            if (!MaxNumberOfEmailsPerDay.Equals(other.MaxNumberOfEmailsPerDay))
            {
                return(false);
            }
            if (!MaxNumberOfEmailsPerWeek.Equals(other.MaxNumberOfEmailsPerWeek))
            {
                return(false);
            }
            if (!MaxNumberOfEmailsPerMonth.Equals(other.MaxNumberOfEmailsPerMonth))
            {
                return(false);
            }
            if (!MaxNumberOfEmails.Equals(other.MaxNumberOfEmails))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLMessage)obj;

            //reference types
            if (!Object.Equals(Sender, other.Sender))
            {
                return(false);
            }
            if (!Object.Equals(Subject, other.Subject))
            {
                return(false);
            }
            if (!Object.Equals(Body, other.Body))
            {
                return(false);
            }
            if (!Object.Equals(CustomKeyword, other.CustomKeyword))
            {
                return(false);
            }
            if (!Object.Equals(Error, other.Error))
            {
                return(false);
            }
            if (!Object.Equals(SenderVerificationCode, other.SenderVerificationCode))
            {
                return(false);
            }
            //value types
            if (!Collector.Equals(other.Collector))
            {
                return(false);
            }
            if (!MessageId.Equals(other.MessageId))
            {
                return(false);
            }
            if (!Status.Equals(other.Status))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }
            if (!ScheduledAt.Equals(other.ScheduledAt))
            {
                return(false);
            }
            if (!SentCounter.Equals(other.SentCounter))
            {
                return(false);
            }
            if (!FailedCounter.Equals(other.FailedCounter))
            {
                return(false);
            }
            if (!SkipCounter.Equals(other.SkipCounter))
            {
                return(false);
            }
            if (!DeliveryMethod.Equals(other.DeliveryMethod))
            {
                return(false);
            }
            if (!CustomSearchField.Equals(other.CustomSearchField))
            {
                return(false);
            }
            if (!CustomOperator.Equals(other.CustomOperator))
            {
                return(false);
            }
            if (!PendingAt.Equals(other.PendingAt))
            {
                return(false);
            }
            if (!PreparingAt.Equals(other.PreparingAt))
            {
                return(false);
            }
            if (!PreparedAt.Equals(other.PreparedAt))
            {
                return(false);
            }
            if (!ExecutingAt.Equals(other.ExecutingAt))
            {
                return(false);
            }
            if (!TerminatedAt.Equals(other.TerminatedAt))
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLFile)obj;

            //reference types
            if (!Object.Equals(OriginalFileName, other.OriginalFileName))
            {
                return(false);
            }
            if (!Object.Equals(ManagedFileName, other.ManagedFileName))
            {
                return(false);
            }
            if (!Object.Equals(Extension, other.Extension))
            {
                return(false);
            }
            if (!Object.Equals(InventoryPath, other.InventoryPath))
            {
                return(false);
            }
            //value types
            if (!Client.Equals(other.Client))
            {
                return(false);
            }
            if (!FileId.Equals(other.FileId))
            {
                return(false);
            }
            if (!Survey.Equals(other.Survey))
            {
                return(false);
            }
            if (!Size.Equals(other.Size))
            {
                return(false);
            }
            if (!Status.Equals(other.Status))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }
            if (!Width.Equals(other.Width))
            {
                return(false);
            }
            if (!Height.Equals(other.Height))
            {
                return(false);
            }

            return(true);
        }
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLQuestionOption)obj;

            //reference types
            if (!Object.Equals(OptionText, other.OptionText))
            {
                return(false);
            }
            if (!Object.Equals(CustomId, other.CustomId))
            {
                return(false);
            }
            if (!Object.Equals(SkipToWebUrl, other.SkipToWebUrl))
            {
                return(false);
            }
            //value types
            if (!Survey.Equals(other.Survey))
            {
                return(false);
            }
            if (!Question.Equals(other.Question))
            {
                return(false);
            }
            if (!OptionId.Equals(other.OptionId))
            {
                return(false);
            }
            if (!OptionType.Equals(other.OptionType))
            {
                return(false);
            }
            if (!DisplayOrder.Equals(other.DisplayOrder))
            {
                return(false);
            }
            if (!OptionValue.Equals(other.OptionValue))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }
            if (!SkipTo.Equals(other.SkipTo))
            {
                return(false);
            }
            if (!SkipToPage.Equals(other.SkipToPage))
            {
                return(false);
            }
            if (!SkipToQuestion.Equals(other.SkipToQuestion))
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLSystemUser)obj;

            //reference types
            if (!Object.Equals(FirstName, other.FirstName))
            {
                return(false);
            }
            if (!Object.Equals(LastName, other.LastName))
            {
                return(false);
            }
            if (!Object.Equals(Email, other.Email))
            {
                return(false);
            }
            if (!Object.Equals(TimeZoneId, other.TimeZoneId))
            {
                return(false);
            }
            if (!Object.Equals(Notes, other.Notes))
            {
                return(false);
            }
            //value types
            if (!UserId.Equals(other.UserId))
            {
                return(false);
            }
            if (!DefaultLanguage.Equals(other.DefaultLanguage))
            {
                return(false);
            }
            if (!IsActive.Equals(other.IsActive))
            {
                return(false);
            }
            if (!IsBuiltIn.Equals(other.IsBuiltIn))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }
            if (!Role.Equals(other.Role))
            {
                return(false);
            }
            if (!LastActivityDate.Equals(other.LastActivityDate))
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLSurveyPage)obj;

            //reference types
            if (!Object.Equals(CustomId, other.CustomId))
            {
                return(false);
            }
            if (!Object.Equals(SkipToWebUrl, other.SkipToWebUrl))
            {
                return(false);
            }
            if (!Object.Equals(ShowTitle, other.ShowTitle))
            {
                return(false);
            }
            if (!Object.Equals(Description, other.Description))
            {
                return(false);
            }
            //value types
            if (!Survey.Equals(other.Survey))
            {
                return(false);
            }
            if (!PageId.Equals(other.PageId))
            {
                return(false);
            }
            if (!DisplayOrder.Equals(other.DisplayOrder))
            {
                return(false);
            }
            if (!PreviousPage.Equals(other.PreviousPage))
            {
                return(false);
            }
            if (!NextPage.Equals(other.NextPage))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }
            if (!SkipTo.Equals(other.SkipTo))
            {
                return(false);
            }
            if (!SkipToPage.Equals(other.SkipToPage))
            {
                return(false);
            }

            return(true);
        }
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLLibraryQuestion)obj;

            //reference types
            if (!Object.Equals(ValidationField1, other.ValidationField1))
            {
                return(false);
            }
            if (!Object.Equals(ValidationField2, other.ValidationField2))
            {
                return(false);
            }
            if (!Object.Equals(ValidationField3, other.ValidationField3))
            {
                return(false);
            }
            if (!Object.Equals(RegularExpression, other.RegularExpression))
            {
                return(false);
            }
            if (!Object.Equals(QuestionText, other.QuestionText))
            {
                return(false);
            }
            if (!Object.Equals(Description, other.Description))
            {
                return(false);
            }
            if (!Object.Equals(HelpText, other.HelpText))
            {
                return(false);
            }
            if (!Object.Equals(FrontLabelText, other.FrontLabelText))
            {
                return(false);
            }
            if (!Object.Equals(AfterLabelText, other.AfterLabelText))
            {
                return(false);
            }
            if (!Object.Equals(InsideText, other.InsideText))
            {
                return(false);
            }
            if (!Object.Equals(RequiredMessage, other.RequiredMessage))
            {
                return(false);
            }
            if (!Object.Equals(ValidationMessage, other.ValidationMessage))
            {
                return(false);
            }
            if (!Object.Equals(OtherFieldLabel, other.OtherFieldLabel))
            {
                return(false);
            }
            //value types
            if (!QuestionId.Equals(other.QuestionId))
            {
                return(false);
            }
            if (!m_category.Equals(other.m_category))
            {
                return(false);
            }
            if (!QuestionType.Equals(other.QuestionType))
            {
                return(false);
            }
            if (!IsRequired.Equals(other.IsRequired))
            {
                return(false);
            }
            if (!RequiredBehavior.Equals(other.RequiredBehavior))
            {
                return(false);
            }
            if (!RequiredMinLimit.Equals(other.RequiredMinLimit))
            {
                return(false);
            }
            if (!RequiredMaxLimit.Equals(other.RequiredMaxLimit))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }
            if (!ValidationBehavior.Equals(other.ValidationBehavior))
            {
                return(false);
            }
            if (!RandomBehavior.Equals(other.RandomBehavior))
            {
                return(false);
            }
            if (!OtherFieldType.Equals(other.OtherFieldType))
            {
                return(false);
            }
            if (!OtherFieldRows.Equals(other.OtherFieldRows))
            {
                return(false);
            }
            if (!OtherFieldChars.Equals(other.OtherFieldChars))
            {
                return(false);
            }
            if (!OptionsSequence.Equals(other.OptionsSequence))
            {
                return(false);
            }
            if (!ColumnsSequence.Equals(other.ColumnsSequence))
            {
                return(false);
            }
            if (!RangeStart.Equals(other.RangeStart))
            {
                return(false);
            }
            if (!RangeEnd.Equals(other.RangeEnd))
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLContact)obj;

            //reference types
            if (!Object.Equals(Organization, other.Organization))
            {
                return(false);
            }
            if (!Object.Equals(Title, other.Title))
            {
                return(false);
            }
            if (!Object.Equals(Department, other.Department))
            {
                return(false);
            }
            if (!Object.Equals(FirstName, other.FirstName))
            {
                return(false);
            }
            if (!Object.Equals(LastName, other.LastName))
            {
                return(false);
            }
            if (!Object.Equals(Email, other.Email))
            {
                return(false);
            }
            if (!Object.Equals(Comment, other.Comment))
            {
                return(false);
            }
            //value types
            if (!ClientId.Equals(other.ClientId))
            {
                return(false);
            }
            if (!ListId.Equals(other.ListId))
            {
                return(false);
            }
            if (!ContactId.Equals(other.ContactId))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }

            return(true);
        }