Пример #1
0
        public PyObject Encode()
        {
            PyDict res = new PyDict();

            res.Set("live_updated", live_updates);

            PyDict main = new PyDict();

            main.Set("jit", new PyString(jit));
            main.Set("userid", new PyInt(userid));
            main.Set("maxSessionTime", maxSessionTime);
            main.Set("userType", new PyInt(userType));
            main.Set("role", new PyInt(role));
            main.Set("address", new PyString(address));
            main.Set("inDetention", inDetention);

            res.Set("session_init", main);
            res.Set("client_hashes", client_hashes);
            res.Set("user_clientid", new PyInt(user_clientid));

            return(res.As <PyObject>());
        }