﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PokemonBattleOnline.Network.C2SEs
{
    [DataContract(Namespace = PBOMarks.JSON)]
    internal class PrepareC2S : Commands.PrepareC2S, IC2SE
    {
        public void Execute(ServerUser su)
        {
            var room = su.Room;
            if (room != null)
                if (Pms != null) room.Prepare(su, Pms);
                else room.UnPrepare(su);
        }
    }
    [DataContract(Namespace = PBOMarks.JSON)]
    internal class InputC2S : Commands.InputC2S, IC2SE
    {
        private InputC2S()
          : base()
        {
        }
        public void Execute(ServerUser su)
        {
            var room = su.Room;
            if (room != null) room.Input(su, this);
        }
    }
}
