public async Task <GetChatroomInfoResponse> GetChatroomInfo(GetChatroomInfoRequest request) { await VertifyTokenAsync(); var info = await _server.GetChatroomInfoAsync(request.SenderId, request.ChatroomId); return(new GetChatroomInfoResponse { Success = true, Chatroom = info }); }
public async Task <ChatroomInfo> GetInfoAsync() { var request = new GetChatroomInfoRequest { SenderId = UserId, ChatroomId = RoomId }; var response = await ServerService.GetChatroomInfo(request); if (response.Success == false) { throw new Exception($"Failed to get chatroom info. {response.Detail}"); } return(response.Chatroom); }
public async Task <GetChatroomInfoResponse> GetChatroomInfo(GetChatroomInfoRequest request) { return(await base.GetChatroomInfoAsync(request, _metadata)); }