public void Set(SessionModificationSetInvitesAllowedOptions other) { if (other != null) { m_ApiVersion = SessionModification.SessionmodificationSetinvitesallowedApiLatest; InvitesAllowed = other.InvitesAllowed; } }
/// <summary> /// Allows enabling or disabling invites for this session. /// The session will also need to have `bPresenceEnabled` true. /// </summary> /// <param name="options">Options associated with invites allowed flag for this session.</param> /// <returns> /// <see cref="Result.Success" /> if setting this parameter was successful /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect /// </returns> public Result SetInvitesAllowed(SessionModificationSetInvitesAllowedOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <SessionModificationSetInvitesAllowedOptionsInternal, SessionModificationSetInvitesAllowedOptions>(ref optionsAddress, options); var funcResult = EOS_SessionModification_SetInvitesAllowed(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }