Skip to content

Commit

Permalink
https://api.playfab.com/releaseNotes/#160725
Browse files Browse the repository at this point in the history
  • Loading branch information
pgilmorepf committed Jul 25, 2016
2 parents fdb9834 + bfe44e6 commit be429eb
Show file tree
Hide file tree
Showing 14 changed files with 146 additions and 45 deletions.
73 changes: 61 additions & 12 deletions PlayFabClientSDK/source/PlayFabClientModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,23 @@ public enum CloudScriptRevisionOption
Latest,
Specific
}
/// <summary>
/// Collection filter to include and/or exclude collections with certain key-value pairs. The filter generates a collection set defined by Includes rules and then remove collections that matches the Excludes rules. A collection is considered matching a rule if the rule describes a subset of the collection.
/// </summary>
public class CollectionFilter
{
/// <summary>
/// List of Include rules, with any of which if a collection matches, it is included by the filter, unless it is excluded by one of the Exclude rule
/// </summary>
public List<Container_Dictionary_String_String> Includes { get; set;}

/// <summary>
/// List of Exclude rules, with any of which if a collection matches, it is excluded by the filter.
/// </summary>
public List<Container_Dictionary_String_String> Excludes { get; set;}

}

public class ConfirmPurchaseRequest
{
/// <summary>
Expand Down Expand Up @@ -534,6 +551,18 @@ public class ConsumeItemResult : PlayFabResultCommon

}

/// <summary>
/// A data container
/// </summary>
public class Container_Dictionary_String_String
{
/// <summary>
/// Content of data
/// </summary>
public Dictionary<string,string> Data { get; set;}

}

public class CreateSharedGroupRequest
{
/// <summary>
Expand Down Expand Up @@ -721,26 +750,31 @@ public enum Currency
public class CurrentGamesRequest
{
/// <summary>
/// region to check for game instances
/// Region to check for Game Server Instances.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public Region? Region { get; set;}

/// <summary>
/// version of build to match against
/// Build to match against.
/// </summary>
public string BuildVersion { get; set;}

/// <summary>
/// game mode to look for (optional)
/// Game mode to look for.
/// </summary>
public string GameMode { get; set;}

/// <summary>
/// statistic name to find statistic-based matches (optional)
/// Statistic name to find statistic-based matches.
/// </summary>
public string StatisticName { get; set;}

/// <summary>
/// Filter to include and/or exclude Game Server Instances associated with certain tags.
/// </summary>
public CollectionFilter TagFilter { get; set;}

}

public class CurrentGamesResult : PlayFabResultCommon
Expand Down Expand Up @@ -945,7 +979,7 @@ public class GameInfo
public int? MaxPlayers { get; set;}

/// <summary>
/// array of strings of current player names on this server (note that these are PlayFab usernames, as opposed to title display names)
/// array of current player IDs on this server
/// </summary>
public List<string> PlayerUserIds { get; set;}

Expand All @@ -965,6 +999,16 @@ public class GameInfo
/// </summary>
public string GameServerData { get; set;}

/// <summary>
/// game session tags
/// </summary>
public Dictionary<string,string> Tags { get; set;}

/// <summary>
/// last heartbeat of the game server instance, used in external game server provider mode
/// </summary>
public DateTime? LastHeartbeat { get; set;}

}


Expand Down Expand Up @@ -2918,41 +2962,46 @@ public class LogStatement
public class MatchmakeRequest
{
/// <summary>
/// build version to match against [Note: Required if LobbyId is not specified]
/// Build version to match against. [Note: Required if LobbyId is not specified]
/// </summary>
public string BuildVersion { get; set;}

/// <summary>
/// region to match make against [Note: Required if LobbyId is not specified]
/// Region to match make against. [Note: Required if LobbyId is not specified]
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public Region? Region { get; set;}

/// <summary>
/// game mode to match make against [Note: Required if LobbyId is not specified]
/// Game mode to match make against. [Note: Required if LobbyId is not specified]
/// </summary>
public string GameMode { get; set;}

/// <summary>
/// lobby identifier to match make against (used to select a specific server)
/// Lobby identifier to match make against. This is used to select a specific Game Server Instance.
/// </summary>
public string LobbyId { get; set;}

/// <summary>
/// player statistic to use in finding a match. May be null for no stat-based matching
/// Player statistic to use in finding a match. May be null for no stat-based matching.
/// </summary>
public string StatisticName { get; set;}

/// <summary>
/// character to use for stats based matching. Leave null to use account stats
/// Character to use for stats based matching. Leave null to use account stats.
/// </summary>
public string CharacterId { get; set;}

/// <summary>
/// start a game session if one with an open slot is not found. Defaults to true
/// Start a game session if one with an open slot is not found. Defaults to true.
/// </summary>
public bool? StartNewIfNoneFound { get; set;}

/// <summary>
/// Filter to include and/or exclude Game Server Instances associated with certain Tags
/// </summary>
public CollectionFilter TagFilter { get; set;}

/// <summary>
/// [deprecated]
/// </summary>
Expand Down
5 changes: 3 additions & 2 deletions PlayFabClientSDK/source/PlayFabErrors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public enum PlayFabErrorCode
InvalidReportDate = 1111,
ReportNotAvailable = 1112,
DatabaseThroughputExceeded = 1113,
InvalidLobbyId = 1114,
InvalidGameTicket = 1115,
ExpiredGameTicket = 1116,
GameTicketDoesNotMatchLobby = 1117,
Expand Down Expand Up @@ -235,7 +234,9 @@ public enum PlayFabErrorCode
VirtualCurrencyCodeExists = 1230,
TitleNewsItemCountLimitExceeded = 1231,
InvalidTwitchToken = 1232,
TwitchResponseError = 1233
TwitchResponseError = 1233,
ProfaneDisplayName = 1234,
UserAlreadyAdded = 1235
}

public class PlayFabError
Expand Down
6 changes: 3 additions & 3 deletions PlayFabClientSDK/source/PlayFabSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ namespace PlayFab
{
public class PlayFabSettings
{
public const string SdkVersion = "0.31.160714";
public const string BuildIdentifier = "jbuild_csharpsdk_1";
public const string SdkVersionString = "CSharpSDK-0.31.160714";
public const string SdkVersion = "0.32.160725";
public const string BuildIdentifier = "jbuild_csharpsdk_0";
public const string SdkVersionString = "CSharpSDK-0.32.160725";

/// <summary> This is for PlayFab internal debugging. Generally you shouldn't touch this </summary>
public static bool UseDevelopmentEnvironment = false;
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/source/PlayFabAdminModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2573,7 +2573,7 @@ public class UserXboxInfo
public class VirtualCurrencyData
{
/// <summary>
/// unique two-character identifier for this currency type (e.g.: "CC", "GC")
/// unique one- or two-character identifier for this currency type (e.g.: "CC", "G")
/// </summary>
public string CurrencyCode { get; set;}

Expand Down
73 changes: 61 additions & 12 deletions PlayFabSDK/source/PlayFabClientModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,23 @@ public enum CloudScriptRevisionOption
Latest,
Specific
}
/// <summary>
/// Collection filter to include and/or exclude collections with certain key-value pairs. The filter generates a collection set defined by Includes rules and then remove collections that matches the Excludes rules. A collection is considered matching a rule if the rule describes a subset of the collection.
/// </summary>
public class CollectionFilter
{
/// <summary>
/// List of Include rules, with any of which if a collection matches, it is included by the filter, unless it is excluded by one of the Exclude rule
/// </summary>
public List<Container_Dictionary_String_String> Includes { get; set;}

/// <summary>
/// List of Exclude rules, with any of which if a collection matches, it is excluded by the filter.
/// </summary>
public List<Container_Dictionary_String_String> Excludes { get; set;}

}

public class ConfirmPurchaseRequest
{
/// <summary>
Expand Down Expand Up @@ -534,6 +551,18 @@ public class ConsumeItemResult : PlayFabResultCommon

}

/// <summary>
/// A data container
/// </summary>
public class Container_Dictionary_String_String
{
/// <summary>
/// Content of data
/// </summary>
public Dictionary<string,string> Data { get; set;}

}

public class CreateSharedGroupRequest
{
/// <summary>
Expand Down Expand Up @@ -721,26 +750,31 @@ public enum Currency
public class CurrentGamesRequest
{
/// <summary>
/// region to check for game instances
/// Region to check for Game Server Instances.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public Region? Region { get; set;}

/// <summary>
/// version of build to match against
/// Build to match against.
/// </summary>
public string BuildVersion { get; set;}

/// <summary>
/// game mode to look for (optional)
/// Game mode to look for.
/// </summary>
public string GameMode { get; set;}

/// <summary>
/// statistic name to find statistic-based matches (optional)
/// Statistic name to find statistic-based matches.
/// </summary>
public string StatisticName { get; set;}

/// <summary>
/// Filter to include and/or exclude Game Server Instances associated with certain tags.
/// </summary>
public CollectionFilter TagFilter { get; set;}

}

public class CurrentGamesResult : PlayFabResultCommon
Expand Down Expand Up @@ -945,7 +979,7 @@ public class GameInfo
public int? MaxPlayers { get; set;}

/// <summary>
/// array of strings of current player names on this server (note that these are PlayFab usernames, as opposed to title display names)
/// array of current player IDs on this server
/// </summary>
public List<string> PlayerUserIds { get; set;}

Expand All @@ -965,6 +999,16 @@ public class GameInfo
/// </summary>
public string GameServerData { get; set;}

/// <summary>
/// game session tags
/// </summary>
public Dictionary<string,string> Tags { get; set;}

/// <summary>
/// last heartbeat of the game server instance, used in external game server provider mode
/// </summary>
public DateTime? LastHeartbeat { get; set;}

}


Expand Down Expand Up @@ -2918,41 +2962,46 @@ public class LogStatement
public class MatchmakeRequest
{
/// <summary>
/// build version to match against [Note: Required if LobbyId is not specified]
/// Build version to match against. [Note: Required if LobbyId is not specified]
/// </summary>
public string BuildVersion { get; set;}

/// <summary>
/// region to match make against [Note: Required if LobbyId is not specified]
/// Region to match make against. [Note: Required if LobbyId is not specified]
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public Region? Region { get; set;}

/// <summary>
/// game mode to match make against [Note: Required if LobbyId is not specified]
/// Game mode to match make against. [Note: Required if LobbyId is not specified]
/// </summary>
public string GameMode { get; set;}

/// <summary>
/// lobby identifier to match make against (used to select a specific server)
/// Lobby identifier to match make against. This is used to select a specific Game Server Instance.
/// </summary>
public string LobbyId { get; set;}

/// <summary>
/// player statistic to use in finding a match. May be null for no stat-based matching
/// Player statistic to use in finding a match. May be null for no stat-based matching.
/// </summary>
public string StatisticName { get; set;}

/// <summary>
/// character to use for stats based matching. Leave null to use account stats
/// Character to use for stats based matching. Leave null to use account stats.
/// </summary>
public string CharacterId { get; set;}

/// <summary>
/// start a game session if one with an open slot is not found. Defaults to true
/// Start a game session if one with an open slot is not found. Defaults to true.
/// </summary>
public bool? StartNewIfNoneFound { get; set;}

/// <summary>
/// Filter to include and/or exclude Game Server Instances associated with certain Tags
/// </summary>
public CollectionFilter TagFilter { get; set;}

/// <summary>
/// [deprecated]
/// </summary>
Expand Down
5 changes: 3 additions & 2 deletions PlayFabSDK/source/PlayFabErrors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public enum PlayFabErrorCode
InvalidReportDate = 1111,
ReportNotAvailable = 1112,
DatabaseThroughputExceeded = 1113,
InvalidLobbyId = 1114,
InvalidGameTicket = 1115,
ExpiredGameTicket = 1116,
GameTicketDoesNotMatchLobby = 1117,
Expand Down Expand Up @@ -235,7 +234,9 @@ public enum PlayFabErrorCode
VirtualCurrencyCodeExists = 1230,
TitleNewsItemCountLimitExceeded = 1231,
InvalidTwitchToken = 1232,
TwitchResponseError = 1233
TwitchResponseError = 1233,
ProfaneDisplayName = 1234,
UserAlreadyAdded = 1235
}

public class PlayFabError
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/source/PlayFabMatchmakerModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public class StartGameRequest
public class StartGameResponse : PlayFabResultCommon
{
/// <summary>
/// Unique identifier for the lobby in the new Game Server Instance.
/// Unique identifier for the game/lobby in the new Game Server Instance.
/// </summary>
public string GameID { get; set;}

Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/source/PlayFabServerAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ public static async Task<PlayFabResult<SetGameServerInstanceDataResult>> SetGame
}

/// <summary>
/// Sets the state of the indicated Game Server Instance
/// Set the state of the indicated Game Server Instance.
/// </summary>
public static async Task<PlayFabResult<SetGameServerInstanceStateResult>> SetGameServerInstanceStateAsync(SetGameServerInstanceStateRequest request)
{
Expand Down
Loading

0 comments on commit be429eb

Please sign in to comment.