addonscript-java/src/main/java/ley/anvil/addonscript/util/IRepository.java
Timo Ley cf456421d4 Major overhaul
Many things still need to be added, but this should be already useable
2020-07-26 15:47:05 +02:00

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);
}