Skip to content

Commit 9d195b8

Browse files
committed
Add SetFriendTagsAsync wrapper
1 parent 0e75f2b commit 9d195b8

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Runtime/PlayFabClientAPIWrapper.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Threading.Tasks;
1+
using System.Threading.Tasks;
22
using PlayFab;
33
using PlayFab.ClientModels;
44
using ThomasBrown.PlayFab;
@@ -194,6 +194,21 @@ public static Task<PlayFabCommonResponse<AddFriendResult>> AddFriendAsync(AddFri
194194
});
195195
return taskCompletionSource.Task;
196196
}
197+
198+
/// <inheritdoc cref="PlayFabClientAPI.SetFriendTags"/>
199+
public static Task<PlayFabCommonResponse<SetFriendTagsResult>> SetFriendTagsAsync(SetFriendTagsRequest request)
200+
{
201+
var taskCompletionSource = new TaskCompletionSource<PlayFabCommonResponse<SetFriendTagsResult>>();
202+
PlayFabClientAPI.SetFriendTags(request, (result) =>
203+
{
204+
taskCompletionSource.SetResult(new PlayFabCommonResponse<SetFriendTagsResult>(result,null));
205+
}, (error) =>
206+
{
207+
taskCompletionSource.SetResult(new PlayFabCommonResponse<SetFriendTagsResult>(null, error));
208+
});
209+
return taskCompletionSource.Task;
210+
}
211+
197212
/// <inheritdoc cref="PlayFabClientAPI.GetTime"/>
198213
public static Task<PlayFabCommonResponse<GetTimeResult>> GetTimeAsync(
199214
GetTimeRequest request)

0 commit comments

Comments
 (0)