mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
23 lines
588 B
C#
23 lines
588 B
C#
using ConanData.Datasets;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ConanData
|
|
{
|
|
internal partial class Parser
|
|
{
|
|
public static GuildData ParseGuild(GuildsDataSet.GuildsRow guildRow)
|
|
{
|
|
return new GuildData()
|
|
{
|
|
GuildId = guildRow.GuildId,
|
|
GuildName = guildRow.Name,
|
|
OwnerId = guildRow.OwnerId,
|
|
};
|
|
}
|
|
|
|
public static Task<GuildData> ParseGuildAsync(GuildsDataSet.GuildsRow guildRow)
|
|
{
|
|
return Task.Run(() => ParseGuild(guildRow));
|
|
}
|
|
}
|
|
}
|