mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-04-25 08:04:27 -05:00
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using GamestatsBase;
|
|
|
|
namespace PkmnFoundations.GTS
|
|
{
|
|
/// <summary>
|
|
/// Summary description for pokemondpds_web
|
|
/// </summary>
|
|
public class pokemondpds_web : GamestatsHandler
|
|
{
|
|
public pokemondpds_web()
|
|
: base("uLMOGEiiJogofchScpXb000244fd00006015100000005b440e7epokemondpds",
|
|
GamestatsRequestVersions.Version3, GamestatsResponseVersions.Version2, true)
|
|
{
|
|
|
|
}
|
|
|
|
public override void ProcessGamestatsRequest(byte[] request, MemoryStream response, string url, int pid, HttpContext context, GamestatsSession session)
|
|
{
|
|
switch (url)
|
|
{
|
|
default:
|
|
SessionManager.Remove(session);
|
|
|
|
// unrecognized page url
|
|
ShowError(context, 404);
|
|
return;
|
|
|
|
// todo: Implement Wi-Fi Plaza gamestats handlers here.
|
|
}
|
|
}
|
|
}
|
|
}
|