using Oqtane.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Oqtane.Services
{
///
/// Service to manage jobs ()
///
public interface IJobService
{
///
/// Returns a list of all jobs
///
///
Task> GetJobsAsync();
///
/// Return a specific job
///
///
///
Task GetJobAsync(int jobId);
///
/// Adds a new job
///
///
///
Task AddJobAsync(Job job);
///
/// Updates an existing job
///
///
///
Task UpdateJobAsync(Job job);
///
/// Delete an existing job
///
///
///
Task DeleteJobAsync(int jobId);
///
/// Starts the given job
///
///
///
Task StartJobAsync(int jobId);
///
/// Stops the given job
///
///
///
Task StopJobAsync(int jobId);
}
}