mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
- Removed GuildConfigs repository, moved to extensions - Moved StreamSettings extension to GuildConfig extensions - namespace NadekoBot.Core has been simplified to NadekoBot in many places (more to come) - Replaced some raw delete queries with simple linqtodb queries
28 lines
853 B
C#
28 lines
853 B
C#
#nullable enable
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace NadekoBot.Modules.Music
|
|
{
|
|
public sealed class SimpleTrackInfo : ITrackInfo
|
|
{
|
|
public string Title { get; }
|
|
public string Url { get; }
|
|
public string Thumbnail { get; }
|
|
public TimeSpan Duration { get; }
|
|
public MusicPlatform Platform { get; }
|
|
public string? StreamUrl { get; }
|
|
public ValueTask<string?> GetStreamUrl() => new ValueTask<string?>(StreamUrl);
|
|
|
|
public SimpleTrackInfo(string title, string url, string thumbnail, TimeSpan duration,
|
|
MusicPlatform platform, string streamUrl)
|
|
{
|
|
Title = title;
|
|
Url = url;
|
|
Thumbnail = thumbnail;
|
|
Duration = duration;
|
|
Platform = platform;
|
|
StreamUrl = streamUrl;
|
|
}
|
|
}
|
|
} |