forked from EddieDemon/BNSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClientCheckFailedEventArgs.cs
61 lines (56 loc) · 1.89 KB
/
ClientCheckFailedEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace BNSharp
{
/// <summary>
/// Specifies the contract for event handlers that want to handle the client versioning check failure event.
/// </summary>
/// <param name="sender">The object that raised the event.</param>
/// <param name="e">The event arguments.</param>
public delegate void ClientCheckFailedEventHandler(object sender, ClientCheckFailedEventArgs e);
/// <summary>
/// Specifies the arguments for a client versioning check failure event.
/// </summary>
[DataContract]
public class ClientCheckFailedEventArgs : BaseEventArgs
{
#region fields
[DataMember(Name = "Reason")]
private ClientCheckFailureCause m_reason;
[DataMember(Name = "AdditionalInformation")]
private string m_info;
#endregion
/// <summary>
/// Creates a new instance of <see>ClientCheckFailedEventArgs</see>.
/// </summary>
/// <param name="reason">The failure code for version checking.</param>
/// <param name="additionalInformation">Additional information, if available.</param>
public ClientCheckFailedEventArgs(ClientCheckFailureCause reason, string additionalInformation)
{
m_reason = reason;
m_info = additionalInformation;
}
/// <summary>
/// Gets the reason provided by Battle.net.
/// </summary>
public ClientCheckFailureCause Reason
{
get
{
return m_reason;
}
}
/// <summary>
/// Gets additional information, if any, provided by Battle.net about the problem.
/// </summary>
public string AdditionalInformation
{
get
{
return m_info;
}
}
}
}