using System; using System.Threading.Tasks; using Tango.Web; 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, String token) : base(environment, "MachineStudio", token) { } /// /// Initializes a new instance of the class. /// /// The environment. public MachineStudioWebClientBase(DeploymentSlot environment) : this(environment, null) { } /// /// Initializes a new instance of the class. /// /// The service address. /// Existing token. public MachineStudioWebClientBase(String address, String token) : base(address, "MachineStudio", token) { } /// /// 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 NotifyVersionUploadCompleted action and returns Tango.MachineStudio.Common.Web.UploadCompletedResponse. /// /// public Task NotifyVersionUploadCompleted(Tango.MachineStudio.Common.Web.UploadCompletedRequest request) { return Post("NotifyVersionUploadCompleted", 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); } /// /// Executes the RefreshToken action and returns Tango.MachineStudio.Common.Web.RefreshTokenResponse. /// /// public Task RefreshToken(Tango.MachineStudio.Common.Web.RefreshTokenRequest request) { return Post("RefreshToken", request); } /// /// Executes the DownloadLatestPPCVersion action and returns Tango.MachineStudio.Common.Web.DownloadLatestPPCVersionResponse. /// /// public Task DownloadLatestPPCVersion(Tango.MachineStudio.Common.Web.DownloadLatestPPCVersionRequest request) { return Post("DownloadLatestPPCVersion", request); } } }