Exemple #1
0
        public static PrivateRoomModel CreatePrivateRoom(PrivateRooms privateRoom)
        {
            var r  = CurrentPrivateRoomHubProxy.Invoke <PrivateRooms>("CreatePrivateRoom", privateRoom).Result;
            var pr = new PrivateRoomModel();

            pr.From(r);
            pr.HubUrl = currentPrivateRoomHub.Url;
            return(pr);
        }
Exemple #2
0
        public static PrivateRoomModel GetPrivateRoom(string roomName)
        {
            var res = CurrentPrivateRoomHubProxy.Invoke <PrivateRooms>("GetPrivateRoom", roomName).Result;
            var pr  = new PrivateRoomModel();

            pr.From(res);
            pr.HubUrl = currentPrivateRoomHub.Url;
            return(pr);
        }