Esempio n. 1
0
        public void SendExtensionRequest(string cmd, ARWObject obj, bool roomRequest)
        {
            SpecialRequestParam reqSpParam = new SpecialRequestParam();

            reqSpParam.PutVariable("cmd", cmd);
            reqSpParam.PutVariable("isRoom", roomRequest);
            if (roomRequest)
            {
                reqSpParam.PutVariable("room_id", ARWUserManager.instance.me.lastJoinedRoom);
            }

            Request newRequest = new Request(ARWServer_CMD.Extension_Request, obj, reqSpParam);

            this.SendRequest(newRequest);
        }
Esempio n. 2
0
        public void SendLoginRequest(string userName, ARWObject arwObject)
        {
            SpecialRequestParam loginParam = new SpecialRequestParam();

            loginParam.PutVariable("user_name", userName);

            Request loginRequest = new Request(ARWServer_CMD.Login, arwObject, loginParam);

            this.SendRequest(loginRequest);
        }