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);
		}
示例#3
0
 public string Format(AudioLogEntry ale)
 => Formatter.ProcessQuery(ale, SmartHistoryFormatter.DefaultAleFormat);
示例#4
0
 public static string DefaultAleFormat(AudioLogEntry e)
 => string.Format("{0} ({2}): {1}", e.Id, e.AudioResource.ResourceTitle, e.UserInvokeId, e.PlayCount, e.Timestamp);
示例#5
0
 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));
 }
示例#7
0
 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);
 }
示例#8
0
 public void RemoveEntry(AudioLogEntry ale)
 {
     if (ale == null)
         throw new ArgumentNullException(nameof(ale));
     lock (accessLock)
         historyFile.LogEntryRemove(ale);
 }
示例#9
0
 public string ProcessQuery(AudioLogEntry entry, Func <AudioLogEntry, string> format)
 {
     return(SubstringToken(format(entry), Ts3String.MaxMsgLength));
 }