dev.mayuna.cobalt.api.objects.Picker Maven / Gradle / Ivy
package dev.mayuna.cobalt.api.objects;
import lombok.Getter;
/**
* Represents the picker item.
* Field type
is used only if the pickerType
(in {@link DownloadResult}) is various
.
* Field thumb
is used only if the type
(in this class) is video
.
*/
@SuppressWarnings("LombokGetterMayBeUsed")
@Getter
public final class Picker {
private String type;
private String url;
private String thumb;
/**
* Direct link to a file or a link to cobalt's live render
*
* @return The URL
*/
public String getUrl() {
return url;
}
/**
* Item thumbnail that's displayed in the picker (only for video
type)
*
* @return The thumbnail URL
*/
public String getThumb() {
return thumb;
}
}