Skip to content

Commit 1fa7ddb

Browse files
Added the list of Redirect URI's to XummApplication. (#26)
1 parent 3aa4e55 commit 1fa7ddb

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/XUMM.NET.SDK.Tests/Data/pong.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"uuidv4": "00000000-0000-4839-af2f-f794874a80b0",
77
"name": "SomeApplication",
88
"webhookurl": "https://webhook.site/00000000-0000-4e34-8112-c4391247a8ee",
9+
"redirecturis": [
10+
"https://redirect.site/00000000-0000-4e34-8112-c4391247a8ee",
11+
"https://redirect.site/00000000-4e34-0000-8112-c4391247a8ee"
12+
],
913
"disabled": 0
1014
},
1115
"call": {

src/XUMM.NET.SDK.Tests/Fixtures/MiscFixtures.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ internal static class MiscFixtures
1818
Uuidv4 = "00000000-0000-4839-af2f-f794874a80b0",
1919
Name = "SomeApplication",
2020
WebhookUrl = "https://webhook.site/00000000-0000-4e34-8112-c4391247a8ee",
21+
RedirectUris = new List<string>
22+
{
23+
"https://redirect.site/00000000-0000-4e34-8112-c4391247a8ee",
24+
"https://redirect.site/00000000-4e34-0000-8112-c4391247a8ee"
25+
},
2126
Disabled = 0
2227
},
2328
Call = new XummCall

src/XUMM.NET.SDK/Models/Misc/XummApplication.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Text.Json.Serialization;
1+
using System.Collections.Generic;
2+
using System.Text.Json.Serialization;
23

34
namespace XUMM.NET.SDK.Models.Misc
45
{
@@ -16,6 +17,9 @@ public class XummApplication
1617
[JsonPropertyName("webhookurl")]
1718
public string? WebhookUrl { get; set; }
1819

20+
[JsonPropertyName("redirecturis")]
21+
public List<string> RedirectUris { get; set; }= new();
22+
1923
[JsonPropertyName("disabled")]
2024
public int Disabled { get; set; }
2125

0 commit comments

Comments
 (0)