예제 #1
0
        public virtual int CompareTo(HealthRecord other)
        {
            // не сравниваем содержимое записи
            if (other == null)
            {
                return(-1);
            }

            int res = Holder.CompareTo(other.Holder);

            if (res != 0)
            {
                return(res);
            }

            res = Ord.CompareTo(other.Ord);
            if (res != 0)
            {
                return(res);
            }

            res = UpdatedAt.CompareTo(other.UpdatedAt);
            if (res != 0)
            {
                return(res);
            }

            res = Doctor.CompareTo(other.Doctor);
            return(res);
        }
예제 #2
0
 public int CompareTo([AllowNull] IRemoteRepositoryModel other)
 {
     return(other != null?UpdatedAt.CompareTo(other.UpdatedAt) : 1);
 }
예제 #3
0
 public int CompareTo([AllowNull] IPullRequestModel other)
 {
     return(other != null?UpdatedAt.CompareTo(other.UpdatedAt) : 1);
 }