Broker System for Supercredit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
776B

  1. import {LoanModelCallBacks} from './loan.model';
  2. export class RewardModel {
  3. constructor(
  4. public Amount: number,
  5. public Description: string,
  6. public Id: number,
  7. public LoanId: string,
  8. public PayOutId: number,
  9. public To: string,
  10. public From: string,
  11. public Ts: Date,
  12. private lc: LoanModelCallBacks
  13. ){}
  14. public get Role(): string {
  15. return this.lc.getUserRole(this.To);
  16. }
  17. public get UserId(): string {
  18. return this.To;
  19. }
  20. public set UserId(v) {
  21. this.To = v;
  22. }
  23. public get UserName(): string {
  24. return this.lc.getUserName(this.To);
  25. }
  26. public get photoUrlTo(): string{
  27. return this.lc.getUserPhotoUrl(this.To);
  28. }
  29. public get photoUrlFrom(): string{
  30. return this.lc.getUserPhotoUrl(this.From);
  31. }
  32. }