public static NetworkResponse Parse(MemoryStream dataStream)
        {
            ResponseClient response = new ResponseClient();
            response.status = DataReader.ReadShort(dataStream);

            if (response.status == 0) {
            response.session_id = DataReader.ReadString(dataStream);
            }

            return response;
        }
Beispiel #2
0
        public static NetworkResponse Parse(MemoryStream dataStream)
        {
            ResponseClient response = new ResponseClient();

            response.status = DataReader.ReadShort(dataStream);

            if (response.status == 0)
            {
                response.session_id = DataReader.ReadString(dataStream);
            }

            return(response);
        }
        public void ProcessClient(NetworkResponse response)
        {
            ResponseClient args = response as ResponseClient;

            Constants.SESSION_ID = args.session_id;
        }