package query.hessian.resources;

import org.jetbrains.annotations.Nullable;
import replicationAnnotations.OuterWorldAPI;

import java.io.Serializable;

/**
 * Service to access resources that are known on gametool.
 *
 * @author andrey.kuprishov
 */
@OuterWorldAPI
public interface ResourceService extends Serializable {
  /**
   * Gets resource information by its id.
   * Can return null if resource is unknown to gametool.
   */
  @Nullable
  GametoolResource getResource(long id) throws ResourceServiceException;    
}
