30 lines
658 B
Java
30 lines
658 B
Java
package ley.anvil.addonscript.util;
|
|
|
|
import ley.anvil.addonscript.wrapper.MetaData;
|
|
|
|
/**
|
|
* Interface for all repository types
|
|
*/
|
|
public interface IRepository {
|
|
|
|
/**
|
|
* Gets the file URL from an artifact
|
|
* @param artifact The artifact without the repo ID prefix
|
|
* @return The URL of the file
|
|
*/
|
|
@HTTPRequest
|
|
String getFileURL(String artifact);
|
|
|
|
/**
|
|
* Gets meta information about an artifact.
|
|
* Empty Object if nothing was found.
|
|
* @param artifact The artifact without the repo ID prefix
|
|
* @return A Meta object with meta information
|
|
*/
|
|
@HTTPRequest
|
|
MetaData getMeta(String artifact);
|
|
|
|
|
|
|
|
}
|