public void Set(PresenceModificationSetJoinInfoOptions other) { if (other != null) { m_ApiVersion = PresenceModification.PresencemodificationSetjoininfoApiLatest; JoinInfo = other.JoinInfo; } }
/// <summary> /// Sets your new join info custom game-data string. This is a helper function for reading the presence data related to how a user can be joined. /// Its meaning is entirely application dependent. /// <seealso cref="PresencemodificationJoininfoMaxLength" /> /// </summary> /// <param name="options">Object containing a join info string and associated user data</param> /// <returns> /// Success if modification was added successfully, otherwise an error code related to the problem /// </returns> public Result SetJoinInfo(PresenceModificationSetJoinInfoOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <PresenceModificationSetJoinInfoOptionsInternal, PresenceModificationSetJoinInfoOptions>(ref optionsAddress, options); var funcResult = EOS_PresenceModification_SetJoinInfo(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }