public void Set(QueryFileListOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = PlayerDataStorageInterface.QueryfilelistoptionsApiLatest;
         LocalUserId  = other.LocalUserId;
     }
 }
Пример #2
0
 public void Set(QueryFileListOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = TitleStorageInterface.QueryfilelistoptionsApiLatest;
         LocalUserId  = other.LocalUserId;
         ListOfTags   = other.ListOfTags;
     }
 }
        /// <summary>
        /// Query the file metadata, such as file names, size, and a MD5 hash of the data, for all files owned by this user for this application. This is not required before a file may be opened,
        /// saved, copied, or deleted.
        /// <seealso cref="GetFileMetadataCount" />
        /// <seealso cref="CopyFileMetadataAtIndex" />
        /// <seealso cref="CopyFileMetadataByFilename" />
        /// </summary>
        /// <param name="queryFileListOptions">Object containing properties related to which user is querying files</param>
        /// <param name="clientData">Optional pointer to help clients track this request, that is returned in the completion callback</param>
        /// <param name="completionCallback">This function is called when the query operation completes</param>
        public void QueryFileList(QueryFileListOptions queryFileListOptions, object clientData, OnQueryFileListCompleteCallback completionCallback)
        {
            System.IntPtr queryFileListOptionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <QueryFileListOptionsInternal, QueryFileListOptions>(ref queryFileListOptionsAddress, queryFileListOptions);

            var clientDataAddress = System.IntPtr.Zero;

            var completionCallbackInternal = new OnQueryFileListCompleteCallbackInternal(OnQueryFileListCompleteCallbackInternalImplementation);

            Helper.AddCallback(ref clientDataAddress, clientData, completionCallback, completionCallbackInternal);

            EOS_PlayerDataStorage_QueryFileList(InnerHandle, queryFileListOptionsAddress, clientDataAddress, completionCallbackInternal);

            Helper.TryMarshalDispose(ref queryFileListOptionsAddress);
        }