Example #1
0
    private void StationPeek()
    {
        peekedUbimon   = null;
        newUbimonIcons = null;
        Call call = new Call("app", "peek", "ubimon");

        call.AddParameter("playerId", playerId);
        Response r      = gateway.CallService(stationDevice, call);
        string   ubimon = r.GetResponseString("ubimon");

        if (ubimon != null)
        {
            try
            {
                peekedUbimon   = Ubimon.FromJSON(ubimon, ubimonDB);
                newUbimonIcons = ubimonContainer.Fit(ubimons, peekedUbimon);
            }
            catch (System.Exception e)
            {
                StationCommand("leave");
                stationError = e.ToString();
            }
        }
    }