Broker System for Supercredit
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

44 lines
924B

  1. export class UserExtraModel {
  2. public BSB: string;
  3. public ACC: string;
  4. public License: string;
  5. public Organization: string;
  6. public Login: string;
  7. public Role?: string;
  8. constructor(payload: Partial<UserExtraModel>) {
  9. Object.assign(this, payload);
  10. }
  11. public static EmptyNew(): UserExtraModel {
  12. const rt = new UserExtraModel({});
  13. rt.BSB = '';
  14. rt.ACC = '';
  15. rt.License = '';
  16. rt.Organization = '';
  17. rt.Login = '';
  18. rt.Role = '';
  19. return rt;
  20. }
  21. public Clear(): void {
  22. this.BSB = '';
  23. this.ACC = '';
  24. this.License = '';
  25. this.Organization = '';
  26. this.Login = '';
  27. this.Role = '';
  28. }
  29. public Copy(payload: Partial<UserExtraModel>): void {
  30. this.BSB = payload.BSB;
  31. this.ACC = payload.ACC;
  32. this.License = payload.License;
  33. this.Organization = payload.Organization;
  34. this.Login = payload.Login;
  35. this.Role = payload.Role;
  36. }
  37. }