Refactoring of BNetServer

This commit is contained in:
hondacrx
2020-07-12 00:06:43 -04:00
parent 4164384b72
commit 581d077acd
318 changed files with 2046 additions and 4694 deletions
+17
View File
@@ -0,0 +1,17 @@
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using System.Runtime.Serialization;
namespace Framework.Web
{
[DataContract]
public class Address
{
[DataMember(Name = "ip")]
public string Ip { get; set; }
[DataMember(Name = "port")]
public int Port { get; set; }
}
}
@@ -0,0 +1,18 @@
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Framework.Web
{
[DataContract]
public class AddressFamily
{
[DataMember(Name = "family")]
public int Id { get; set; }
[DataMember(Name = "addresses")]
public IList<Address> Addresses { get; set; } = new List<Address>();
}
}
@@ -0,0 +1,23 @@
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using System.Runtime.Serialization;
namespace Framework.Web
{
[DataContract]
public class ClientVersion
{
[DataMember(Name = "versionMajor")]
public int Major { get; set; }
[DataMember(Name = "versionBuild")]
public int Build { get; set; }
[DataMember(Name = "versionMinor")]
public int Minor { get; set; }
[DataMember(Name = "versionRevision")]
public int Revision { get; set; }
}
}
@@ -0,0 +1,17 @@
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using System.Runtime.Serialization;
namespace Framework.Web
{
[DataContract]
public class RealmCharacterCountEntry
{
[DataMember(Name = "wowRealmAddress")]
public int WowRealmAddress { get; set; }
[DataMember(Name = "count")]
public int Count { get; set; }
}
}