public void Set(PresenceModificationSetDataOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = PresenceModification.PresencemodificationSetdataApiLatest;
         Records      = other.Records;
     }
 }
        /// <summary>
        /// Modifies one or more rows of user-defined presence data for a local user. At least one InfoData object
        /// must be specified.
        /// <seealso cref="PresenceInterface.DataMaxKeys" />
        /// <seealso cref="PresenceInterface.DataMaxKeyLength" />
        /// <seealso cref="PresenceInterface.DataMaxValueLength" />
        /// </summary>
        /// <param name="options">Object containing an array of new presence data.</param>
        /// <returns>
        /// Success if modification was added successfully, otherwise an error code related to the problem
        /// </returns>
        public Result SetData(PresenceModificationSetDataOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <PresenceModificationSetDataOptionsInternal, PresenceModificationSetDataOptions>(ref optionsAddress, options);

            var funcResult = EOS_PresenceModification_SetData(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }