mirror of
https://onedev.fprog.nl/DiscordClient
synced 2026-03-31 10:54:10 +02:00
Added HttpData record.
This commit is contained in:
parent
20ed3dd6d8
commit
693031b2dd
13
DiscordClient/Data/HttpData.cs
Normal file
13
DiscordClient/Data/HttpData.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace DiscordClient.Data
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// This class holds both the HttpResponseMessage
|
||||||
|
/// and deserialized JSON data.
|
||||||
|
/// </summary>
|
||||||
|
public record HttpData<T>(HttpResponseMessage httpResponse, T? deserializedData);
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue