public override int GetHashCode()
        {
            int hash = 1;

            hash ^= lottery_.GetHashCode();
            if (salerAddress_ != null)
            {
                hash ^= SalerAddress.GetHashCode();
            }
            if (ProportionSale != 0)
            {
                hash ^= ProportionSale.GetHashCode();
            }
            if (ProportionBonus != 0)
            {
                hash ^= ProportionBonus.GetHashCode();
            }
            if (TargetPeriod != 0)
            {
                hash ^= TargetPeriod.GetHashCode();
            }
            if (senderAddress_ != null)
            {
                hash ^= SenderAddress.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Retrieves time period targets for steel design.
        /// </summary>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        protected void getTargetPeriods(ITargetPeriod app)
        {
            app.GetTargetPeriod(
                out var modalCase,
                out var modeNumbers,
                out var periodTargets,
                out var allSpecifiedTargetsActive);

            ModalCase = modalCase;
            AllSpecifiedPeriodTargetsActive = allSpecifiedTargetsActive;
            TargetPeriods.Clear();
            for (int i = 0; i < modeNumbers.Length; i++)
            {
                TargetPeriod targetPeriod = new TargetPeriod()
                {
                    ModeNumber = modeNumbers[i],
                    Value      = periodTargets[i]
                };
                TargetPeriods.Add(targetPeriod);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Retrieves time period targets for steel design.
        /// </summary>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public void Fill()
        {
            _apiTargetPeriod.GetTargetPeriod(
                out var modalCase,
                out var modeNumbers,
                out var periodTargets,
                out var allSpecifiedTargetsActive);

            _modalCaseName = modalCase;
            _allSpecifiedPeriodTargetsActive = allSpecifiedTargetsActive;

            _targetPeriods = new List <TargetPeriod>();
            for (int i = 0; i < modeNumbers.Length; i++)
            {
                TargetPeriod targetPeriod = new TargetPeriod()
                {
                    ModeNumber = modeNumbers[i],
                    Value      = periodTargets[i]
                };
                _targetPeriods.Add(targetPeriod);
            }
        }