Files
gaseous-server/gaseous-server/Classes/Metadata/ExternalGames.cs
Michael Green 173e49286b WIP
2024-12-06 12:25:17 +11:00

29 lines
756 B
C#

using System;
using HasheousClient.Models.Metadata.IGDB;
namespace gaseous_server.Classes.Metadata
{
public class ExternalGames
{
public const string fieldList = "fields category,checksum,countries,created_at,game,media,name,platform,uid,updated_at,url,year;";
public ExternalGames()
{
}
public static ExternalGame? GetExternalGames(HasheousClient.Models.MetadataSources SourceType, long? Id)
{
if ((Id == 0) || (Id == null))
{
return null;
}
else
{
ExternalGame? RetVal = Metadata.GetMetadata<ExternalGame>(SourceType, (long)Id, false);
return RetVal;
}
}
}
}