diff options
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Web/IPPCWebService.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/Web/IPPCWebService.cs | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/IPPCWebService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/IPPCWebService.cs new file mode 100644 index 000000000..6347836a9 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/IPPCWebService.cs @@ -0,0 +1,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); + } +} |
