Package host.anzo.eossdk.eos.sdk.lobby
Class EOS_LobbySearch
java.lang.Object
com.sun.jna.PointerType
host.anzo.eossdk.eos.sdk.lobby.EOS_LobbySearch
- All Implemented Interfaces:
com.sun.jna.NativeMapped
public class EOS_LobbySearch
extends com.sun.jna.PointerType
Class responsible for the creation, setup, and execution of a search query.
Search parameters are defined, the query is executed and the search results are returned within this object
- Since:
- 8/16/2023
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopySearchResultByIndex(EOS_LobbySearch_CopySearchResultByIndexOptions options, EOS_LobbyDetails outLobbyDetailsHandle) EOS_LobbySearch_CopySearchResultByIndex is used to immediately retrieve a handle to the lobby information from a given search result.voidfind(EOS_LobbySearch_FindOptions options, com.sun.jna.Pointer clientData, EOS_LobbySearch_OnFindCallback completionDelegate) Find lobbies matching the search criteria setup via this lobby search handle.intGet the number of search results found by the search parameters in this searchRemove a parameter from the array of search criteria.Set a lobby ID to find and will return at most one search result.Set the maximum number of search results to return in the query, can't be more than EOS_LOBBY_MAX_SEARCH_RESULTSAdd a parameter to an array of search criteria combined via an implicit AND operator.Set a target user ID to find.Methods inherited from class com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Constructor Details
-
EOS_LobbySearch
public EOS_LobbySearch(com.sun.jna.Pointer address) -
EOS_LobbySearch
public EOS_LobbySearch()
-
-
Method Details
-
find
public void find(EOS_LobbySearch_FindOptions options, com.sun.jna.Pointer clientData, EOS_LobbySearch_OnFindCallback completionDelegate) Find lobbies matching the search criteria setup via this lobby search handle. When the operation completes, this handle will have the search results that can be parsed- Parameters:
options- Structure containing information about the search criteria to useclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the search operation completes, either successfully or in error
-
setLobbyId
Set a lobby ID to find and will return at most one search result. Setting TargetUserId or SearchParameters will result in EOS_LobbySearch_Find failing- Parameters:
options- A specific lobby ID for which to search- Returns:
EOS_EResult.EOS_Successif setting this lobby ID was successfulEOS_EResult.EOS_InvalidParametersif the lobby ID is invalid or nullEOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
setTargetUserId
Set a target user ID to find. Setting LobbyId or SearchParameters will result in EOS_LobbySearch_Find failing
A search result will only be found if this user is in a public lobby- Parameters:
options- a specific target user ID to find- Returns:
EOS_EResult.EOS_Successif setting this target user ID was successful
EOS_EResult.EOS_InvalidParametersif the target user ID is invalid or null
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
setParameter
Add a parameter to an array of search criteria combined via an implicit AND operator. Setting LobbyId or TargetUserId will result in EOS_LobbySearch_Find failing- Parameters:
options- a search parameter and its comparison op- Returns:
EOS_EResult.EOS_Successif setting this search parameter was successfulEOS_EResult.EOS_InvalidParametersif the search criteria is invalid or nullEOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect- See Also:
-
removeParameter
Remove a parameter from the array of search criteria.- Parameters:
options- a search parameter key name to remove- Returns:
EOS_EResult.EOS_Successif removing this search parameter was successfulEOS_EResult.EOS_InvalidParametersif the search key is invalid or nullEOS_EResult.EOS_NotFoundif the parameter was not a part of the search criteriaEOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
setMaxResults
Set the maximum number of search results to return in the query, can't be more than EOS_LOBBY_MAX_SEARCH_RESULTS- Parameters:
options- maximum number of search results to return in the query- Returns:
EOS_EResult.EOS_Successif setting the max results was successfulEOS_EResult.EOS_InvalidParametersif the number of results requested is invalidEOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
getSearchResultCount
Get the number of search results found by the search parameters in this search- Parameters:
options- Options associated with the search count- Returns:
- return the number of search results found by the query or 0 if search is not complete
-
copySearchResultByIndex
public EOS_EResult copySearchResultByIndex(EOS_LobbySearch_CopySearchResultByIndexOptions options, EOS_LobbyDetails outLobbyDetailsHandle) EOS_LobbySearch_CopySearchResultByIndex is used to immediately retrieve a handle to the lobby information from a given search result. If the call returns an EOS_Success result, the out parameter, OutLobbyDetailsHandle, must be passed to EOS_LobbyDetails_Release to release the memory associated with it.- Parameters:
options- Structure containing the input parametersoutLobbyDetailsHandle- out parameter used to receive the lobby details handle- Returns:
EOS_EResult.EOS_Successif the information is available and passed out in OutLobbyDetailsHandleEOS_EResult.EOS_InvalidParametersif you pass an invalid index or a null pointer for the out parameterEOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect- See Also:
-