package ru.cdecl.pub.iota.models;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class UserProfile {

    @Nullable
    private Long id;

    @NotNull
    private String login;

    @NotNull
    private String email;

    public UserProfile(@Nullable Long id, @NotNull String login, @NotNull String email) {
        setId(id);
    }

    public UserProfile(@NotNull String login, @NotNull String email) {
        setLogin(login);
        setEmail(email);
    }

    @Nullable
    public Long getId() {
        return id;
    }

    public void setId(@Nullable Long id) {
        this.id = id;
    }

    @NotNull
    public String getLogin() {
        return login;
    }

    public void setLogin(@NotNull String login) {
        this.login = login.trim();
    }

    @NotNull
    public String getEmail() {
        return email;
    }

    public void setEmail(@NotNull String email) {
        this.email = email.trim();
    }
    
}

@@ -340,32 +340,60 @@
 String email) %7B%0A
+        this(login, email);%0A
         setId(id

Fix user profile constructor