All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sourcelab.github.client.objects.Actor Maven / Gradle / Ivy

The newest version!
package org.sourcelab.github.client.objects;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class Actor {
    private final String login;
    private final long id;
    private final String htmlUrl;

    /**
     * Constructor.
     */
    @JsonCreator
    public Actor(
        @JsonProperty("login") final String login,
        @JsonProperty("id") final long id,
        @JsonProperty("html_url") final String htmlUrl) {
        this.login = login;
        this.id = id;
        this.htmlUrl = htmlUrl;
    }

    public String getLogin() {
        return login;
    }

    public long getId() {
        return id;
    }

    public String getHtmlUrl() {
        return htmlUrl;
    }

    @Override
    public String toString() {
        return "Actor{"
            + "\n\tlogin='" + login + '\''
            + "\n\tid=" + id
            + "\n\thtmlUrl='" + htmlUrl + '\''
            + "\n}";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy