21 lines
503 B
C#
21 lines
503 B
C#
using Maki.Structures.Presences;
|
|
using System;
|
|
|
|
namespace Maki
|
|
{
|
|
public class DiscordGame
|
|
{
|
|
public string Name { get; internal set; }
|
|
public bool IsStreaming { get; internal set; }
|
|
public Uri Url { get; internal set; }
|
|
|
|
internal DiscordGame(Game game)
|
|
{
|
|
Name = game.Name;
|
|
IsStreaming = game.Type == GameType.Streaming;
|
|
|
|
if (!string.IsNullOrEmpty(game.Url))
|
|
Url = new Uri(game.Url);
|
|
}
|
|
}
|
|
}
|