コード例 #1
0
		public static string DefaultAleFormat(AudioLogEntry e)
			=> string.Format("{0} ({2}): {1}", e.Id, e.ResourceTitle, e.UserInvokeId, e.PlayCount, e.Timestamp);
コード例 #2
0
		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));
 }
コード例 #6
0
 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));
 }