2021-10-27 23:00:01 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace Selector.Cache
|
|
|
|
|
{
|
|
|
|
|
public class Key
|
|
|
|
|
{
|
|
|
|
|
public const string CurrentlyPlayingName = "CurrentlyPlaying";
|
2021-10-29 22:35:34 +01:00
|
|
|
|
public const string TrackName = "Track";
|
|
|
|
|
public const string AudioFeatureName = "AudioFeature";
|
2021-10-27 23:00:01 +01:00
|
|
|
|
|
2021-11-03 17:38:54 +00:00
|
|
|
|
public const string WorkerName = "Worker";
|
|
|
|
|
|
2021-10-27 23:00:01 +01:00
|
|
|
|
public static string CurrentlyPlaying(string user) => Namespace(new[] { user, CurrentlyPlayingName });
|
2021-10-29 22:35:34 +01:00
|
|
|
|
public static string AudioFeature(string trackId) => Namespace(new[] { TrackName, trackId, AudioFeatureName });
|
2021-10-27 23:00:01 +01:00
|
|
|
|
|
|
|
|
|
public static string Namespace(string[] args) => string.Join(":", args);
|
|
|
|
|
}
|
|
|
|
|
}
|