Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/DiscordGame.cs
2017-05-18 00:33:09 +02:00

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);
}
}
}