Skip to content

Commit ce1b49d

Browse files
AlmightyMikkelkirre-bylund
authored andcommitted
Made ListFeedback private
1 parent 410a07b commit ce1b49d

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5352,27 +5352,6 @@ public static void GetRemovedUGCForPlayer(GetRemovedUGCForPlayerInput input, Act
53525352

53535353
#region Feedback
53545354

5355-
/// <summary>
5356-
/// Returns a list of categories to be used for giving feedback.
5357-
/// </summary>
5358-
/// <param name="type">Type of feedback (player, game, ugc)</param>
5359-
/// <param name="onComplete">onComplete Action for handling the response of type ListLootLockerFeedbackCategoryResponse</param>
5360-
public static void ListFeedbackCategories(LootLockerFeedbackTypes type, Action<ListLootLockerFeedbackCategoryResponse> onComplete)
5361-
{
5362-
if (!CheckInitialized())
5363-
{
5364-
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<ListLootLockerFeedbackCategoryResponse>());
5365-
return;
5366-
}
5367-
5368-
EndPointClass endPoint = LootLockerEndPoints.listFeedbackCategories;
5369-
5370-
var formattedEndPoint = string.Format(endPoint.endPoint, type.ToString());
5371-
5372-
LootLockerServerRequest.CallAPI(formattedEndPoint, endPoint.httpMethod, onComplete: (serverResponse) => { LootLockerResponse.Deserialize(onComplete, serverResponse); });
5373-
}
5374-
5375-
53765355
/// <summary>
53775356
/// Returns a list of categories to be used for giving feedback about a certain player.
53785357
/// </summary>
@@ -5400,6 +5379,21 @@ public static void ListUgcFeedbackCategories(Action<ListLootLockerFeedbackCatego
54005379
ListFeedbackCategories(LootLockerFeedbackTypes.ugc, onComplete);
54015380
}
54025381

5382+
private static void ListFeedbackCategories(LootLockerFeedbackTypes type, Action<ListLootLockerFeedbackCategoryResponse> onComplete)
5383+
{
5384+
if (!CheckInitialized())
5385+
{
5386+
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<ListLootLockerFeedbackCategoryResponse>());
5387+
return;
5388+
}
5389+
5390+
EndPointClass endPoint = LootLockerEndPoints.listFeedbackCategories;
5391+
5392+
var formattedEndPoint = string.Format(endPoint.endPoint, type.ToString());
5393+
5394+
LootLockerServerRequest.CallAPI(formattedEndPoint, endPoint.httpMethod, onComplete: (serverResponse) => { LootLockerResponse.Deserialize(onComplete, serverResponse); });
5395+
}
5396+
54035397
/// <summary>
54045398
/// Sends a feedback with the given data, will return 204 upon successful request.
54055399
/// </summary>

0 commit comments

Comments
 (0)