public bool Equals(OfferParameters other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (!OfferAccessRoleMap.Equals(other.OfferAccessRoleMap)) { return(false); } if (SteamTransactionsEnabled != other.SteamTransactionsEnabled) { return(false); } if (DigitalRiverTransactionsEnabled != other.DigitalRiverTransactionsEnabled) { return(false); } if (GooglePlayTransactionsEnabled != other.GooglePlayTransactionsEnabled) { return(false); } if (AppStoreTransactionsEnabled != other.AppStoreTransactionsEnabled) { return(false); } if (DisableAppStoreReceiptVerification != other.DisableAppStoreReceiptVerification) { return(false); } if (DisableGooglePlayTransactionVerification != other.DisableGooglePlayTransactionVerification) { return(false); } if (!object.Equals(MassOffersCacheInvalidationInterval, other.MassOffersCacheInvalidationInterval)) { return(false); } return(Equals(_unknownFields, other._unknownFields)); }
public override int GetHashCode() { int hash = 1; hash ^= OfferAccessRoleMap.GetHashCode(); if (SteamTransactionsEnabled != false) { hash ^= SteamTransactionsEnabled.GetHashCode(); } if (DigitalRiverTransactionsEnabled != false) { hash ^= DigitalRiverTransactionsEnabled.GetHashCode(); } if (GooglePlayTransactionsEnabled != false) { hash ^= GooglePlayTransactionsEnabled.GetHashCode(); } if (AppStoreTransactionsEnabled != false) { hash ^= AppStoreTransactionsEnabled.GetHashCode(); } if (DisableAppStoreReceiptVerification != false) { hash ^= DisableAppStoreReceiptVerification.GetHashCode(); } if (DisableGooglePlayTransactionVerification != false) { hash ^= DisableGooglePlayTransactionVerification.GetHashCode(); } if (massOffersCacheInvalidationInterval_ != null) { hash ^= MassOffersCacheInvalidationInterval.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }