using System.Diagnostics;
namespace Discord
{
///
/// A user's activity for streaming on services such as Twitch.
///
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public class StreamingGame : Game
{
///
/// Gets the URL of the stream.
///
public string Url { get; internal set; }
///
/// Creates a new based on the on the stream URL.
///
/// The name of the stream.
/// The URL of the stream.
public StreamingGame(string name, string url)
{
Name = name;
Url = url;
Type = ActivityType.Streaming;
}
///
/// Gets the name of the stream.
///
public override string ToString() => Name;
private string DebuggerDisplay => $"{Name} ({Url})";
}
}