eu.binjr.common.github.GithubAsset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binjr-core Show documentation
Show all versions of binjr-core Show documentation
A Time Series Data Browser
/*
* Copyright 2019 Frederic Thevenet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package eu.binjr.common.github;
import com.google.gson.annotations.SerializedName;
import java.net.URL;
import java.util.Date;
/**
* A data class that represents a GitHub release asset.
*/
public class GithubAsset {
private URL url;
private int id;
@SerializedName("node_id")
private String nodeId;
private String name;
private String label;
private GithubUser uploader;
@SerializedName("content_type")
private String contentType;
private String state;
private int size;
@SerializedName("download_count")
private int downloadCount;
@SerializedName("created_at")
private Date createdAt;
@SerializedName("updated_at")
private Date updatedAt;
@SerializedName("browser_download_url")
private URL browserDownloadUrl;
public URL getUrl() {
return url;
}
public void setUrl(URL url) {
this.url = url;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNodeId() {
return nodeId;
}
public void setNodeId(String nodeId) {
this.nodeId = nodeId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public GithubUser getUploader() {
return uploader;
}
public void setUploader(GithubUser uploader) {
this.uploader = uploader;
}
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public int getDownloadCount() {
return downloadCount;
}
public void setDownloadCount(int downloadCount) {
this.downloadCount = downloadCount;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public URL getBrowserDownloadUrl() {
return browserDownloadUrl;
}
public void setBrowserDownloadUrl(URL browserDownloadUrl) {
this.browserDownloadUrl = browserDownloadUrl;
}
@Override
public String toString() {
return "GithubAsset{" +
"name='" + name + '\'' +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy