Ejemplo n.º 1
0
 /// <summary>
 /// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
 /// </summary>
 /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
 /// <returns><c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.</returns>
 public override bool Equals(object obj)
 {
     if (obj is Criteria2)
     {
         var c = (Criteria2)obj;
         if (!CreateDoc.Equals(c.CreateDoc))
         {
             return(false);
         }
         if (!DocID.Equals(c.DocID))
         {
             return(false);
         }
         if (!CreateFolder.Equals(c.CreateFolder))
         {
             return(false);
         }
         if (!FolderID.Equals(c.FolderID))
         {
             return(false);
         }
         if (!DocListFilteredCriteria.Equals(c.DocListFilteredCriteria))
         {
             return(false);
         }
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
 /// </summary>
 /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
 /// <returns><c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.</returns>
 public override bool Equals(object obj)
 {
     if (obj is CriteriaGetByObject)
     {
         var c = (CriteriaGetByObject)obj;
         if (!DocID.Equals(c.DocID))
         {
             return(false);
         }
         if (!FolderID.Equals(c.FolderID))
         {
             return(false);
         }
         return(true);
     }
     return(false);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
 /// </summary>
 /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
 /// <returns><c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.</returns>
 public override bool Equals(object obj)
 {
     if (obj is DocListFilteredCriteria)
     {
         var c = (DocListFilteredCriteria)obj;
         if (!DocID.Equals(c.DocID))
         {
             return(false);
         }
         if (!DocClassID.Equals(c.DocClassID))
         {
             return(false);
         }
         if (!DocTypeID.Equals(c.DocTypeID))
         {
             return(false);
         }
         if (!SenderID.Equals(c.SenderID))
         {
             return(false);
         }
         if (!RecipientID.Equals(c.RecipientID))
         {
             return(false);
         }
         if (!DocRef.Equals(c.DocRef))
         {
             return(false);
         }
         if (!DocDate.Equals(c.DocDate))
         {
             return(false);
         }
         if (!Subject.Equals(c.Subject))
         {
             return(false);
         }
         if (!DocStatusID.Equals(c.DocStatusID))
         {
             return(false);
         }
         if (!CreateDate.Equals(c.CreateDate))
         {
             return(false);
         }
         if (!CreateUserID.Equals(c.CreateUserID))
         {
             return(false);
         }
         if (!ChangeDate.Equals(c.ChangeDate))
         {
             return(false);
         }
         if (!ChangeUserID.Equals(c.ChangeUserID))
         {
             return(false);
         }
         return(true);
     }
     return(false);
 }