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); }
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); }