diff --git a/PoloniexApi.Net/General/EventArgs/TrollboxMessageEventArgs.cs b/PoloniexApi.Net/General/EventArgs/TrollboxMessageEventArgs.cs index e78a655..3552a58 100644 --- a/PoloniexApi.Net/General/EventArgs/TrollboxMessageEventArgs.cs +++ b/PoloniexApi.Net/General/EventArgs/TrollboxMessageEventArgs.cs @@ -5,16 +5,14 @@ namespace Jojatekok.PoloniexAPI public class TrollboxMessageEventArgs : EventArgs { public string SenderName { get; private set; } - public uint SenderReputation { get; private set; } - public string MessageType { get; private set; } + public uint? SenderReputation { get; private set; } public ulong MessageNumber { get; private set; } public string MessageText { get; private set; } - internal TrollboxMessageEventArgs(string senderName, uint senderReputation, string messageType, ulong messageNumber, string messageText) + internal TrollboxMessageEventArgs(string senderName, uint? senderReputation, ulong messageNumber, string messageText) { SenderName = senderName; SenderReputation = senderReputation; - MessageType = messageType; MessageNumber = messageNumber; MessageText = messageText; } diff --git a/PoloniexApi.Net/LiveTools/Live.cs b/PoloniexApi.Net/LiveTools/Live.cs index d95b833..35af4bd 100644 --- a/PoloniexApi.Net/LiveTools/Live.cs +++ b/PoloniexApi.Net/LiveTools/Live.cs @@ -84,13 +84,12 @@ private void ProcessMessageTrollbox(ISerializedValue[] arguments) { if (OnTrollboxMessage == null) return; - var messageType = arguments[0].Deserialize(); var messageNumber = arguments[1].Deserialize(); var senderName = arguments[2].Deserialize(); var messageText = HttpUtility.HtmlDecode(arguments[3].Deserialize()); - var senderReputation = arguments[4].Deserialize(); + var senderReputation = arguments.Length >= 5 ? arguments[4].Deserialize() : null; - OnTrollboxMessage(this, new TrollboxMessageEventArgs(senderName, senderReputation, messageType, messageNumber, messageText)); + OnTrollboxMessage(this, new TrollboxMessageEventArgs(senderName, senderReputation, messageNumber, messageText)); } } } diff --git a/PoloniexApi.Net/Properties/AssemblyInfo.cs b/PoloniexApi.Net/Properties/AssemblyInfo.cs index 24d44d1..153a2e2 100644 --- a/PoloniexApi.Net/Properties/AssemblyInfo.cs +++ b/PoloniexApi.Net/Properties/AssemblyInfo.cs @@ -29,6 +29,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.1")] -[assembly: AssemblyFileVersion("1.1.1")] +[assembly: AssemblyVersion("1.1.2")] +[assembly: AssemblyFileVersion("1.1.2")] [assembly: NeutralResourcesLanguageAttribute("en")]