Ejemplo n.º 1
0
    public override void Execute(INotification notification)
    {
        CURDRoomProxy curdProxy = (CURDRoomProxy)JoinRoomFade.GetInstance().RetrieveProxy(CURDRoomProxy.NAME);

        string roomId = notification.Body.ToString();

        curdProxy.DeleteRoom(roomId);
    }
    public override void Execute(INotification notification)
    {
        CURDRoomProxy curdProxy = (CURDRoomProxy)JoinRoomFade.GetInstance().RetrieveProxy(CURDRoomProxy.NAME);

        Dictionary <string, string> dic = notification.Body as Dictionary <string, string>;
        string grounpId     = dic["grounpId"].ToString();
        string roomId       = dic["roomId"].ToString();
        string roomName     = dic["roomName"].ToString();
        string roomPassword = dic["roomPassword"].ToString();
        string gamePassword = dic["gamePassword"].ToString();


        curdProxy.CreateEditRoom(grounpId, gamePassword, roomId, roomName, roomPassword);
    }