@@ -5403,52 +5403,39 @@ public static void ListUgcFeedbackCategories(Action<ListLootLockerFeedbackCatego
5403
5403
/// <summary>
5404
5404
/// Sends a feedback with the given data, will return 204 upon successful request.
5405
5405
/// </summary>
5406
- /// <param name="type">Type of feedback (player, game, ugc)</param>
5407
- /// <param name="ulid">Ulid of what you're giving feedback about</param>
5406
+ /// <param name="ulid">Ulid of who you're giving feedback about</param>
5408
5407
/// <param name="description">Reason behind the report</param>
5409
5408
/// <param name="category_id">A unique identifier of what catagory the report should belong under</param>
5410
5409
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerResponse</param>
5411
- public static void SendFeedback ( LootLockerFeedbackTypes type , string ulid , string description , string category_id , Action < LootLockerResponse > onComplete )
5410
+ public static void SendPlayerFeedback ( string ulid , string description , string category_id , Action < LootLockerResponse > onComplete )
5412
5411
{
5413
- if ( ! CheckInitialized ( ) )
5414
- {
5415
- onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerResponse > ( ) ) ;
5416
- return ;
5417
- }
5418
- EndPointClass endPoint = LootLockerEndPoints . createFeedbackEntry ;
5419
-
5420
- var request = new LootLockerFeedbackRequest
5421
- {
5422
- entity = type . ToString ( ) ,
5423
- entity_id = ulid ,
5424
- description = description ,
5425
- category_id = category_id
5426
- } ;
5427
-
5428
- string json = LootLockerJson . SerializeObject ( request ) ;
5429
-
5430
- LootLockerServerRequest . CallAPI ( endPoint . endPoint , endPoint . httpMethod , json , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
5412
+ SendFeedback ( LootLockerFeedbackTypes . player , ulid , description , category_id , onComplete ) ;
5431
5413
}
5432
5414
5433
5415
/// <summary>
5434
5416
/// Sends a feedback with the given data, will return 204 upon successful request.
5435
5417
/// </summary>
5436
- /// <param name="ulid">Ulid of who you're giving feedback about</param>
5437
5418
/// <param name="description">Reason behind the report</param>
5438
5419
/// <param name="category_id">A unique identifier of what catagory the report should belong under</param>
5439
5420
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerResponse</param>
5440
- public static void SendPlayerFeedback ( string ulid , string description , string category_id , Action < LootLockerResponse > onComplete )
5421
+ public static void SendGameFeedback ( string description , string category_id , Action < LootLockerResponse > onComplete )
5441
5422
{
5442
- SendFeedback ( LootLockerFeedbackTypes . player , ulid , description , category_id , onComplete ) ;
5423
+ SendFeedback ( LootLockerFeedbackTypes . game , "" , description , category_id , onComplete ) ;
5443
5424
}
5444
5425
5445
5426
/// <summary>
5446
5427
/// Sends a feedback with the given data, will return 204 upon successful request.
5447
5428
/// </summary>
5429
+ /// <param name="ulid">Ulid of which asset you're giving feedback about</param>
5448
5430
/// <param name="description">Reason behind the report</param>
5449
5431
/// <param name="category_id">A unique identifier of what catagory the report should belong under</param>
5450
5432
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerResponse</param>
5451
- public static void SendGameFeedback ( string description , string category_id , Action < LootLockerResponse > onComplete )
5433
+ public static void SendUGCFeedback ( string ulid , string description , string category_id , Action < LootLockerResponse > onComplete )
5434
+ {
5435
+ SendFeedback ( LootLockerFeedbackTypes . ugc , ulid , description , category_id , onComplete ) ;
5436
+ }
5437
+
5438
+ private static void SendFeedback ( LootLockerFeedbackTypes type , string ulid , string description , string category_id , Action < LootLockerResponse > onComplete )
5452
5439
{
5453
5440
if ( ! CheckInitialized ( ) )
5454
5441
{
@@ -5459,7 +5446,8 @@ public static void SendGameFeedback(string description, string category_id, Acti
5459
5446
5460
5447
var request = new LootLockerFeedbackRequest
5461
5448
{
5462
- entity = LootLockerFeedbackTypes . game . ToString ( ) ,
5449
+ entity = type . ToString ( ) ,
5450
+ entity_id = ulid ,
5463
5451
description = description ,
5464
5452
category_id = category_id
5465
5453
} ;
@@ -5469,18 +5457,6 @@ public static void SendGameFeedback(string description, string category_id, Acti
5469
5457
LootLockerServerRequest . CallAPI ( endPoint . endPoint , endPoint . httpMethod , json , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
5470
5458
}
5471
5459
5472
- /// <summary>
5473
- /// Sends a feedback with the given data, will return 204 upon successful request.
5474
- /// </summary>
5475
- /// <param name="ulid">Ulid of which asset you're giving feedback about</param>
5476
- /// <param name="description">Reason behind the report</param>
5477
- /// <param name="category_id">A unique identifier of what catagory the report should belong under</param>
5478
- /// <param name="onComplete">onComplete Action for handling the response of type LootLockerResponse</param>
5479
- public static void SendUGCFeedback ( string ulid , string description , string category_id , Action < LootLockerResponse > onComplete )
5480
- {
5481
- SendFeedback ( LootLockerFeedbackTypes . ugc , ulid , description , category_id , onComplete ) ;
5482
- }
5483
-
5484
5460
#endregion
5485
5461
5486
5462
#region Currency
0 commit comments