Exemple #1
0
        /// <summary>
        /// Enumerates the list of subscribed files for the current logged in user.
        /// Results are returned in a <see cref="UserSubscribedFilesCallback"/> from a <see cref="SteamClient.JobCallback&lt;T&gt;"/>.
        /// </summary>
        /// <param name="details">The specific details of the request.</param>
        /// <returns>The Job ID of the request. This can be used to find the appropriate <see cref="SteamClient.JobCallback&lt;T&gt;"/>.</returns>
        public JobID EnumerateUserSubscribedFiles(EnumerationUserDetails details)
        {
            var enumRequest = new ClientMsgProtobuf <CMsgClientUCMEnumerateUserSubscribedFiles>(EMsg.ClientUCMEnumerateUserSubscribedFiles);

            enumRequest.SourceJobID = Client.GetNextJobID();

            enumRequest.Body.app_id      = details.AppID;
            enumRequest.Body.start_index = details.StartIndex;

            Client.Send(enumRequest);

            return(enumRequest.SourceJobID);
        }
Exemple #2
0
        /// <summary>
        /// Enumerates the list of published files for the current logged in user.
        /// Results are returned in a <see cref="UserPublishedFilesCallback"/> from a <see cref="SteamClient.JobCallback&lt;T&gt;"/>.
        /// </summary>
        /// <param name="details">The specific details of the request.</param>
        /// <returns>The Job ID of the request. This can be used to find the appropriate <see cref="SteamClient.JobCallback&lt;T&gt;"/>.</returns>
        public JobID EnumerateUserPublishedFiles( EnumerationUserDetails details )
        {
            var enumRequest = new ClientMsgProtobuf<CMsgClientUCMEnumerateUserPublishedFiles>( EMsg.ClientUCMEnumerateUserPublishedFiles );
            enumRequest.SourceJobID = Client.GetNextJobID();

            enumRequest.Body.app_id = details.AppID;
            enumRequest.Body.sort_order = details.SortOrder;
            enumRequest.Body.start_index = details.StartIndex;

            Client.Send( enumRequest );

            return enumRequest.SourceJobID;
        }
Exemple #3
0
        /// <summary>
        /// Enumerates the list of published files for the current logged in user based on user action.
        /// Results are returned in a <see cref="UserActionPublishedFilesCallback"/> from a <see cref="SteamClient.JobCallback&lt;T&gt;"/>.
        /// </summary>
        /// <param name="details">The specific details of the request.</param>
        /// <returns>The Job ID of the request. This can be used to find the appropriate <see cref="SteamClient.JobCallback&lt;T&gt;"/>.</returns>
        public JobID EnumeratePublishedFilesByUserAction(EnumerationUserDetails details)
        {
            var enumRequest = new ClientMsgProtobuf <CMsgClientUCMEnumeratePublishedFilesByUserAction>(EMsg.ClientUCMEnumeratePublishedFilesByUserAction);

            enumRequest.SourceJobID = Client.GetNextJobID();

            enumRequest.Body.action      = ( int )details.UserAction;
            enumRequest.Body.app_id      = details.AppID;
            enumRequest.Body.start_index = details.StartIndex;

            Client.Send(enumRequest);

            return(enumRequest.SourceJobID);
        }
Exemple #4
0
        /// <summary>
        /// Enumerates the list of published files for the current logged in user.
        /// Results are returned in a <see cref="UserPublishedFilesCallback"/>.
        /// The returned <see cref="AsyncJob{T}"/> can also be awaited to retrieve the callback result.
        /// </summary>
        /// <param name="details">The specific details of the request.</param>
        /// <returns>The Job ID of the request. This can be used to find the appropriate <see cref="UserPublishedFilesCallback"/>.</returns>
        public AsyncJob <UserPublishedFilesCallback> EnumerateUserPublishedFiles(EnumerationUserDetails details)
        {
            var enumRequest = new ClientMsgProtobuf <CMsgClientUCMEnumerateUserPublishedFiles>(EMsg.ClientUCMEnumerateUserPublishedFiles);

            enumRequest.SourceJobID = Client.GetNextJobID();

            enumRequest.Body.app_id      = details.AppID;
            enumRequest.Body.sort_order  = details.SortOrder;
            enumRequest.Body.start_index = details.StartIndex;

            Client.Send(enumRequest);

            return(new AsyncJob <UserPublishedFilesCallback>(this.Client, enumRequest.SourceJobID));
        }
        /// <summary>
        /// Enumerates the list of subscribed files for the current logged in user.
        /// Results are returned in a <see cref="UserSubscribedFilesCallback"/>.
        /// The returned <see cref="AsyncJob{T}"/> can also be awaited to retrieve the callback result.
        /// </summary>
        /// <param name="details">The specific details of the request.</param>
        /// <returns>The Job ID of the request. This can be used to find the appropriate <see cref="UserSubscribedFilesCallback"/>.</returns>
        public AsyncJob <UserSubscribedFilesCallback> EnumerateUserSubscribedFiles(EnumerationUserDetails details)
        {
            if (details == null)
            {
                throw new ArgumentNullException(nameof(details));
            }

            var enumRequest = new ClientMsgProtobuf <CMsgClientUCMEnumerateUserSubscribedFiles>(EMsg.ClientUCMEnumerateUserSubscribedFiles);

            enumRequest.SourceJobID = Client.GetNextJobID();

            enumRequest.Body.app_id      = details.AppID;
            enumRequest.Body.start_index = details.StartIndex;

            Client.Send(enumRequest);

            return(new AsyncJob <UserSubscribedFilesCallback>(this.Client, enumRequest.SourceJobID));
        }
Exemple #6
0
        /// <summary>
        /// Enumerates the list of published files for the current logged in user based on user action.
        /// Results are returned in a <see cref="UserActionPublishedFilesCallback"/> from a <see cref="SteamClient.JobCallback&lt;T&gt;"/>.
        /// </summary>
        /// <param name="details">The specific details of the request.</param>
        /// <returns>The Job ID of the request. This can be used to find the appropriate <see cref="SteamClient.JobCallback&lt;T&gt;"/>.</returns>
        public JobID EnumeratePublishedFilesByUserAction( EnumerationUserDetails details )
        {
            var enumRequest = new ClientMsgProtobuf<CMsgClientUCMEnumeratePublishedFilesByUserAction>( EMsg.ClientUCMEnumeratePublishedFilesByUserAction );
            enumRequest.SourceJobID = Client.GetNextJobID();

            enumRequest.Body.action = ( int )details.UserAction;
            enumRequest.Body.app_id = details.AppID;
            enumRequest.Body.start_index = details.StartIndex;

            Client.Send( enumRequest );

            return enumRequest.SourceJobID;
        }
Exemple #7
0
        /// <summary>
        /// Enumerates the list of subscribed files for the current logged in user.
        /// Results are returned in a <see cref="UserSubscribedFilesCallback"/>.
        /// The returned <see cref="AsyncJob{T}"/> can also be awaited to retrieve the callback result.
        /// </summary>
        /// <param name="details">The specific details of the request.</param>
        /// <returns>The Job ID of the request. This can be used to find the appropriate <see cref="UserSubscribedFilesCallback"/>.</returns>
        public AsyncJob<UserSubscribedFilesCallback> EnumerateUserSubscribedFiles( EnumerationUserDetails details )
        {
            var enumRequest = new ClientMsgProtobuf<CMsgClientUCMEnumerateUserSubscribedFiles>( EMsg.ClientUCMEnumerateUserSubscribedFiles );
            enumRequest.SourceJobID = Client.GetNextJobID();

            enumRequest.Body.app_id = details.AppID;
            enumRequest.Body.start_index = details.StartIndex;

            Client.Send( enumRequest );

            return new AsyncJob<UserSubscribedFilesCallback>( this.Client, enumRequest.SourceJobID );
        }