Gist.java [src/m/utils/test/github] Revision: default  Date:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package m.utils.test.github;

/**
 *
 * @author ktraff
 */
public class Gist {
    public String url;
    public String id;
    public String username;
    
    public Gist(String id, String url) {
        this(id, url, "anonymous");
    }
    
    public Gist(String id, String url, String username) {
        this.url = url;
        this.id = id;
        this.username = username;
    }
    
    public String getGeoJSONUrl() {
        return "http://geojson.io/#id=gist:" + username + "/" + id;
    }
}