-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from ArchipelagoMW/ArchipelagoPacketBase-retri…
…eve-typo-fix fix retrieve typo in ArchipelagoPacketBase.cs
- Loading branch information
Showing
1 changed file
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
using Archipelago.MultiClient.Net.Enums; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json.Linq; | ||
using System; | ||
|
||
namespace Archipelago.MultiClient.Net | ||
{ | ||
[Serializable] | ||
public abstract class ArchipelagoPacketBase | ||
{ | ||
[JsonIgnore] | ||
using Archipelago.MultiClient.Net.Enums; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json.Linq; | ||
using System; | ||
|
||
namespace Archipelago.MultiClient.Net | ||
{ | ||
[Serializable] | ||
public abstract class ArchipelagoPacketBase | ||
{ | ||
[JsonIgnore] | ||
internal JObject jobject; | ||
|
||
[JsonProperty("cmd")] | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public abstract ArchipelagoPacketType PacketType { get; } | ||
|
||
/// <summary> | ||
/// Retreive the basic jobject that was send by the server. | ||
/// Its not recommended to use this however the JObject allows accessing properties are not available in the library | ||
/// </summary> | ||
/// <returns></returns> | ||
public JObject ToJObject() => jobject; | ||
} | ||
} | ||
[JsonProperty("cmd")] | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public abstract ArchipelagoPacketType PacketType { get; } | ||
|
||
/// <summary> | ||
/// Retrieve the basic jobject that was send by the server. | ||
/// Its not recommended to use this however the JObject allows accessing properties are not available in the library | ||
/// </summary> | ||
/// <returns></returns> | ||
public JObject ToJObject() => jobject; | ||
} | ||
} |