public static string DefaultAleFormat(AudioLogEntry e) => string.Format("{0} ({2}): {1}", e.Id, e.ResourceTitle, e.UserInvokeId, e.PlayCount, e.Timestamp);
public string ProcessQuery(AudioLogEntry entry, Func<AudioLogEntry, string> format) { return SubstringToken(format(entry), TS3MAXLENGTH); }
public string Format(AudioLogEntry ale) => Formatter.ProcessQuery(ale, SmartHistoryFormatter.DefaultAleFormat);
public static string DefaultAleFormat(AudioLogEntry e) => string.Format("{0} ({2}): {1}", e.Id, e.AudioResource.ResourceTitle, e.UserInvokeId, e.PlayCount, e.Timestamp);
public string ProcessQuery(AudioLogEntry entry, Func <AudioLogEntry, string> format) { return(SubstringToken(format(entry), TS3MAXLENGTH)); }
public string ProcessQuery(AudioLogEntry entry, Func <AudioLogEntry, string> format) { return(SubstringToken(format(entry), TsConst.MaxSizeTextMessage)); }
public void RenameEntry(AudioLogEntry ale, string newName) { if (ale == null) throw new ArgumentNullException(nameof(ale)); if (string.IsNullOrWhiteSpace(newName)) throw new ArgumentNullException(nameof(newName)); lock (accessLock) historyFile.LogEntryRename(ale, newName); }
public void RemoveEntry(AudioLogEntry ale) { if (ale == null) throw new ArgumentNullException(nameof(ale)); lock (accessLock) historyFile.LogEntryRemove(ale); }
public string ProcessQuery(AudioLogEntry entry, Func <AudioLogEntry, string> format) { return(SubstringToken(format(entry), Ts3String.MaxMsgLength)); }