예제 #1
0
        public async Task <RoomInfo> FetchRoomInfoAsync()
        {
            RoomInfo roomInfo = await BililiveAPI.GetRoomInfoAsync(Roomid);

            RoomInfoUpdated?.Invoke(this, new RoomInfoUpdatedArgs {
                RoomInfo = roomInfo
            });
            return(roomInfo);
        }
예제 #2
0
        public async Task <Room> FetchRoomInfoAsync()
        {
            var room = await BililiveApi.GetRoomInfoAsync(RoomId);

            RoomInfoUpdated?.Invoke(this, new RoomInfoUpdatedArgs {
                Room = room
            });
            return(room);
        }
예제 #3
0
        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);
        }