| export class User { | |
| constructor( | |
| public readonly id: number, | |
| public email: string, | |
| public profilePictureUrl?: string | null | |
| ) {} | |
| updateEmail(newEmail: string) { | |
| this.email = newEmail; | |
| } | |
| updateProfilePicture(url: string) { | |
| this.profilePictureUrl = url; | |
| } | |
| } |