package query.hessian.resources;

import org.apache.commons.lang.StringUtils;
import org.jetbrains.annotations.NotNull;
import tools.containers.CollectionUtils;

import java.io.Serializable;
import java.util.Map;

/**
 * Information about resource that is known to gametool.
 * Value class.
 *
 * @author andrey.kuprishov
 */
@SuppressWarnings({"PublicField"})
public class GametoolResource implements Serializable {
  private static final long serialVersionUID = 2717903099798238158L;
  /**
   * Resource id from resource system.
   */
  public long id = -1L;
  /**
   * Resource type, simple name.
   */
  @NotNull
  public String type = StringUtils.EMPTY;
  /**
   * Path to resource in resource system.
   */
  @NotNull
  public String path = StringUtils.EMPTY;
  /**
   * Pairs of name->value data of resource.
   */
  @NotNull
  public Map<String, String> namedValues = CollectionUtils.newTMap();
}
