aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.TFS/ITeamFoundationServiceClient.cs
blob: 51394f663ca7d2f38fe779a8231c3d44ab2dde68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.TFS
{
    /// <summary>
    /// Represents a VSTS (Visual Studio On-line) client implementation.
    /// </summary>
    public interface ITeamFoundationServiceClient
    {
        /// <summary>
        /// Gets a team project by the specified name.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <returns></returns>
        Task<Project> GetProject(String name);

        /// <summary>
        /// Uploads a work item to the specified team project.
        /// </summary>
        /// <param name="project">The project.</param>
        /// <param name="workItem">The work item.</param>
        /// <returns></returns>
        Task<WorkItem> UploadWorkItem(Project project, WorkItem workItem);

        /// <summary>
        /// Gets a work item by the specified team project and work item id.
        /// </summary>
        /// <param name="project">The project.</param>
        /// <param name="id">The identifier.</param>
        /// <returns></returns>
        Task<WorkItem> GetWorkItem(Project project, int id);

        /// <summary>
        /// Deletes the specified work item.
        /// </summary>
        /// <param name="project">The project.</param>
        /// <param name="id">The identifier.</param>
        /// <returns></returns>
        Task DeleteWorkItem(Project project, int id);
    }
}