rename `FriendDeleteRequest` to `DeleteFriendRequest`

This commit is contained in:
cdwcgt 2024-11-01 19:17:25 +08:00
parent 21b1c799f3
commit fbe6077ec2
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2
2 changed files with 3 additions and 3 deletions

View File

@ -6,11 +6,11 @@
namespace osu.Game.Online.API.Requests
{
public class FriendDeleteRequest : APIRequest
public class DeleteFriendRequest : APIRequest
{
public readonly int TargetId;
public FriendDeleteRequest(int targetId)
public DeleteFriendRequest(int targetId)
{
TargetId = targetId;
}

View File

@ -89,7 +89,7 @@ private void load(IAPIProvider api, INotificationOverlay? notifications)
ShowLoadingLayer();
APIRequest req = status.Value == FriendStatus.None ? new AddFriendRequest(User.Value.User.OnlineID) : new FriendDeleteRequest(User.Value.User.OnlineID);
APIRequest req = status.Value == FriendStatus.None ? new AddFriendRequest(User.Value.User.OnlineID) : new DeleteFriendRequest(User.Value.User.OnlineID);
req.Success += () =>
{