aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/IPPCWebService.cs
blob: 6347836a96a06c0bb2246f463d83fed5b4a08673 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using Tango.PPC.Common.Web;
using Tango.Web;

namespace Tango.PPC.Common.Web
{
    /// <summary>
    /// Represents an PPC update service for uploading PPC software packages.
    /// </summary>
    public interface IPPCWebService : IDisposable
    {
        /// <summary>
        /// Gets or sets the environment.
        /// </summary>
        DeploymentSlot Environment { get; set; }

        /// <summary>
        /// Uploads the version.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        Task<UploadVersionResponse> UploadVersion(UploadVersionRequest request);

        /// <summary>
        /// Notifies the upload completed.
        /// </summary>
        /// <param name="request">The request.</param>
        Task<UploadCompletedResponse> NotifyUploadCompleted(UploadCompletedRequest request);

        /// <summary>
        /// Gets the latest version.
        /// </summary>
        /// <param name="machineVersionGuid">The machine version unique identifier.</param>
        /// <returns></returns>
        Task<LatestVersionResponse> GetLatestVersion(LatestVersionRequest request);

        /// <summary>
        /// Gets the machine versions.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        Task<MachineVersionsResponse> GetMachineVersions();

        /// <summary>
        /// Checks for available update.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        Task<CheckForUpdateResponse> CheckForUpdate(CheckForUpdateRequest request);

        /// <summary>
        /// Gets the version download info for the specified version.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        Task<DownloadUpdateResponse> MachineUpdate(DownloadUpdateRequest request);

        /// <summary>
        /// Gets the machine setup information.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        Task<MachineSetupResponse> MachineSetup(MachineSetupRequest request);

        /// <summary>
        /// Gets the machine database update information.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        Task<UpdateDBResponse> UpdateDB(UpdateDBRequest request);

        /// <summary>
        /// Logins to the PPC service.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        Task<LoginResponse> Login(LoginRequest request);
    }
}