public override void Write()
        {
            _worldPacket.WriteUInt32(Earned.Count());

            foreach (EarnedAchievement earned in Earned)
            {
                earned.Write(_worldPacket);
            }
        }
        public string ToHtmlString()
        {
            StringBuilder b = new StringBuilder();

            b.Append("mark:        <b>" + Mark + "</b><br>");
            b.Append("amount:      <b>" + OpenAmount.ToString("0.########") + "</b><br>");
            b.Append("open price:  <b>" + OpenValue.ToString("0.########") + "</b><br>");
            b.Append("close price: <b>" + CloseValue.ToString("0.########") + "</b><br>");
            b.Append("stoploss:    <b>" + StopLoss.ToString("0.########") + "</b><br>");
            b.Append("change:      <b>" + Change.ToString("0.##") + "%</b><br>");
            b.Append("spent:       <b>" + Spent.ToString("0.########") + "</b><br>");
            b.Append("earned:      <b>" + Earned.ToString("0.########") + "</b><br>");
            b.Append("profit:      <b>" + Profit.ToString("0.########") + "</b><br>");
            return(b.ToString());
        }
Example #3
0
        public bool Equals(DestinyMilestoneRewardEntry input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     RewardEntryHash == input.RewardEntryHash ||
                     (RewardEntryHash.Equals(input.RewardEntryHash))
                     ) &&
                 (
                     Earned == input.Earned ||
                     (Earned != null && Earned.Equals(input.Earned))
                 ) &&
                 (
                     Redeemed == input.Redeemed ||
                     (Redeemed != null && Redeemed.Equals(input.Redeemed))
                 ));
        }
Example #4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">This is the GUID for this object.</param>
 ///<param name="employeePersonalRefId">References EmployeePersonal object.</param>
 ///<param name="professionalDevelopmentActivitiesRefId">References the ProfDevActivities object</param>
 ///<param name="endDate">Date in which the course or activity was completed and awarded credit.</param>
 ///<param name="earned">The number of units earned</param>
 ///
 public EmployeeCredit(string refId, string employeePersonalRefId, string professionalDevelopmentActivitiesRefId, DateTime?endDate, Earned earned) : base(Adk.SifVersion, ProfdevDTD.EMPLOYEECREDIT)
 {
     this.RefId = refId;
     this.EmployeePersonalRefId = employeePersonalRefId;
     this.ProfessionalDevelopmentActivitiesRefId = professionalDevelopmentActivitiesRefId;
     this.EndDate = endDate;
     this.Earned  = earned;
 }
Example #5
0
 public override string ToString()
 {
     return($"\t\t{Invested.RoundSatoshi()}\t\t{Available.RoundSatoshi()}\t\t{Earned.RoundSatoshi()}\t\t{Profit}%");
 }
Example #6
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="ssn">Employee Social Security Number. This element or StateProvinceId, or both, must be included.</param>
 ///<param name="stateProvinceId">The state-assigned identifier for this staff member. This element or SSN, or both, must be included.</param>
 ///<param name="name">Name of employee.</param>
 ///<param name="activityName">Name of the course or activity</param>
 ///<param name="activityType">Type of course or activity</param>
 ///<param name="activityHours">Total activity hours/total clock hours</param>
 ///<param name="earned">Hours attended or credits earned by the employee</param>
 ///<param name="dateFrom">Start date of the course or activity</param>
 ///<param name="dateTo">Source: 0613 Employment Status</param>
 ///
 public EmployeeRecertification(string ssn, string stateProvinceId, Name name, string activityName, ActivityType activityType, decimal?activityHours, Earned earned, DateTime?dateFrom, DateTime?dateTo) : base(Adk.SifVersion, ProfdevDTD.EMPLOYEERECERTIFICATION)
 {
     this.SSN             = ssn;
     this.StateProvinceId = stateProvinceId;
     this.Name            = name;
     this.ActivityName    = activityName;
     this.SetActivityType(activityType);
     this.ActivityHours = activityHours;
     this.Earned        = earned;
     this.DateFrom      = dateFrom;
     this.DateTo        = dateTo;
 }