package backend.resource.serialization;

import backend.resource.TurboUser;

public class SerializableUser {
    private String loginName = "";
    private String realName = "";
    private String avatarURL = "";

    public SerializableUser(TurboUser user) {
        this.loginName = user.getLoginName();
        this.realName = user.getRealName();
        this.avatarURL = user.getAvatarURL();
    }

    public String getLoginName() {
        return loginName;
    }
    public String getRealName() {
        return realName;
    }
    public String getAvatarURL() {
        return avatarURL;
    }
}

@@ -594,11 +594,261 @@
 L;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        String formatter = %22User: %7BloginName: %25s, realName: %25s, avatarURL: %25s%7D%22;%0A        return String.format(formatter,%0A                             getLoginName(), getRealName(), getAvatarURL());%0A    %7D
 %0A%7D%0A

Implement SerializableUser's toString