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

me.shib.java.lib.jiraclient.RemoteLink Maven / Gradle / Ivy

package me.shib.java.lib.jiraclient;

import net.sf.json.JSONObject;

import java.util.Map;

public class RemoteLink extends Resource {
    private String remoteUrl;
    private String title;

    public RemoteLink(RestClient restclient, JSONObject json) {
        super(restclient);
        if (json != null)
            deserialise(json);
    }

    private void deserialise(JSONObject json) {
        Map map = json;

        self = Field.getString(map.get("self"));
        id = Field.getString(map.get("id"));

        Map object = (Map) map.get("object");

        remoteUrl = Field.getString(object.get("url"));
        title = Field.getString(object.get("title"));
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemoteUrl() {
        return remoteUrl;
    }

    public void setRemoteUrl(String remoteUrl) {
        this.remoteUrl = remoteUrl;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy