示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (cashAssetAccount_ != null)
            {
                hash ^= CashAssetAccount.GetHashCode();
            }
            if (checkAssetAccount_ != null)
            {
                hash ^= CheckAssetAccount.GetHashCode();
            }
            if (travelersCheckAssetAccount_ != null)
            {
                hash ^= TravelersCheckAssetAccount.GetHashCode();
            }
            if (amexReceivableAccount_ != null)
            {
                hash ^= AmexReceivableAccount.GetHashCode();
            }
            if (discoverReceivableAccount_ != null)
            {
                hash ^= DiscoverReceivableAccount.GetHashCode();
            }
            if (visaReceivableAccount_ != null)
            {
                hash ^= VisaReceivableAccount.GetHashCode();
            }
            if (mastercardReceivableAccount_ != null)
            {
                hash ^= MastercardReceivableAccount.GetHashCode();
            }
            if (dinersClubReceivableAccount_ != null)
            {
                hash ^= DinersClubReceivableAccount.GetHashCode();
            }
            if (prepaidRevenueAccount_ != null)
            {
                hash ^= PrepaidRevenueAccount.GetHashCode();
            }
            if (groupLodgingRevenueAccount_ != null)
            {
                hash ^= GroupLodgingRevenueAccount.GetHashCode();
            }
            if (lodgingRevenueAccount_ != null)
            {
                hash ^= LodgingRevenueAccount.GetHashCode();
            }
            if (roomCallRevenueAccount_ != null)
            {
                hash ^= RoomCallRevenueAccount.GetHashCode();
            }
            if (miscellaneousRevenueAccount_ != null)
            {
                hash ^= MiscellaneousRevenueAccount.GetHashCode();
            }
            return(hash);
        }
示例#2
0
 public void MergeFrom(AccountAssignments other)
 {
     if (other == null)
     {
         return;
     }
     if (other.cashAssetAccount_ != null)
     {
         if (cashAssetAccount_ == null)
         {
             cashAssetAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         CashAssetAccount.MergeFrom(other.CashAssetAccount);
     }
     if (other.checkAssetAccount_ != null)
     {
         if (checkAssetAccount_ == null)
         {
             checkAssetAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         CheckAssetAccount.MergeFrom(other.CheckAssetAccount);
     }
     if (other.travelersCheckAssetAccount_ != null)
     {
         if (travelersCheckAssetAccount_ == null)
         {
             travelersCheckAssetAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         TravelersCheckAssetAccount.MergeFrom(other.TravelersCheckAssetAccount);
     }
     if (other.amexReceivableAccount_ != null)
     {
         if (amexReceivableAccount_ == null)
         {
             amexReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         AmexReceivableAccount.MergeFrom(other.AmexReceivableAccount);
     }
     if (other.discoverReceivableAccount_ != null)
     {
         if (discoverReceivableAccount_ == null)
         {
             discoverReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         DiscoverReceivableAccount.MergeFrom(other.DiscoverReceivableAccount);
     }
     if (other.visaReceivableAccount_ != null)
     {
         if (visaReceivableAccount_ == null)
         {
             visaReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         VisaReceivableAccount.MergeFrom(other.VisaReceivableAccount);
     }
     if (other.mastercardReceivableAccount_ != null)
     {
         if (mastercardReceivableAccount_ == null)
         {
             mastercardReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         MastercardReceivableAccount.MergeFrom(other.MastercardReceivableAccount);
     }
     if (other.dinersClubReceivableAccount_ != null)
     {
         if (dinersClubReceivableAccount_ == null)
         {
             dinersClubReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         DinersClubReceivableAccount.MergeFrom(other.DinersClubReceivableAccount);
     }
     if (other.prepaidRevenueAccount_ != null)
     {
         if (prepaidRevenueAccount_ == null)
         {
             prepaidRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         PrepaidRevenueAccount.MergeFrom(other.PrepaidRevenueAccount);
     }
     if (other.groupLodgingRevenueAccount_ != null)
     {
         if (groupLodgingRevenueAccount_ == null)
         {
             groupLodgingRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         GroupLodgingRevenueAccount.MergeFrom(other.GroupLodgingRevenueAccount);
     }
     if (other.lodgingRevenueAccount_ != null)
     {
         if (lodgingRevenueAccount_ == null)
         {
             lodgingRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         LodgingRevenueAccount.MergeFrom(other.LodgingRevenueAccount);
     }
     if (other.roomCallRevenueAccount_ != null)
     {
         if (roomCallRevenueAccount_ == null)
         {
             roomCallRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         RoomCallRevenueAccount.MergeFrom(other.RoomCallRevenueAccount);
     }
     if (other.miscellaneousRevenueAccount_ != null)
     {
         if (miscellaneousRevenueAccount_ == null)
         {
             miscellaneousRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         MiscellaneousRevenueAccount.MergeFrom(other.MiscellaneousRevenueAccount);
     }
 }