public object GetPlayingStatus(int id) { RestfulDisplayer displayer = GetDisplayer(id); return(new { playing = displayer?.IsPlay }); }
public object GetBeatmap(int id) { RestfulDisplayer displayer = GetDisplayer(id); return((displayer?.HitCount) == null ? null : MakeTupleResult(displayer?.BeatmapTuple)); }
public object GetPP(int id) { RestfulDisplayer displayer = GetDisplayer(id); return((displayer?.Pp == null) ? null : MakeTupleResult(displayer?.Pp)); }
public RtppdApis(Plugin rtppd_plugin) { rtppd = rtppd_plugin as RealTimePPDisplayerPlugin; rtppd.RegisterDisplayer("restful", (id) => m_restfuile_displayers[id ?? 0] = new RestfulDisplayer(id)); }
public object GetFormatedHitCount(int id) { RestfulDisplayer displayer = GetDisplayer(id); return(FormatterBase.GetHitCountFormatter().Format); }
public object GetFormatedPP(int id) { RestfulDisplayer displayer = GetDisplayer(id); return(FormatterBase.GetPPFormatter().Format); }