Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     return
         (AbsoluteMinimumPartSize.GetHashCode() ^
          AccountID.GetHashCode() ^
          APIURL.GetHashCode() ^
          ApplicationKey.GetHashCode() ^
          AuthorizationToken.GetHashCode() ^
          DownloadURL.GetHashCode() ^
          RecommendedPartSize.GetHashCode() ^
          SessionExpirationDate.GetHashCode());
 }
Ejemplo n.º 2
0
        public bool Equals(BackblazeB2AuthorizationSession other)
        {
            if (EqualsPreamble(other) == false)
            {
                return(false);
            }

            return
                (AbsoluteMinimumPartSize == other.AbsoluteMinimumPartSize &&
                 AccountID.Equals(other.AccountID, StringComparison.Ordinal) &&
                 APIURL.Equals(other.APIURL, StringComparison.Ordinal) &&
                 ApplicationKey.Equals(other.ApplicationKey, StringComparison.Ordinal) &&
                 AuthorizationToken.Equals(other.AuthorizationToken, StringComparison.Ordinal) &&
                 DownloadURL.Equals(other.DownloadURL, StringComparison.Ordinal) &&
                 RecommendedPartSize == other.RecommendedPartSize &&
                 SessionExpirationDate.Equals(other.SessionExpirationDate));
        }