-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
122 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Refresh.GameServer.Types.News; | ||
|
||
public class GameNewsFrame | ||
{ | ||
[XmlAttribute("width")] public required long Width { get; set; } | ||
[XmlElement("title")] public required string Title { get; set; } | ||
[XmlElement("item")] public required GameNewsFrameItem Item { get; set; } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Xml.Serialization; | ||
using Refresh.GameServer.Types.UserData; | ||
|
||
namespace Refresh.GameServer.Types.News; | ||
|
||
public class GameNewsFrameItem | ||
{ | ||
[XmlAttribute("width")] public required long Width { get; set; } | ||
[XmlElement("slot")] public required GameNewsFrameItemSlot Level { get; set; } | ||
[XmlElement("npHandle")] public required SerializedUserHandle Handle { get; set; } | ||
[XmlElement("content")] public required string Content { get; set; } | ||
[XmlElement("background")] public required string Background { get; set; } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Refresh.GameServer.Types.News; | ||
|
||
public class GameNewsFrameItemSlot | ||
{ | ||
[XmlElement("id")] | ||
public required long Id { get; set; } | ||
|
||
[XmlAttribute("type")] | ||
public required string Type { get; set; } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Refresh.GameServer.Types.News; | ||
|
||
public class GameNewsItem | ||
{ | ||
[XmlElement("id")] public required long Id { get; set; } | ||
[XmlElement("subject")] public required string Subject { get; set; } | ||
[XmlElement("content")] public required GameNewsItemContent Content { get; set; } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Refresh.GameServer.Types.News; | ||
|
||
public class GameNewsItemContent | ||
{ | ||
[XmlElement("frame")] public required GameNewsFrame Frame { get; set; } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Refresh.GameServer.Types.News; | ||
|
||
[XmlRoot("news")] | ||
public class GameNewsResponse | ||
{ | ||
[XmlElement("subcategory")] | ||
public required GameNewsSubcategory Subcategory { get; set; } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Refresh.GameServer.Types.News; | ||
|
||
public class GameNewsSubcategory | ||
{ | ||
[XmlElement("id")] public required long Id { get; set; } | ||
[XmlElement("title")] public required string Title { get; set; } | ||
[XmlElement("item")] public required GameNewsItem Item { get; set; } | ||
} |