using System.Threading.Tasks; using Tango.Web; using Tango.Web.Authentication; namespace Tango.MachineStudio.Common.Web { /// /// Represents a machine service MachineStudio web client. /// /// public abstract class MachineStudioWebClientBase : TangoWebClient { /// /// Initializes a new instance of the class. /// /// The environment. /// Existing token. public MachineStudioWebClientBase(DeploymentSlot environment, WebToken token) : base(environment, "MachineStudio", token) { } /// /// Initializes a new instance of the class. /// /// The environment. public MachineStudioWebClientBase(DeploymentSlot environment) : this(environment, null) { } /// /// Executes the CheckForUpdates action and returns Tango.MachineStudio.Common.Web.CheckForUpdatesResponse. /// /// public Task CheckForUpdates(Tango.MachineStudio.Common.Web.CheckForUpdatesRequest request) { return Post("CheckForUpdates", request); } /// /// Executes the DownloadLatestVersion action and returns Tango.MachineStudio.Common.Web.DownloadLatestVersionResponse. /// /// public Task DownloadLatestVersion(Tango.MachineStudio.Common.Web.DownloadLatestVersionRequest request) { return Post("DownloadLatestVersion", request); } /// /// Executes the UploadVersion action and returns Tango.MachineStudio.Common.Web.UploadVersionResponse. /// /// public Task UploadVersion(Tango.MachineStudio.Common.Web.UploadVersionRequest request) { return Post("UploadVersion", request); } /// /// Executes the NotifyUploadCompleted action and returns Tango.MachineStudio.Common.Web.UploadCompletedResponse. /// /// public Task NotifyUploadCompleted(Tango.MachineStudio.Common.Web.UploadCompletedRequest request) { return Post("NotifyUploadCompleted", request); } /// /// Executes the GetLatestVersion action and returns Tango.MachineStudio.Common.Web.LatestVersionResponse. /// /// public Task GetLatestVersion(Tango.MachineStudio.Common.Web.LatestVersionRequest request) { return Post("GetLatestVersion", request); } } }