001package org.intellimate.izou.sdk.frameworks.music.resources; 002 003import org.intellimate.izou.identification.Identification; 004import org.intellimate.izou.sdk.resource.Resource; 005 006/** 007 * A resource which holds an Identification used obtain the current playing OP 008 * @author LeanderK 009 * @version 1.0 010 */ 011public class PlayerResource extends Resource<Identification> { 012 @SuppressWarnings("SpellCheckingInspection") 013 public static final String RESOURCE_ID = "izou.music.resource.playerselecor"; 014 015 /** 016 * creates a new Resource. 017 * This method is thread-safe. 018 * 019 * @param consumer the Provider of the Resource 020 */ 021 public PlayerResource(Identification consumer) { 022 super(RESOURCE_ID, null, null, consumer); 023 } 024 025 /** 026 * creates a new Resource. 027 * This method is thread-safe. 028 * 029 * @param consumer the consumer of the Resource 030 * @param identification the resource 031 */ 032 public PlayerResource(Identification consumer, Identification identification) { 033 super(RESOURCE_ID, identification, identification, consumer); 034 } 035}