public void Set(LobbySearchSetLobbyIdOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = LobbySearch.LobbysearchSetlobbyidApiLatest;
         LobbyId      = other.LobbyId;
     }
 }
        /// <summary>
        /// Set a lobby ID to find and will return at most one search result. Setting TargetUserId or SearchParameters will result in <see cref="Find" /> failing
        /// </summary>
        /// <param name="options">A specific lobby ID for which to search</param>
        /// <returns>
        /// <see cref="Result.Success" /> if setting this lobby ID was successful
        /// <see cref="Result.InvalidParameters" /> if the lobby ID is invalid or null
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result SetLobbyId(LobbySearchSetLobbyIdOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <LobbySearchSetLobbyIdOptionsInternal, LobbySearchSetLobbyIdOptions>(ref optionsAddress, options);

            var funcResult = EOS_LobbySearch_SetLobbyId(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }
        /// <summary>
        /// Short SetLobbyId
        /// </summary>
        /// <param name="search">LobbySearch</param>
        /// <param name="lobbyId">Lobby id</param>
        public static void SetLobbyId(this LobbySearch search, string lobbyId)
        {
            var op = new LobbySearchSetLobbyIdOptions
            {
                LobbyId = lobbyId
            };
            var result = search.SetLobbyId(op);

            if (result != Result.Success)
            {
                Debug.LogError($"error {DebugTools.GetClassMethodName()}:{result}");
            }
        }