public void Set(PresenceModificationSetRawRichTextOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = PresenceModification.PresencemodificationSetrawrichtextApiLatest;
         RichText     = other.RichText;
     }
 }
        /// <summary>
        /// Modifies a user's Rich Presence string to a new state. This is the exact value other users will see
        /// when they query the local user's presence.
        /// <seealso cref="PresenceInterface.RichTextMaxValueLength" />
        /// </summary>
        /// <param name="options">Object containing properties related to setting a user's RichText string</param>
        /// <returns>
        /// Success if modification was added successfully, otherwise an error code related to the problem
        /// </returns>
        public Result SetRawRichText(PresenceModificationSetRawRichTextOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <PresenceModificationSetRawRichTextOptionsInternal, PresenceModificationSetRawRichTextOptions>(ref optionsAddress, options);

            var funcResult = EOS_PresenceModification_SetRawRichText(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }