Package limelight.model.api

Source Code of limelight.model.api.FakePlayer

package limelight.model.api;

import limelight.Context;
import limelight.ui.model.PropPanel;
import limelight.util.Opts;

import java.util.Map;

public class FakePlayer implements Player
{
  public String path;
  public PropPanel castedProp;
  public Map<String, Object> appliedOptions;

  public FakePlayer(String path)
  {
    this.path = path;
  }

  public Object cast(PropPanel prop)
  {
    castedProp = prop;
    return "Fake Casted Player Object";
  }

  public String getPath()
  {
    return path;
  }

  public String getName()
  {
    return Context.fs().filename(path);
  }

  public Map<String, Object> applyOptions(PropPanel prop, Map<String, Object> options)
  {
    appliedOptions = new Opts(options);
    return options;
  }
}
TOP

Related Classes of limelight.model.api.FakePlayer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.