Skip to content

Commit 6f5c6a8

Browse files
committed
Added some new response values and removed some that doesn't seem supported anymore. Did some refactoring as well and extended the test cases quite a lot.
1 parent 3b0b685 commit 6f5c6a8

29 files changed

+456
-173
lines changed

PsnApiWrapperNet/Model/Auth.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
namespace PsnApiWrapperNet.Model
22
{
3-
class Auth
3+
public class Auth
44
{
55
public string access_token { get; set; }
66
public int expires_in { get; set; }
77
public string id_token { get; set; }
8+
public string refresh_token { get; set; }
9+
public int refresh_token_expires_in { get; set; }
810
public string scope { get; set; }
911
public string token_type { get; set; }
1012
}

PsnApiWrapperNet/Model/Concept.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ namespace PsnApiWrapperNet.Model
44
{
55
public class Concept
66
{
7+
public string country { get; set; }
78
public List<string> genres { get; set; }
89
public int id { get; set; }
10+
public string language { get; set; }
11+
public LocalizedName localizedName { get; set; }
12+
public Media media { get; set; }
913
public string name { get; set; }
10-
public List<string> subGenres { get; set; }
11-
public List<object> titleIds { get; set; }
14+
public List<string> titleIds { get; set; }
1215
}
1316
}

PsnApiWrapperNet/Model/DomainResponse.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ namespace PsnApiWrapperNet.Model
55
public class DomainResponse
66
{
77
public string domain { get; set; }
8-
public List<string> facetOptions { get; set; }
8+
public string domainExpandedTitle { get; set; }
9+
public string domainTitle { get; set; }
10+
public List<string> domainTitleHighlight { get; set; }
11+
public string domainTitleMessageId { get; set; }
912
public string next { get; set; }
1013
public List<SearchResult> results { get; set; }
1114
public int totalResultCount { get; set; }
12-
public string univexId { get; set; }
1315
public bool zeroState { get; set; }
1416
}
1517
}

PsnApiWrapperNet/Model/GameListTitle.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public class GameListTitle
1717
public int playCount { get; set; }
1818
public string playDuration { get; set; }
1919
public string service { get; set; }
20-
public List<object> stats { get; set; }
2120
public string titleId { get; set; }
2221
}
2322
}

PsnApiWrapperNet/Model/Image.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
public class Image
44
{
5+
public string format { get; set; }
56
public string type { get; set; }
67
public string url { get; set; }
78
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace PsnApiWrapperNet.Model
2+
{
3+
public class LocalizedName
4+
{
5+
public string defaultLanguage { get; set; }
6+
public object metadata { get; set; }
7+
}
8+
}

PsnApiWrapperNet/Model/PlayerSummary.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ public class PlayerSummary
77
public int progress { get; set; }
88
public int tier { get; set; }
99
public int trophyLevel { get; set; }
10+
public int trophyLevelBasePoint { get; set; }
11+
public int trophyLevelNextPoint { get; set; }
12+
public int trophyPoint { get; set; }
1013
}
1114
}

PsnApiWrapperNet/Model/PlayerTrophies.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

PsnApiWrapperNet/Model/PlayerTrophy.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

PsnApiWrapperNet/Model/PlayerTrophyGroup.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)