public async Task <RoomInfo> FetchRoomInfoAsync() { RoomInfo roomInfo = await BililiveAPI.GetRoomInfoAsync(Roomid); RoomInfoUpdated?.Invoke(this, new RoomInfoUpdatedArgs { RoomInfo = roomInfo }); return(roomInfo); }
public async Task <Room> FetchRoomInfoAsync() { var room = await BililiveApi.GetRoomInfoAsync(RoomId); RoomInfoUpdated?.Invoke(this, new RoomInfoUpdatedArgs { Room = room }); return(room); }
public async Task <RoomInfo> FetchRoomInfoAsync() { RoomInfo roomInfo = await bililiveAPI.GetRoomInfoAsync(Roomid).ConfigureAwait(false); if (roomInfo != null) { RoomInfoUpdated?.Invoke(this, new RoomInfoUpdatedArgs { RoomInfo = roomInfo }); } return(roomInfo); }