Skip to content

Commit 7930ae1

Browse files
author
Paul Gilmore
committed
Merge pull request #7 from PlayFab/master
Updating all SDKs after changes to API_Specs
2 parents df80158 + fec6458 commit 7930ae1

File tree

6 files changed

+58
-10
lines changed

6 files changed

+58
-10
lines changed

PlayFabClientSDK/src/playfab/PlayFabClientModels.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public static class CatalogItem implements Comparable<CatalogItem> {
187187
*/
188188
public String ItemClass;
189189
/**
190-
* catalog item for this item
190+
* catalog version for this item
191191
*/
192192
public String CatalogVersion;
193193
/**
@@ -239,6 +239,10 @@ public static class CatalogItem implements Comparable<CatalogItem> {
239239
* if true, then an item instance of this type can be traded between players using the trading APIs
240240
*/
241241
public Boolean IsTradable;
242+
/**
243+
* URL to the item image. For Facebook purchase to display the image on the item purchase page, this must be set to an HTTP URL.
244+
*/
245+
public String ItemImageUrl;
242246

243247
public int compareTo(CatalogItem other) {
244248
if (other == null || other.ItemId == null) return 1;
@@ -874,6 +878,10 @@ public static class GetCharacterInventoryResult {
874878
* Array of virtual currency balance(s) belonging to the character.
875879
*/
876880
public Map<String,Integer> VirtualCurrency;
881+
/**
882+
* Array of remaining times and timestamps for virtual currencies.
883+
*/
884+
public Map<String,VirtualCurrencyRechargeTime> VirtualCurrencyRechargeTimes;
877885

878886
}
879887

@@ -1660,6 +1668,10 @@ public static class LinkFacebookAccountRequest {
16601668
* Unique identifier from Facebook for the user.
16611669
*/
16621670
public String AccessToken;
1671+
/**
1672+
* If this Facebook account is already linked to a Playfab account, this will unlink the old account before linking the new one. Be careful when using this call, as it may orphan the old account. Defaults to false.
1673+
*/
1674+
public Boolean ForceLink;
16631675

16641676
}
16651677

@@ -1715,7 +1727,7 @@ public static class LinkKongregateAccountRequest {
17151727
/**
17161728
* Numeric user ID assigned by Kongregate
17171729
*/
1718-
public Long KongregateId;
1730+
public String KongregateId;
17191731
/**
17201732
* Valid session auth ticket issued by Kongregate
17211733
*/
@@ -1933,7 +1945,7 @@ public static class LoginWithKongregateRequest {
19331945
/**
19341946
* Unique identifier from Kongregate for the user.
19351947
*/
1936-
public Long KongregateId;
1948+
public String KongregateId;
19371949
/**
19381950
* Token issued by Kongregate's client API for the user.
19391951
*/

PlayFabSDK/src/playfab/PlayFabAdminModels.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static class CatalogItem implements Comparable<CatalogItem> {
137137
*/
138138
public String ItemClass;
139139
/**
140-
* catalog item for this item
140+
* catalog version for this item
141141
*/
142142
public String CatalogVersion;
143143
/**
@@ -189,6 +189,10 @@ public static class CatalogItem implements Comparable<CatalogItem> {
189189
* if true, then an item instance of this type can be traded between players using the trading APIs
190190
*/
191191
public Boolean IsTradable;
192+
/**
193+
* URL to the item image. For Facebook purchase to display the image on the item purchase page, this must be set to an HTTP URL.
194+
*/
195+
public String ItemImageUrl;
192196

193197
public int compareTo(CatalogItem other) {
194198
if (other == null || other.ItemId == null) return 1;

PlayFabSDK/src/playfab/PlayFabClientModels.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public static class CatalogItem implements Comparable<CatalogItem> {
187187
*/
188188
public String ItemClass;
189189
/**
190-
* catalog item for this item
190+
* catalog version for this item
191191
*/
192192
public String CatalogVersion;
193193
/**
@@ -239,6 +239,10 @@ public static class CatalogItem implements Comparable<CatalogItem> {
239239
* if true, then an item instance of this type can be traded between players using the trading APIs
240240
*/
241241
public Boolean IsTradable;
242+
/**
243+
* URL to the item image. For Facebook purchase to display the image on the item purchase page, this must be set to an HTTP URL.
244+
*/
245+
public String ItemImageUrl;
242246

243247
public int compareTo(CatalogItem other) {
244248
if (other == null || other.ItemId == null) return 1;
@@ -874,6 +878,10 @@ public static class GetCharacterInventoryResult {
874878
* Array of virtual currency balance(s) belonging to the character.
875879
*/
876880
public Map<String,Integer> VirtualCurrency;
881+
/**
882+
* Array of remaining times and timestamps for virtual currencies.
883+
*/
884+
public Map<String,VirtualCurrencyRechargeTime> VirtualCurrencyRechargeTimes;
877885

878886
}
879887

@@ -1660,6 +1668,10 @@ public static class LinkFacebookAccountRequest {
16601668
* Unique identifier from Facebook for the user.
16611669
*/
16621670
public String AccessToken;
1671+
/**
1672+
* If this Facebook account is already linked to a Playfab account, this will unlink the old account before linking the new one. Be careful when using this call, as it may orphan the old account. Defaults to false.
1673+
*/
1674+
public Boolean ForceLink;
16631675

16641676
}
16651677

@@ -1715,7 +1727,7 @@ public static class LinkKongregateAccountRequest {
17151727
/**
17161728
* Numeric user ID assigned by Kongregate
17171729
*/
1718-
public Long KongregateId;
1730+
public String KongregateId;
17191731
/**
17201732
* Valid session auth ticket issued by Kongregate
17211733
*/
@@ -1933,7 +1945,7 @@ public static class LoginWithKongregateRequest {
19331945
/**
19341946
* Unique identifier from Kongregate for the user.
19351947
*/
1936-
public Long KongregateId;
1948+
public String KongregateId;
19371949
/**
19381950
* Token issued by Kongregate's client API for the user.
19391951
*/

PlayFabSDK/src/playfab/PlayFabServerModels.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public static class CatalogItem implements Comparable<CatalogItem> {
141141
*/
142142
public String ItemClass;
143143
/**
144-
* catalog item for this item
144+
* catalog version for this item
145145
*/
146146
public String CatalogVersion;
147147
/**
@@ -193,6 +193,10 @@ public static class CatalogItem implements Comparable<CatalogItem> {
193193
* if true, then an item instance of this type can be traded between players using the trading APIs
194194
*/
195195
public Boolean IsTradable;
196+
/**
197+
* URL to the item image. For Facebook purchase to display the image on the item purchase page, this must be set to an HTTP URL.
198+
*/
199+
public String ItemImageUrl;
196200

197201
public int compareTo(CatalogItem other) {
198202
if (other == null || other.ItemId == null) return 1;
@@ -651,6 +655,10 @@ public static class GetCharacterInventoryResult {
651655
* Array of virtual currency balance(s) belonging to the character.
652656
*/
653657
public Map<String,Integer> VirtualCurrency;
658+
/**
659+
* Array of remaining times and timestamps for virtual currencies.
660+
*/
661+
public Map<String,VirtualCurrencyRechargeTime> VirtualCurrencyRechargeTimes;
654662

655663
}
656664

PlayFabServerSDK/src/playfab/PlayFabAdminModels.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static class CatalogItem implements Comparable<CatalogItem> {
137137
*/
138138
public String ItemClass;
139139
/**
140-
* catalog item for this item
140+
* catalog version for this item
141141
*/
142142
public String CatalogVersion;
143143
/**
@@ -189,6 +189,10 @@ public static class CatalogItem implements Comparable<CatalogItem> {
189189
* if true, then an item instance of this type can be traded between players using the trading APIs
190190
*/
191191
public Boolean IsTradable;
192+
/**
193+
* URL to the item image. For Facebook purchase to display the image on the item purchase page, this must be set to an HTTP URL.
194+
*/
195+
public String ItemImageUrl;
192196

193197
public int compareTo(CatalogItem other) {
194198
if (other == null || other.ItemId == null) return 1;

PlayFabServerSDK/src/playfab/PlayFabServerModels.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public static class CatalogItem implements Comparable<CatalogItem> {
141141
*/
142142
public String ItemClass;
143143
/**
144-
* catalog item for this item
144+
* catalog version for this item
145145
*/
146146
public String CatalogVersion;
147147
/**
@@ -193,6 +193,10 @@ public static class CatalogItem implements Comparable<CatalogItem> {
193193
* if true, then an item instance of this type can be traded between players using the trading APIs
194194
*/
195195
public Boolean IsTradable;
196+
/**
197+
* URL to the item image. For Facebook purchase to display the image on the item purchase page, this must be set to an HTTP URL.
198+
*/
199+
public String ItemImageUrl;
196200

197201
public int compareTo(CatalogItem other) {
198202
if (other == null || other.ItemId == null) return 1;
@@ -651,6 +655,10 @@ public static class GetCharacterInventoryResult {
651655
* Array of virtual currency balance(s) belonging to the character.
652656
*/
653657
public Map<String,Integer> VirtualCurrency;
658+
/**
659+
* Array of remaining times and timestamps for virtual currencies.
660+
*/
661+
public Map<String,VirtualCurrencyRechargeTime> VirtualCurrencyRechargeTimes;
654662

655663
}
656664

0 commit comments

Comments
 (0)