Here are the examples of the csharp api System.Collections.Generic.IEnumerable.SequenceEqual(System.Collections.Generic.IEnumerable) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4750 Examples
19
Source : Decrypter.cs
with MIT License
from 13xforever
with MIT License
from 13xforever
public override int Read( byte[] buffer, int offset, int count)
{
if (Position == inputStream.Length)
return 0;
var positionInSector = Position % sectorSize;
var resultCount = 0;
if (positionInSector > 0)
{
var len = (int)Math.Min(Math.Min(count, sectorSize - positionInSector), inputStream.Position - Position);
md5.TransformBlock(bufferedSector, (int)positionInSector, len, buffer, offset);
sha1.TransformBlock(bufferedSector, (int)positionInSector, len, buffer, offset);
sha256.TransformBlock(bufferedSector, (int)positionInSector, len, buffer, offset);
offset += len;
count -= len;
resultCount += len;
Position += len;
if (Position % sectorSize == 0)
SectorPosition++;
}
if (Position == inputStream.Length)
return resultCount;
int readCount;
do
{
readCount = inputStream.ReadExact(tmpSector, 0, sectorSize);
if (readCount < sectorSize)
Array.Clear(tmpSector, readCount, sectorSize - readCount);
var decryptedSector = tmpSector;
if (IsEncrypted(SectorPosition))
{
WasEncrypted = true;
if (readCount % 16 != 0)
{
Log.Debug($"Block has only {(readCount % 16) * 8} bits of data, reading raw sector...");
discStream.Seek(SectorPosition * sectorSize, SeekOrigin.Begin);
var newTmpSector = new byte[sectorSize];
discStream.ReadExact(newTmpSector, 0, sectorSize);
if (!newTmpSector.Take(readCount).SequenceEqual(tmpSector.Take(readCount)))
Log.Warn($"Filesystem data and raw data do not match for sector 0x{SectorPosition:x8}");
tmpSector = newTmpSector;
}
using var aesTransform = aes.CreateDecryptor(decryptionKey, GetSectorIV(SectorPosition));
decryptedSector = aesTransform.TransformFinalBlock(tmpSector, 0, sectorSize);
}
else
WasUnprotected = true;
if (count >= readCount)
{
md5.TransformBlock(decryptedSector, 0, readCount, buffer, offset);
sha1.TransformBlock(decryptedSector, 0, readCount, buffer, offset);
sha256.TransformBlock(decryptedSector, 0, readCount, buffer, offset);
offset += readCount;
count -= readCount;
resultCount += readCount;
Position += readCount;
SectorPosition++;
}
else // partial sector read
{
Buffer.BlockCopy(decryptedSector, 0, bufferedSector, 0, sectorSize);
md5.TransformBlock(decryptedSector, 0, count, buffer, offset);
sha1.TransformBlock(decryptedSector, 0, count, buffer, offset);
sha256.TransformBlock(decryptedSector, 0, count, buffer, offset);
offset += count;
count = 0;
resultCount += count;
Position += count;
}
} while (count > 0 && readCount == sectorSize);
return resultCount;
}
19
Source : Dumper.cs
with MIT License
from 13xforever
with MIT License
from 13xforever
public async Task FindDiscKeyAsync(string discKeyCachePath)
{
// reload disc keys
try
{
foreach (var keyProvider in DiscKeyProviders)
{
Log.Trace($"Getting keys from {keyProvider.GetType().Name}...");
var newKeys = await keyProvider.EnumerateAsync(discKeyCachePath, ProductCode, Cts.Token).ConfigureAwait(false);
Log.Trace($"Got {newKeys.Count} keys");
lock (AllKnownDiscKeys)
{
foreach (var keyInfo in newKeys)
{
try
{
if (!AllKnownDiscKeys.TryGetValue(keyInfo.DecryptedKeyId, out var duplicates))
AllKnownDiscKeys[keyInfo.DecryptedKeyId] = duplicates = new HashSet<DiscKeyInfo>();
duplicates.Add(keyInfo);
}
catch (Exception e)
{
Log.Error(e);
}
}
}
}
}
catch (Exception ex)
{
Log.Error(ex, "Failed to load disc keys");
}
// check if user provided something new since the last attempt
var untestedKeys = new HashSet<string>();
lock (AllKnownDiscKeys)
untestedKeys.UnionWith(AllKnownDiscKeys.Keys);
untestedKeys.ExceptWith(TestedDiscKeys);
if (untestedKeys.Count == 0)
throw new KeyNotFoundException("No valid disc decryption key was found");
// select physical device
string physicalDevice = null;
List<string> physicalDrives = new List<string>();
Log.Trace("Trying to enumerate physical drives...");
try
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
physicalDrives = EnumeratePhysicalDrivesWindows();
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
physicalDrives = EnumeratePhysicalDrivesLinux();
else
throw new NotImplementedException("Current OS is not supported");
}
catch (Exception e)
{
Log.Error(e);
throw;
}
Log.Debug($"Found {physicalDrives.Count} physical drives");
if (physicalDrives.Count == 0)
throw new InvalidOperationException("No optical drives were found");
foreach (var drive in physicalDrives)
{
try
{
Log.Trace($"Checking physical drive {drive}...");
using var discStream = File.Open(drive, FileMode.Open, FileAccess.Read, FileShare.Read);
var tmpDiscReader = new CDReader(discStream, true, true);
if (tmpDiscReader.FileExists("PS3_DISC.SFB"))
{
Log.Trace("Found PS3_DISC.SFB, getting sector data...");
var discSfbInfo = tmpDiscReader.GetFileInfo("PS3_DISC.SFB");
if (discSfbInfo.Length == discSfbData.Length)
{
var buf = new byte[discSfbData.Length];
var sector = tmpDiscReader.PathToClusters(discSfbInfo.FullName).First().Offset;
Log.Trace($"PS3_DISC.SFB sector number is {sector}, reading content...");
discStream.Seek(sector * tmpDiscReader.ClusterSize, SeekOrigin.Begin);
discStream.ReadExact(buf, 0, buf.Length);
if (buf.SequenceEqual(discSfbData))
{
physicalDevice = drive;
break;
}
Log.Trace("SFB content check failed, skipping the drive");
}
}
}
catch (Exception e)
{
Log.Debug($"Skipping drive {drive}: {e.Message}");
}
}
if (physicalDevice == null)
throw new AccessViolationException("Couldn't get physical access to the drive");
Log.Debug($"Selected physical drive {physicalDevice}");
driveStream = File.Open(physicalDevice, FileMode.Open, FileAccess.Read, FileShare.Read);
// find disc license file
discReader = new CDReader(driveStream, true, true);
FileRecord detectionRecord = null;
byte[] expectedBytes = null;
try
{
foreach (var path in Detectors.Keys)
if (discReader.FileExists(path))
{
var clusterRange = discReader.PathToClusters(path);
detectionRecord = new FileRecord(path, clusterRange.Min(r => r.Offset), discReader.GetFileLength(path));
expectedBytes = Detectors[path];
if (detectionRecord.Length == 0)
continue;
Log.Debug($"Using {path} for disc key detection");
break;
}
}
catch (Exception e)
{
Log.Error(e);
}
if (detectionRecord == null)
throw new FileNotFoundException("Couldn't find a single disc key detection file, please report");
if (Cts.IsCancellationRequested)
return;
SectorSize = discReader.ClusterSize;
// select decryption key
driveStream.Seek(detectionRecord.StartSector * discReader.ClusterSize, SeekOrigin.Begin);
detectionSector = new byte[discReader.ClusterSize];
detectionBytesExpected = expectedBytes;
sectorIV = Decrypter.GetSectorIV(detectionRecord.StartSector);
Log.Debug($"Initialized {nameof(sectorIV)} ({sectorIV?.Length * 8} bit) for sector {detectionRecord.StartSector}: {sectorIV?.ToHexString()}");
driveStream.ReadExact(detectionSector, 0, detectionSector.Length);
string discKey = null;
try
{
discKey = untestedKeys.AsParallel().FirstOrDefault(k => !Cts.IsCancellationRequested && IsValidDiscKey(k));
}
catch (Exception e)
{
Log.Error(e);
}
if (discKey == null)
throw new KeyNotFoundException("No valid disc decryption key was found");
if (Cts.IsCancellationRequested)
return;
lock (AllKnownDiscKeys)
AllKnownDiscKeys.TryGetValue(discKey, out allMatchingKeys);
var discKeyInfo = allMatchingKeys?.First();
DiscKeyFilename = Path.GetFileName(discKeyInfo?.FullPath);
DiscKeyType = discKeyInfo?.KeyType ?? default;
}
19
Source : PkgChecker.cs
with MIT License
from 13xforever
with MIT License
from 13xforever
internal static async Task CheckAsync(List<FileInfo> pkgList, int fnameWidth, int sigWidth, int csumWidth, int allCsumsWidth, CancellationToken cancellationToken)
{
TotalFileSize = pkgList.Sum(i => i.Length);
var buf = new byte[1024 * 1024]; // 1 MB
foreach (var item in pkgList)
{
Write($"{item.Name.Trim(fnameWidth).PadRight(fnameWidth)} ");
try
{
CurrentPadding = sigWidth;
CurrentFileSize = item.Length;
if (item.Length < 0xC0 + 0x20) // header + csum at the end
{
Write("invalid pkg".PadLeft(allCsumsWidth) + Environment.NewLine, ConsoleColor.Red);
continue;
}
using var file = File.Open(item.FullName, FileMode.Open, FileAccess.Read, FileShare.Read);
var header = new byte[0xc0];
file.ReadExact(header);
byte[] sha1Sum = null;
using (var sha1 = SHA1.Create())
sha1Sum = sha1.ComputeHash(header, 0, 0x80);
if (!ValidateCmac(header))
Write("cmac".PadLeft(sigWidth) + " ", ConsoleColor.Red);
else if (!ValidateHash(header, sha1Sum))
Write("sha1".PadLeft(sigWidth) + " ", ConsoleColor.Yellow);
else if (!ValidateSigNew(header, sha1Sum))
{
if (!ValidateSigOld(header, sha1Sum))
Write("ecdsa".PadLeft(sigWidth) + " ", ConsoleColor.Red);
else
Write("ok (old)".PadLeft(sigWidth) + " ", ConsoleColor.Yellow);
}
else
Write("ok".PadLeft(sigWidth) + " ", ConsoleColor.Green);
CurrentPadding = csumWidth;
file.Seek(0, SeekOrigin.Begin);
byte[] hash;
using (var sha1 = SHA1.Create())
{
var dataLengthToHash = CurrentFileSize - 0x20;
int read;
do
{
read = await file.ReadAsync(buf, 0, (int)Math.Min(buf.Length, dataLengthToHash - CurrentFileProcessedBytes), cancellationToken).ConfigureAwait(false);
CurrentFileProcessedBytes += read;
sha1.TransformBlock(buf, 0, read, null, 0);
} while (read > 0 && CurrentFileProcessedBytes < dataLengthToHash && !cancellationToken.IsCancellationRequested);
sha1.TransformFinalBlock(buf, 0, 0);
hash = sha1.Hash;
}
if (cancellationToken.IsCancellationRequested)
return;
var expectedHash = new byte[0x14];
file.ReadExact(expectedHash);
CurrentFileProcessedBytes += 0x20;
if (!expectedHash.SequenceEqual(hash))
Write("fail".PadLeft(csumWidth) + Environment.NewLine, ConsoleColor.Red);
else
Write("ok".PadLeft(csumWidth) + Environment.NewLine, ConsoleColor.Green);
}
catch (Exception e)
{
Write("Error" + Environment.NewLine + e.Message + Environment.NewLine, ConsoleColor.Red);
}
finally
{
ProcessedBytes += CurrentFileSize;
CurrentFileProcessedBytes = 0;
CurrentPadding = 0;
}
if (cancellationToken.IsCancellationRequested)
return;
}
}
19
Source : OrderByClause.cs
with MIT License
from 71
with MIT License
from 71
public OrderByClause Update(IEnumerable<OrderingExpression> orderings)
{
if (orderings.SequenceEqual(Orderings))
return this;
return Expressive.OrderBy(orderings);
}
19
Source : FormatExpression.cs
with MIT License
from 71
with MIT License
from 71
public FormatExpression Update(string format, IEnumerable<Expression> expressions)
{
Requires.NotNull(expressions, nameof(expressions));
if (format == Format && expressions.SequenceEqual(Expressions))
return this;
return Expressive.Format(format, expressions);
}
19
Source : UnityARBuildPostprocessor.cs
with MIT License
from 734843327
with MIT License
from 734843327
static void UpdateDefinesInFile(string file, Dictionary<string, bool> valuesToUpdate)
{
string[] src = File.ReadAllLines(file);
var copy = (string[])src.Clone();
foreach (var kvp in valuesToUpdate)
AddOrReplaceCppMacro(ref copy, kvp.Key, kvp.Value ? "1" : "0");
if (!copy.SequenceEqual(src))
File.WriteAllLines(file, copy);
}
19
Source : Vector.cs
with MIT License
from a1q123456
with MIT License
from a1q123456
public override bool Equals(object obj)
{
if (obj is Vector<T> en)
{
return IsFixedSize == en.IsFixedSize && en.SequenceEqual(this);
}
return base.Equals(obj);
}
19
Source : Vector.cs
with MIT License
from a1q123456
with MIT License
from a1q123456
public bool Equals(List<T> other)
{
return other.SequenceEqual(this);
}
19
Source : TestAmf3Reader.cs
with MIT License
from a1q123456
with MIT License
from a1q123456
public bool Equals(TestCls other)
{
return T1 == other.T1 && T2 == other.T2 && T3 == other.T3 && (t4 != null ? t4.Equals(other.t4) : t4 == other.t4) && _dynamicFields.SequenceEqual(other._dynamicFields);
}
19
Source : Amf3ClassTraits.cs
with MIT License
from a1q123456
with MIT License
from a1q123456
public bool Equals(Amf3ClreplacedTraits traits)
{
return traits.ClreplacedType == ClreplacedType &&
traits.ClreplacedName == ClreplacedName &&
traits.Members.SequenceEqual(Members);
}
19
Source : Game.cs
with Microsoft Public License
from achimismaili
with Microsoft Public License
from achimismaili
public bool Equals(Game other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
for (int i = 0; i < 3; i++)
{
if(!_board[i].SequenceEqual(other._board[i]))
return false;
}
return true;
}
19
Source : X509CertificateChainValidator.cs
with MIT License
from ActiveLogin
with MIT License
from ActiveLogin
private static bool IsValidChain(X509Certificate2 certificateAuthority, X509Certificate certificate)
{
using (var chain = GetChain(certificateAuthority))
{
var isChainValid = chain.Build(new X509Certificate2(certificate));
var chainRoot = chain.ChainElements[^1].Certificate;
var isChainRootCertificateAuthority = chainRoot.RawData.SequenceEqual(certificateAuthority.RawData);
return isChainValid && isChainRootCertificateAuthority;
}
}
19
Source : Extensions.cs
with MIT License
from Adoxio
with MIT License
from Adoxio
private static JObject DecodeSignedRequest(string signedRequest, string secret)
{
var parts = signedRequest.Split('.');
if (parts.Length != 2) return null;
var encodedSig = parts[0];
var payload = parts[1];
if (string.IsNullOrWhiteSpace(encodedSig) || string.IsNullOrWhiteSpace(payload)) return null;
// verify the signature by hashing the payload with the secret
var key = Encoding.UTF8.GetBytes(secret);
var buffer = Encoding.UTF8.GetBytes(payload);
using (var crypto = new HMACSHA256(key))
{
var hash = crypto.ComputeHash(buffer);
var decodedSig = Decode(encodedSig);
if (hash.Length != decodedSig.Length || !hash.SequenceEqual(decodedSig)) return null;
var decodedPayload = Decode(payload);
var json = Encoding.UTF8.GetString(decodedPayload);
var token = JObject.Parse(json);
return token;
}
}
19
Source : FsBufferedReaderWriter.cs
with MIT License
from Adoxio
with MIT License
from Adoxio
protected void ReadHeader()
{
try
{
var fs = this.fileStream;
// Check header
byte[] fileMarker = new byte[this.headerMarker.Length];
fs.Seek(0, SeekOrigin.Begin);
fs.Read(fileMarker, 0, fileMarker.Length);
if (!fileMarker.SequenceEqual(this.headerMarker))
{
throw new InvalidOperationException(
string.Format("File {0} does not looks like search index",
this.File.FullName));
}
// Read version
var version = fs.ReadByte(); // Not in use right now. Just in case for required next changes
this.lengthOffset = fs.Position;
this.dataOffset = this.lengthOffset + sizeof(long);
}
catch (Exception e)
{
throw new InvalidOperationException("Not able to read keys from file", e);
}
}
19
Source : CheckoutRedirectAction.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(CheckoutRedirectAction input)
{
if (input == null)
return false;
return
(
this.Data == input.Data ||
this.Data != null &&
input.Data != null &&
this.Data.SequenceEqual(input.Data)
) &&
(
this.Method == input.Method ||
this.Method != null &&
this.Method.Equals(input.Method)
) &&
(
this.PaymentData == input.PaymentData ||
this.PaymentData != null &&
this.PaymentData.Equals(input.PaymentData)
) &&
(
this.PaymentMethodType == input.PaymentMethodType ||
this.PaymentMethodType != null &&
this.PaymentMethodType.Equals(input.PaymentMethodType)
) &&
(
this.Url == input.Url ||
this.Url != null &&
this.Url.Equals(input.Url)
);
}
19
Source : CreatePaymentLinkRequest.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(CreatePaymentLinkRequest input)
{
if (input == null)
return false;
return
(
this.AllowedPaymentMethods == input.AllowedPaymentMethods ||
this.AllowedPaymentMethods != null &&
input.AllowedPaymentMethods != null &&
this.AllowedPaymentMethods.SequenceEqual(input.AllowedPaymentMethods)
) &&
(
this.Amount == input.Amount ||
this.Amount != null &&
this.Amount.Equals(input.Amount)
) &&
(
this.ApplicationInfo == input.ApplicationInfo ||
this.ApplicationInfo != null &&
this.ApplicationInfo.Equals(input.ApplicationInfo)
) &&
(
this.BillingAddress == input.BillingAddress ||
this.BillingAddress != null &&
this.BillingAddress.Equals(input.BillingAddress)
) &&
(
this.BlockedPaymentMethods == input.BlockedPaymentMethods ||
this.BlockedPaymentMethods != null &&
input.BlockedPaymentMethods != null &&
this.BlockedPaymentMethods.SequenceEqual(input.BlockedPaymentMethods)
) &&
(
this.CountryCode == input.CountryCode ||
this.CountryCode != null &&
this.CountryCode.Equals(input.CountryCode)
) &&
(
this.DeliverAt == input.DeliverAt ||
this.DeliverAt != null &&
this.DeliverAt.Equals(input.DeliverAt)
) &&
(
this.DeliveryAddress == input.DeliveryAddress ||
this.DeliveryAddress != null &&
this.DeliveryAddress.Equals(input.DeliveryAddress)
) &&
(
this.Description == input.Description ||
this.Description != null &&
this.Description.Equals(input.Description)
) &&
(
this.ExpiresAt == input.ExpiresAt ||
this.ExpiresAt != null &&
this.ExpiresAt.Equals(input.ExpiresAt)
) &&
(
this.InstallmentOptions == input.InstallmentOptions ||
this.InstallmentOptions != null &&
input.InstallmentOptions != null &&
this.InstallmentOptions.SequenceEqual(input.InstallmentOptions)
) &&
(
this.LineItems == input.LineItems ||
this.LineItems != null &&
input.LineItems != null &&
this.LineItems.SequenceEqual(input.LineItems)
) &&
(
this.MerchantAccount == input.MerchantAccount ||
this.MerchantAccount != null &&
this.MerchantAccount.Equals(input.MerchantAccount)
) &&
(
this.MerchantOrderReference == input.MerchantOrderReference ||
this.MerchantOrderReference != null &&
this.MerchantOrderReference.Equals(input.MerchantOrderReference)
) &&
(
this.Metadata == input.Metadata ||
this.Metadata != null &&
input.Metadata != null &&
this.Metadata.SequenceEqual(input.Metadata)
) &&
(
this.RecurringProcessingModel == input.RecurringProcessingModel ||
this.RecurringProcessingModel != null &&
this.RecurringProcessingModel.Equals(input.RecurringProcessingModel)
) &&
(
this.Reference == input.Reference ||
this.Reference != null &&
this.Reference.Equals(input.Reference)
) &&
(
this.ReturnUrl == input.ReturnUrl ||
this.ReturnUrl != null &&
this.ReturnUrl.Equals(input.ReturnUrl)
) &&
(
this.Reusable == input.Reusable ||
this.Reusable != null &&
this.Reusable.Equals(input.Reusable)
) &&
(
this.RiskData == input.RiskData ||
this.RiskData != null &&
this.RiskData.Equals(input.RiskData)
) &&
(
this.ShopperEmail == input.ShopperEmail ||
this.ShopperEmail != null &&
this.ShopperEmail.Equals(input.ShopperEmail)
) &&
(
this.ShopperLocale == input.ShopperLocale ||
this.ShopperLocale != null &&
this.ShopperLocale.Equals(input.ShopperLocale)
) &&
(
this.ShopperName == input.ShopperName ||
this.ShopperName != null &&
this.ShopperName.Equals(input.ShopperName)
) &&
(
this.ShopperReference == input.ShopperReference ||
this.ShopperReference != null &&
this.ShopperReference.Equals(input.ShopperReference)
) &&
(
this.Splits == input.Splits ||
this.Splits != null &&
input.Splits != null &&
this.Splits.SequenceEqual(input.Splits)
) &&
(
this.Store == input.Store ||
this.Store != null &&
this.Store.Equals(input.Store)
) &&
(
this.StorePaymentMethod == input.StorePaymentMethod ||
this.StorePaymentMethod != null &&
this.StorePaymentMethod.Equals(input.StorePaymentMethod)
);
}
19
Source : FraudResult.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(FraudResult input)
{
if (input == null)
return false;
return
(
this.AccountScore == input.AccountScore ||
(this.AccountScore != null &&
this.AccountScore.Equals(input.AccountScore))
) &&
(
this.Results == input.Results ||
this.Results != null &&
this.Results.SequenceEqual(input.Results)
);
}
19
Source : PaymentDetailsResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(PaymentDetailsResponse input)
{
if (input == null)
return false;
return
(
this.AdditionalData == input.AdditionalData ||
this.AdditionalData != null &&
input.AdditionalData != null &&
this.AdditionalData.SequenceEqual(input.AdditionalData)
) &&
(
this.Amount == input.Amount ||
(this.Amount != null &&
this.Amount.Equals(input.Amount))
) &&
(
this.DonationToken == input.DonationToken ||
(this.DonationToken != null &&
this.DonationToken.Equals(input.DonationToken))
) &&
(
this.FraudResult == input.FraudResult ||
(this.FraudResult != null &&
this.FraudResult.Equals(input.FraudResult))
) &&
(
this.MerchantReference == input.MerchantReference ||
(this.MerchantReference != null &&
this.MerchantReference.Equals(input.MerchantReference))
) &&
(
this.Order == input.Order ||
(this.Order != null &&
this.Order.Equals(input.Order))
) &&
(
this.PaymentMethod == input.PaymentMethod ||
(this.PaymentMethod != null &&
this.PaymentMethod.Equals(input.PaymentMethod))
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.RefusalReason == input.RefusalReason ||
(this.RefusalReason != null &&
this.RefusalReason.Equals(input.RefusalReason))
) &&
(
this.RefusalReasonCode == input.RefusalReasonCode ||
(this.RefusalReasonCode != null &&
this.RefusalReasonCode.Equals(input.RefusalReasonCode))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
) &&
(
this.ShopperLocale == input.ShopperLocale ||
(this.ShopperLocale != null &&
this.ShopperLocale.Equals(input.ShopperLocale))
) &&
(
this.ThreeDS2Result == input.ThreeDS2Result ||
(this.ThreeDS2Result != null &&
this.ThreeDS2Result.Equals(input.ThreeDS2Result))
);
}
19
Source : PaymentLinkResource.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(PaymentLinkResource input)
{
if (input == null)
return false;
return
(
this.AllowedPaymentMethods == input.AllowedPaymentMethods ||
this.AllowedPaymentMethods != null &&
input.AllowedPaymentMethods != null &&
this.AllowedPaymentMethods.SequenceEqual(input.AllowedPaymentMethods)
) &&
(
this.Amount == input.Amount ||
this.Amount != null &&
this.Amount.Equals(input.Amount)
) &&
(
this.ApplicationInfo == input.ApplicationInfo ||
this.ApplicationInfo != null &&
this.ApplicationInfo.Equals(input.ApplicationInfo)
) &&
(
this.BillingAddress == input.BillingAddress ||
this.BillingAddress != null &&
this.BillingAddress.Equals(input.BillingAddress)
) &&
(
this.BlockedPaymentMethods == input.BlockedPaymentMethods ||
this.BlockedPaymentMethods != null &&
input.BlockedPaymentMethods != null &&
this.BlockedPaymentMethods.SequenceEqual(input.BlockedPaymentMethods)
) &&
(
this.CountryCode == input.CountryCode ||
this.CountryCode != null &&
this.CountryCode.Equals(input.CountryCode)
) &&
(
this.DeliverAt == input.DeliverAt ||
this.DeliverAt != null &&
this.DeliverAt.Equals(input.DeliverAt)
) &&
(
this.DeliveryAddress == input.DeliveryAddress ||
this.DeliveryAddress != null &&
this.DeliveryAddress.Equals(input.DeliveryAddress)
) &&
(
this.Description == input.Description ||
this.Description != null &&
this.Description.Equals(input.Description)
) &&
(
this.ExpiresAt == input.ExpiresAt ||
this.ExpiresAt != null &&
this.ExpiresAt.Equals(input.ExpiresAt)
) &&
(
this.Id == input.Id ||
this.Id != null &&
this.Id.Equals(input.Id)
) &&
(
this.LineItems == input.LineItems ||
this.LineItems != null &&
input.LineItems != null &&
this.LineItems.SequenceEqual(input.LineItems)
) &&
(
this.MerchantAccount == input.MerchantAccount ||
this.MerchantAccount != null &&
this.MerchantAccount.Equals(input.MerchantAccount)
) &&
(
this.MerchantOrderReference == input.MerchantOrderReference ||
this.MerchantOrderReference != null &&
this.MerchantOrderReference.Equals(input.MerchantOrderReference)
) &&
(
this.RecurringProcessingModel == input.RecurringProcessingModel ||
this.RecurringProcessingModel != null &&
this.RecurringProcessingModel.Equals(input.RecurringProcessingModel)
) &&
(
this.Reference == input.Reference ||
this.Reference != null &&
this.Reference.Equals(input.Reference)
) &&
(
this.ReturnUrl == input.ReturnUrl ||
this.ReturnUrl != null &&
this.ReturnUrl.Equals(input.ReturnUrl)
) &&
(
this.Reusable == input.Reusable ||
this.Reusable != null &&
this.Reusable.Equals(input.Reusable)
) &&
(
this.RiskData == input.RiskData ||
this.RiskData != null &&
this.RiskData.Equals(input.RiskData)
) &&
(
this.ShopperEmail == input.ShopperEmail ||
this.ShopperEmail != null &&
this.ShopperEmail.Equals(input.ShopperEmail)
) &&
(
this.ShopperLocale == input.ShopperLocale ||
this.ShopperLocale != null &&
this.ShopperLocale.Equals(input.ShopperLocale)
) &&
(
this.ShopperName == input.ShopperName ||
this.ShopperName != null &&
this.ShopperName.Equals(input.ShopperName)
) &&
(
this.ShopperReference == input.ShopperReference ||
this.ShopperReference != null &&
this.ShopperReference.Equals(input.ShopperReference)
) &&
(
this.Splits == input.Splits ||
this.Splits != null &&
input.Splits != null &&
this.Splits.SequenceEqual(input.Splits)
) &&
(
this.Status == input.Status ||
this.Status != null &&
this.Status.Equals(input.Status)
) &&
(
this.Store == input.Store ||
this.Store != null &&
this.Store.Equals(input.Store)
) &&
(
this.StorePaymentMethod == input.StorePaymentMethod ||
this.StorePaymentMethod != null &&
this.StorePaymentMethod.Equals(input.StorePaymentMethod)
) &&
(
this.Url == input.Url ||
this.Url != null &&
this.Url.Equals(input.Url)
);
}
19
Source : PaymentMethodsRequest.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(PaymentMethodsRequest input)
{
if (input == null)
return false;
return
(
this.AdditionalData == input.AdditionalData ||
this.AdditionalData != null &&
this.AdditionalData.Equals(input.AdditionalData)
) &&
(
this.AllowedPaymentMethods == input.AllowedPaymentMethods ||
this.AllowedPaymentMethods != null &&
input.AllowedPaymentMethods != null &&
this.AllowedPaymentMethods.SequenceEqual(input.AllowedPaymentMethods)
) &&
(
this.Amount == input.Amount ||
this.Amount != null &&
this.Amount.Equals(input.Amount)
) &&
(
this.BlockedPaymentMethods == input.BlockedPaymentMethods ||
this.BlockedPaymentMethods != null &&
input.BlockedPaymentMethods != null &&
this.BlockedPaymentMethods.SequenceEqual(input.BlockedPaymentMethods)
) &&
(
this.Channel == input.Channel ||
this.Channel != null &&
this.Channel.Equals(input.Channel)
) &&
(
this.CountryCode == input.CountryCode ||
this.CountryCode != null &&
this.CountryCode.Equals(input.CountryCode)
) &&
(
this.MerchantAccount == input.MerchantAccount ||
this.MerchantAccount != null &&
this.MerchantAccount.Equals(input.MerchantAccount)
) &&
(
this.Order == input.Order ||
this.Order != null &&
this.Order.Equals(input.Order)
) &&
(
this.ShopperLocale == input.ShopperLocale ||
this.ShopperLocale != null &&
this.ShopperLocale.Equals(input.ShopperLocale)
) &&
(
this.ShopperReference == input.ShopperReference ||
this.ShopperReference != null &&
this.ShopperReference.Equals(input.ShopperReference)
) &&
(
this.SplitCardFundingSources == input.SplitCardFundingSources ||
this.SplitCardFundingSources != null &&
this.SplitCardFundingSources.Equals(input.SplitCardFundingSources)
) &&
(
this.Store == input.Store ||
this.Store != null &&
this.Store.Equals(input.Store)
);
}
19
Source : DeviceRenderOptions.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(DeviceRenderOptions input)
{
if (input == null)
return false;
return
(
this.SdkInterface == input.SdkInterface ||
this.SdkInterface != null &&
this.SdkInterface.Equals(input.SdkInterface)
) &&
(
this.SdkUiType == input.SdkUiType ||
this.SdkUiType != null &&
input.SdkUiType != null &&
this.SdkUiType.SequenceEqual(input.SdkUiType)
);
}
19
Source : InputDetail.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(InputDetail input)
{
if (input == null)
return false;
return
(
this.Configuration == input.Configuration ||
this.Configuration != null &&
input.Configuration != null &&
this.Configuration.SequenceEqual(input.Configuration)
) &&
(
this.Details == input.Details ||
this.Details != null &&
input.Details != null &&
this.Details.SequenceEqual(input.Details)
) &&
(
this.InputDetails == input.InputDetails ||
this.InputDetails != null &&
input.InputDetails != null &&
this.InputDetails.SequenceEqual(input.InputDetails)
) &&
(
this.ItemSearchUrl == input.ItemSearchUrl ||
this.ItemSearchUrl != null &&
this.ItemSearchUrl.Equals(input.ItemSearchUrl)
) &&
(
this.Items == input.Items ||
this.Items != null &&
input.Items != null &&
this.Items.SequenceEqual(input.Items)
) &&
(
this.Key == input.Key ||
this.Key != null &&
this.Key.Equals(input.Key)
) &&
(
this.Optional == input.Optional ||
this.Optional != null &&
this.Optional.Equals(input.Optional)
) &&
(
this.Type == input.Type ||
this.Type != null &&
this.Type.Equals(input.Type)
) &&
(
this.Value == input.Value ||
this.Value != null &&
this.Value.Equals(input.Value)
);
}
19
Source : InstallmentOption.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(InstallmentOption input)
{
if (input == null)
return false;
return
(
this.MaxValue == input.MaxValue ||
this.MaxValue != null &&
this.MaxValue.Equals(input.MaxValue)
) &&
(
this.Plans == input.Plans ||
this.Plans != null &&
input.Plans != null &&
this.Plans.SequenceEqual(input.Plans)
);
}
19
Source : CheckoutSDKAction.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(CheckoutSDKAction input)
{
if (input == null)
return false;
return
(
this.PaymentData == input.PaymentData ||
this.PaymentData != null &&
this.PaymentData.Equals(input.PaymentData)
) &&
(
this.PaymentMethodType == input.PaymentMethodType ||
this.PaymentMethodType != null &&
this.PaymentMethodType.Equals(input.PaymentMethodType)
) &&
(
this.SdkData == input.SdkData ||
this.SdkData != null &&
input.SdkData != null &&
this.SdkData.SequenceEqual(input.SdkData)
) &&
(
this.Url == input.Url ||
this.Url != null &&
this.Url.Equals(input.Url)
);
}
19
Source : CheckoutUtilityRequest.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(CheckoutUtilityRequest input)
{
if (input == null)
return false;
return
this.OriginDomains == input.OriginDomains ||
this.OriginDomains != null &&
input.OriginDomains != null &&
this.OriginDomains.SequenceEqual(input.OriginDomains);
}
19
Source : CheckoutUtilityResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(CheckoutUtilityResponse input)
{
if (input == null)
return false;
return
this.OriginKeys == input.OriginKeys ||
this.OriginKeys != null &&
input.OriginKeys != null &&
this.OriginKeys.SequenceEqual(input.OriginKeys);
}
19
Source : PaymentMethod.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(PaymentMethod input)
{
if (input == null)
return false;
return
(
this.Brand == input.Brand ||
(this.Brand != null &&
this.Brand.Equals(input.Brand))
) &&
(
this.Brands == input.Brands ||
this.Brands != null &&
input.Brands != null &&
this.Brands.SequenceEqual(input.Brands)
) &&
(
this.Configuration == input.Configuration ||
this.Configuration != null &&
input.Configuration != null &&
this.Configuration.SequenceEqual(input.Configuration)
) &&
(
this.FundingSource == input.FundingSource ||
(this.FundingSource != null &&
this.FundingSource.Equals(input.FundingSource))
) &&
(
this.Group == input.Group ||
(this.Group != null &&
this.Group.Equals(input.Group))
) &&
(
this.InputDetails == input.InputDetails ||
this.InputDetails != null &&
input.InputDetails != null &&
this.InputDetails.SequenceEqual(input.InputDetails)
) &&
(
this.Issuers == input.Issuers ||
this.Issuers != null &&
input.Issuers != null &&
this.Issuers.SequenceEqual(input.Issuers)
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.Type == input.Type ||
(this.Type != null &&
this.Type.Equals(input.Type))
);
}
19
Source : PaymentMethodsResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(PaymentMethodsResponse input)
{
if (input == null)
return false;
return
(
this.PaymentMethods == input.PaymentMethods ||
this.PaymentMethods != null &&
input.PaymentMethods != null &&
this.PaymentMethods.SequenceEqual(input.PaymentMethods)
) &&
(
this.StoredPaymentMethods == input.StoredPaymentMethods ||
this.StoredPaymentMethods != null &&
input.StoredPaymentMethods != null &&
this.StoredPaymentMethods.SequenceEqual(input.StoredPaymentMethods)
);
}
19
Source : PaymentSessionResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(PaymentSessionResponse input)
{
if (input == null)
return false;
return
(
this.PaymentSession == input.PaymentSession ||
this.PaymentSession != null &&
this.PaymentSession.Equals(input.PaymentSession)
) &&
(
this.RecurringDetails == input.RecurringDetails ||
this.RecurringDetails != null &&
input.RecurringDetails != null &&
this.RecurringDetails.SequenceEqual(input.RecurringDetails)
);
}
19
Source : RecurringDetail.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(RecurringDetail input)
{
if (input == null)
return false;
return
(
this.Brand == input.Brand ||
this.Brand != null &&
this.Brand.Equals(input.Brand)
) &&
(
this.Brands == input.Brands ||
this.Brands != null &&
input.Brands != null &&
this.Brands.SequenceEqual(input.Brands)
) &&
(
this.Configuration == input.Configuration ||
this.Configuration != null &&
input.Configuration != null &&
this.Configuration.SequenceEqual(input.Configuration)
) &&
(
this.Details == input.Details ||
this.Details != null &&
input.Details != null &&
this.Details.SequenceEqual(input.Details)
) &&
(
this.FundingSource == input.FundingSource ||
this.FundingSource != null &&
this.FundingSource.Equals(input.FundingSource)
) &&
(
this.Group == input.Group ||
this.Group != null &&
this.Group.Equals(input.Group)
) &&
(
this.InputDetails == input.InputDetails ||
this.InputDetails != null &&
input.InputDetails != null &&
this.InputDetails.SequenceEqual(input.InputDetails)
) &&
(
this.Name == input.Name ||
this.Name != null &&
this.Name.Equals(input.Name)
) &&
(
this.RecurringDetailReference == input.RecurringDetailReference ||
this.RecurringDetailReference != null &&
this.RecurringDetailReference.Equals(input.RecurringDetailReference)
) &&
(
this.StoredDetails == input.StoredDetails ||
this.StoredDetails != null &&
this.StoredDetails.Equals(input.StoredDetails)
) &&
(
this.Type == input.Type ||
this.Type != null &&
this.Type.Equals(input.Type)
);
}
19
Source : Redirect.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(Redirect input)
{
if (input == null)
return false;
return
(
this.Data == input.Data ||
this.Data != null &&
input.Data != null &&
this.Data.SequenceEqual(input.Data)
) &&
(
this.Method == input.Method ||
this.Method != null &&
this.Method.Equals(input.Method)
) &&
(
this.Url == input.Url ||
this.Url != null &&
this.Url.Equals(input.Url)
);
}
19
Source : PaymentResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(PaymentResponse input)
{
if (input == null)
return false;
return
(
this.Action == input.Action ||
this.Action != null &&
this.Action.Equals(input.Action)
) &&
(
this.AdditionalData == input.AdditionalData ||
this.AdditionalData != null &&
this.AdditionalData.Equals(input.AdditionalData)
) &&
(
this.Amount == input.Amount ||
this.Amount != null &&
this.Amount.Equals(input.Amount)
) &&
(
this.Authentication == input.Authentication ||
this.Authentication != null &&
input.Authentication != null &&
this.Authentication.SequenceEqual(input.Authentication)
) &&
(
this.Details == input.Details ||
this.Details != null &&
input.Details != null &&
this.Details.SequenceEqual(input.Details)
) &&
(
this.DonationToken == input.DonationToken ||
this.DonationToken != null &&
this.DonationToken.Equals(input.DonationToken)
) &&
(
this.FraudResult == input.FraudResult ||
this.FraudResult != null &&
this.FraudResult.Equals(input.FraudResult)
) &&
(
this.MerchantReference == input.MerchantReference ||
this.MerchantReference != null &&
this.MerchantReference.Equals(input.MerchantReference)
) &&
(
this.Order == input.Order ||
this.Order != null &&
this.Order.Equals(input.Order)
) &&
(
this.OutputDetails == input.OutputDetails ||
this.OutputDetails != null &&
input.OutputDetails != null &&
this.OutputDetails.SequenceEqual(input.OutputDetails)
) &&
(
this.PaymentData == input.PaymentData ||
this.PaymentData != null &&
this.PaymentData.Equals(input.PaymentData)
) &&
(
this.PspReference == input.PspReference ||
this.PspReference != null &&
this.PspReference.Equals(input.PspReference)
) &&
(
this.Redirect == input.Redirect ||
this.Redirect != null &&
this.Redirect.Equals(input.Redirect)
) &&
(
this.RefusalReason == input.RefusalReason ||
this.RefusalReason != null &&
this.RefusalReason.Equals(input.RefusalReason)
) &&
(
this.RefusalReasonCode == input.RefusalReasonCode ||
this.RefusalReasonCode != null &&
this.RefusalReasonCode.Equals(input.RefusalReasonCode)
) &&
(
this.ResultCode == input.ResultCode ||
this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode)
);
}
19
Source : RiskData.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(RiskData input)
{
if (input == null)
return false;
return
(
this.ClientData == input.ClientData ||
this.ClientData != null &&
this.ClientData.Equals(input.ClientData)
) &&
(
this.CustomFields == input.CustomFields ||
this.CustomFields != null &&
input.CustomFields != null &&
this.CustomFields.SequenceEqual(input.CustomFields)
) &&
(
this.FraudOffset == input.FraudOffset ||
this.FraudOffset != null &&
this.FraudOffset.Equals(input.FraudOffset)
) &&
(
this.ProfileReference == input.ProfileReference ||
this.ProfileReference != null &&
this.ProfileReference.Equals(input.ProfileReference)
);
}
19
Source : StoredPaymentMethod.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(StoredPaymentMethod input)
{
if (input == null)
return false;
return
(
this.Brand == input.Brand ||
this.Brand != null &&
this.Brand.Equals(input.Brand)
) &&
(
this.ExpiryMonth == input.ExpiryMonth ||
this.ExpiryMonth != null &&
this.ExpiryMonth.Equals(input.ExpiryMonth)
) &&
(
this.ExpiryYear == input.ExpiryYear ||
this.ExpiryYear != null &&
this.ExpiryYear.Equals(input.ExpiryYear)
) &&
(
this.HolderName == input.HolderName ||
this.HolderName != null &&
this.HolderName.Equals(input.HolderName)
) &&
(
this.Id == input.Id ||
this.Id != null &&
this.Id.Equals(input.Id)
) &&
(
this.LastFour == input.LastFour ||
this.LastFour != null &&
this.LastFour.Equals(input.LastFour)
) &&
(
this.Name == input.Name ||
this.Name != null &&
this.Name.Equals(input.Name)
) &&
(
this.ShopperEmail == input.ShopperEmail ||
this.ShopperEmail != null &&
this.ShopperEmail.Equals(input.ShopperEmail)
) &&
(
this.SupportedShopperInteractions == input.SupportedShopperInteractions ||
this.SupportedShopperInteractions != null &&
input.SupportedShopperInteractions != null &&
this.SupportedShopperInteractions.SequenceEqual(input.SupportedShopperInteractions)
) &&
(
this.Type == input.Type ||
this.Type != null &&
this.Type.Equals(input.Type)
) &&
(
this.Iban == input.Iban ||
this.Iban != null &&
this.Iban.Equals(input.Iban)
) &&
(
this.OwnerName == input.OwnerName ||
this.OwnerName != null &&
this.OwnerName.Equals(input.OwnerName)
);
}
19
Source : BusinessDetails.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(BusinessDetails input)
{
if (input == null)
return false;
return
(
this.DoingBusinessAs == input.DoingBusinessAs ||
(this.DoingBusinessAs != null &&
this.DoingBusinessAs.Equals(input.DoingBusinessAs))
) &&
(
this.IncorporatedAt == input.IncorporatedAt ||
(this.IncorporatedAt != null &&
this.IncorporatedAt.Equals(input.IncorporatedAt))
) &&
(
this.LegalBusinessName == input.LegalBusinessName ||
(this.LegalBusinessName != null &&
this.LegalBusinessName.Equals(input.LegalBusinessName))
) &&
(
this.RegistrationNumber == input.RegistrationNumber ||
(this.RegistrationNumber != null &&
this.RegistrationNumber.Equals(input.RegistrationNumber))
) &&
(
this.Shareholders == input.Shareholders ||
this.Shareholders != null &&
input.Shareholders != null &&
this.Shareholders.SequenceEqual(input.Shareholders)
) &&
(
this.TaxId == input.TaxId ||
(this.TaxId != null &&
this.TaxId.Equals(input.TaxId))
);
}
19
Source : CloseAccountHolderResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(CloseAccountHolderResponse input)
{
if (input == null)
return false;
return
(
this.AccountHolderStatus == input.AccountHolderStatus ||
(this.AccountHolderStatus != null &&
this.AccountHolderStatus.Equals(input.AccountHolderStatus))
) &&
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
);
}
19
Source : CloseAccountResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(CloseAccountResponse input)
{
if (input == null)
return false;
return
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
);
}
19
Source : CreateAccountHolderResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(CreateAccountHolderResponse input)
{
if (input == null)
return false;
return
(
this.AccountCode == input.AccountCode ||
(this.AccountCode != null &&
this.AccountCode.Equals(input.AccountCode))
) &&
(
this.AccountHolderCode == input.AccountHolderCode ||
(this.AccountHolderCode != null &&
this.AccountHolderCode.Equals(input.AccountHolderCode))
) &&
(
this.AccountHolderDetails == input.AccountHolderDetails ||
(this.AccountHolderDetails != null &&
this.AccountHolderDetails.Equals(input.AccountHolderDetails))
) &&
(
this.AccountHolderStatus == input.AccountHolderStatus ||
(this.AccountHolderStatus != null &&
this.AccountHolderStatus.Equals(input.AccountHolderStatus))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
) &&
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.LegalEnreplacedy == input.LegalEnreplacedy ||
this.LegalEnreplacedy.Equals(input.LegalEnreplacedy)
) &&
(
this.PrimaryCurrency == input.PrimaryCurrency ||
(this.PrimaryCurrency != null &&
this.PrimaryCurrency.Equals(input.PrimaryCurrency))
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
) &&
(
this.Verification == input.Verification ||
(this.Verification != null &&
this.Verification.Equals(input.Verification))
);
}
19
Source : DeleteBankAccountRequest.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(DeleteBankAccountRequest input)
{
if (input == null)
return false;
return
(
this.AccountHolderCode == input.AccountHolderCode ||
(this.AccountHolderCode != null &&
this.AccountHolderCode.Equals(input.AccountHolderCode))
) &&
(
this.BankAccountUUIDs == input.BankAccountUUIDs ||
this.BankAccountUUIDs != null &&
input.BankAccountUUIDs != null &&
this.BankAccountUUIDs.SequenceEqual(input.BankAccountUUIDs)
);
}
19
Source : DeletePayoutMethodRequest.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(DeletePayoutMethodRequest input)
{
if (input == null)
return false;
return
(
this.AccountHolderCode == input.AccountHolderCode ||
(this.AccountHolderCode != null &&
this.AccountHolderCode.Equals(input.AccountHolderCode))
) &&
(
this.PayoutMethodCodes == input.PayoutMethodCodes ||
this.PayoutMethodCodes != null &&
input.PayoutMethodCodes != null &&
this.PayoutMethodCodes.SequenceEqual(input.PayoutMethodCodes)
);
}
19
Source : DeleteShareholderRequest.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(DeleteShareholderRequest input)
{
if (input == null)
return false;
return
(
this.AccountHolderCode == input.AccountHolderCode ||
(this.AccountHolderCode != null &&
this.AccountHolderCode.Equals(input.AccountHolderCode))
) &&
(
this.ShareholderCodes == input.ShareholderCodes ||
this.ShareholderCodes != null &&
input.ShareholderCodes != null &&
this.ShareholderCodes.SequenceEqual(input.ShareholderCodes)
);
}
19
Source : DetailBalance.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(DetailBalance input)
{
if (input == null)
return false;
return
(
this.Balance == input.Balance ||
this.Balance != null &&
input.Balance != null &&
this.Balance.SequenceEqual(input.Balance)
) &&
(
this.OnHoldBalance == input.OnHoldBalance ||
this.OnHoldBalance != null &&
input.OnHoldBalance != null &&
this.OnHoldBalance.SequenceEqual(input.OnHoldBalance)
) &&
(
this.PendingBalance == input.PendingBalance ||
this.PendingBalance != null &&
input.PendingBalance != null &&
this.PendingBalance.SequenceEqual(input.PendingBalance)
);
}
19
Source : GenericResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(GenericResponse input)
{
if (input == null)
return false;
return
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
);
}
19
Source : RefundNotPaidOutTransfersResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(RefundNotPaidOutTransfersResponse input)
{
if (input == null)
return false;
return
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
);
}
19
Source : SetupBeneficiaryResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(SetupBeneficiaryResponse input)
{
if (input == null)
return false;
return
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
);
}
19
Source : SuspendAccountHolderResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(SuspendAccountHolderResponse input)
{
if (input == null)
return false;
return
(
this.AccountHolderStatus == input.AccountHolderStatus ||
(this.AccountHolderStatus != null &&
this.AccountHolderStatus.Equals(input.AccountHolderStatus))
) &&
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
);
}
19
Source : TransferFundsResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(TransferFundsResponse input)
{
if (input == null)
return false;
return
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.MerchantReference == input.MerchantReference ||
(this.MerchantReference != null &&
this.MerchantReference.Equals(input.MerchantReference))
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
);
}
19
Source : UnSuspendAccountHolderResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(UnSuspendAccountHolderResponse input)
{
if (input == null)
return false;
return
(
this.AccountHolderStatus == input.AccountHolderStatus ||
(this.AccountHolderStatus != null &&
this.AccountHolderStatus.Equals(input.AccountHolderStatus))
) &&
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
);
}
19
Source : UpdateAccountHolderResponse.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(UpdateAccountHolderResponse input)
{
if (input == null)
return false;
return
(
this.AccountHolderCode == input.AccountHolderCode ||
(this.AccountHolderCode != null &&
this.AccountHolderCode.Equals(input.AccountHolderCode))
) &&
(
this.AccountHolderDetails == input.AccountHolderDetails ||
(this.AccountHolderDetails != null &&
this.AccountHolderDetails.Equals(input.AccountHolderDetails))
) &&
(
this.AccountHolderStatus == input.AccountHolderStatus ||
(this.AccountHolderStatus != null &&
this.AccountHolderStatus.Equals(input.AccountHolderStatus))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
) &&
(
this.InvalidFields == input.InvalidFields ||
this.InvalidFields != null &&
input.InvalidFields != null &&
this.InvalidFields.SequenceEqual(input.InvalidFields)
) &&
(
this.LegalEnreplacedy == input.LegalEnreplacedy ||
this.LegalEnreplacedy.Equals(input.LegalEnreplacedy)
) &&
(
this.PrimaryCurrency == input.PrimaryCurrency ||
(this.PrimaryCurrency != null &&
this.PrimaryCurrency.Equals(input.PrimaryCurrency))
) &&
(
this.PspReference == input.PspReference ||
(this.PspReference != null &&
this.PspReference.Equals(input.PspReference))
) &&
(
this.ResultCode == input.ResultCode ||
(this.ResultCode != null &&
this.ResultCode.Equals(input.ResultCode))
) &&
(
this.Verification == input.Verification ||
(this.Verification != null &&
this.Verification.Equals(input.Verification))
);
}
19
Source : SubInputDetail.cs
with MIT License
from Adyen
with MIT License
from Adyen
public bool Equals(SubInputDetail input)
{
if (input == null)
return false;
return
(
this.Configuration == input.Configuration ||
this.Configuration != null &&
input.Configuration != null &&
this.Configuration.SequenceEqual(input.Configuration)
) &&
(
this.Items == input.Items ||
this.Items != null &&
input.Items != null &&
this.Items.SequenceEqual(input.Items)
) &&
(
this.Key == input.Key ||
this.Key != null &&
this.Key.Equals(input.Key)
) &&
(
this.Optional == input.Optional ||
this.Optional != null &&
this.Optional.Equals(input.Optional)
) &&
(
this.Type == input.Type ||
this.Type != null &&
this.Type.Equals(input.Type)
) &&
(
this.Value == input.Value ||
this.Value != null &&
this.Value.Equals(input.Value)
);
}
See More Examples