Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. public class InterestAdjustMessageData : IMailObject
  2. {
  3. // Static properties
  4.  
  5. public List<InterestAdjustMessageItemData> Items { get; private set; }
  6.  
  7. public InterestAdjustMessageData(string interestID, string company, string referencePerson, DateTime messageTime, string loanName, string ticker, DateTime periodFrom, DateTime periodTo, int day, double percent, string interestAgent, string agentCountry)
  8. {
  9. // Items that are static
  10.  
  11. this.Items = new List<InterestAdjustMessageItemData>();
  12. this.Items.Add(new InterestAdjustMessageItemData(loanName, ticker, periodFrom, periodTo, day, percent));
  13. }
  14. }
  15.  
  16. public class InterestAdjustMessageItemData
  17. {
  18. public string LoanName { get; private set; }
  19. public string Ticker { get; private set; }
  20. public string PeriodFrom { get; private set; }
  21. public string PeriodTo { get; private set; }
  22. public int Day { get; private set; }
  23. public double Percent { get; private set; }
  24.  
  25. public InterestAdjustMessageItemData( string loanName, string ticker, DateTime periodFrom, DateTime periodTo, int day, double percent)
  26. {
  27. this.LoanName = loanName;
  28. this.Ticker = ticker;
  29. this.PeriodFrom = periodFrom.ToShortDateString();
  30. this.PeriodTo = periodTo.ToShortDateString();
  31. this.Day = day;
  32. this.Percent = percent;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement