package ru.otus.kirillov.model.commands.login;

import org.apache.commons.lang3.builder.ToStringBuilder;
import ru.otus.kirillov.model.commands.Result;

public class LoginResult implements Result {

    private final String sessionId;

    private final String userName;

    private LoginResult(String sessionId, String userName) {
        this.sessionId = sessionId;
        this.userName = userName;
    }

    public static LoginResult of(String sessionId, String userName) {
        return new LoginResult(sessionId, userName);
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("sessionId", sessionId)
                .append("userName", userName)
                .toString();
    }
}

@@ -529,24 +529,158 @@
 me);%0A    %7D%0A%0A
+    public String getSessionId() %7B%0A        return sessionId;%0A    %7D%0A%0A    public String getUserName() %7B%0A        return userName;%0A    %7D%0A%0A
     @Overrid

add getters