Added Game(name) constructor

This commit is contained in:
RogueException
2016-05-19 00:06:12 -03:00
parent 473b1bdbbc
commit 4aba51f2fd
2 changed files with 11 additions and 5 deletions

View File

@@ -6,6 +6,12 @@
public string StreamUrl { get; } public string StreamUrl { get; }
public StreamType StreamType { get; } public StreamType StreamType { get; }
public Game(string name)
{
Name = name;
StreamUrl = null;
StreamType = StreamType.NotStreaming;
}
public Game(string name, string streamUrl, StreamType type) public Game(string name, string streamUrl, StreamType type)
{ {
Name = name; Name = name;

View File

@@ -3,11 +3,6 @@
"description": "A Discord.Net extension adding voice support.", "description": "A Discord.Net extension adding voice support.",
"authors": [ "RogueException" ], "authors": [ "RogueException" ],
"buildOptions": {
"allowUnsafe": true,
"warningsAsErrors": false
},
"packOptions": { "packOptions": {
"tags": [ "discord", "discordapp" ], "tags": [ "discord", "discordapp" ],
"licenseUrl": "http://opensource.org/licenses/MIT", "licenseUrl": "http://opensource.org/licenses/MIT",
@@ -18,6 +13,11 @@
} }
}, },
"buildOptions": {
"allowUnsafe": true,
"warningsAsErrors": false
},
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027", "NETStandard.Library": "1.5.0-rc2-24027",
"Newtonsoft.Json": "8.0.3", "Newtonsoft.Json": "8.0.3",