Revert change of all Url types on IEmbed to string (#724)

This commit is contained in:
Christopher F
2017-06-29 16:38:05 -04:00
committed by RogueException
parent 1ce1c019b3
commit 7837c4862c
16 changed files with 92 additions and 44 deletions

View File

@@ -12,7 +12,7 @@ namespace Discord.API
[JsonProperty("description")]
public string Description { get; set; }
[JsonProperty("url")]
public Uri Url { get; set; }
public string Url { get; set; }
[JsonProperty("color")]
public uint? Color { get; set; }
[JsonProperty("type"), JsonConverter(typeof(StringEnumConverter))]

View File

@@ -8,10 +8,10 @@ namespace Discord.API
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("url")]
public Uri Url { get; set; }
public string Url { get; set; }
[JsonProperty("icon_url")]
public Uri IconUrl { get; set; }
public string IconUrl { get; set; }
[JsonProperty("proxy_icon_url")]
public Uri ProxyIconUrl { get; set; }
public string ProxyIconUrl { get; set; }
}
}

View File

@@ -8,8 +8,8 @@ namespace Discord.API
[JsonProperty("text")]
public string Text { get; set; }
[JsonProperty("icon_url")]
public Uri IconUrl { get; set; }
public string IconUrl { get; set; }
[JsonProperty("proxy_icon_url")]
public Uri ProxyIconUrl { get; set; }
public string ProxyIconUrl { get; set; }
}
}

View File

@@ -7,9 +7,9 @@ namespace Discord.API
internal class EmbedImage
{
[JsonProperty("url")]
public Uri Url { get; set; }
public string Url { get; set; }
[JsonProperty("proxy_url")]
public Uri ProxyUrl { get; set; }
public string ProxyUrl { get; set; }
[JsonProperty("height")]
public Optional<int> Height { get; set; }
[JsonProperty("width")]

View File

@@ -9,6 +9,6 @@ namespace Discord.API
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("url")]
public Uri Url { get; set; }
public string Url { get; set; }
}
}

View File

@@ -7,9 +7,9 @@ namespace Discord.API
internal class EmbedThumbnail
{
[JsonProperty("url")]
public Uri Url { get; set; }
public string Url { get; set; }
[JsonProperty("proxy_url")]
public Uri ProxyUrl { get; set; }
public string ProxyUrl { get; set; }
[JsonProperty("height")]
public Optional<int> Height { get; set; }
[JsonProperty("width")]

View File

@@ -7,7 +7,7 @@ namespace Discord.API
internal class EmbedVideo
{
[JsonProperty("url")]
public Uri Url { get; set; }
public string Url { get; set; }
[JsonProperty("height")]
public Optional<int> Height { get; set; }
[JsonProperty("width")]