Exemplo n.º 1
0
        public String ProvideFile()
        {
            String     fileUrl    = (string.IsNullOrEmpty(this.FileFolder) ? this.AssetsFolder : this.FileFolder) + this.FileToSlice;
            string     wsConfigs  = File.ReadAllText(fileUrl, Encoding.UTF8);
            WsFile     file       = new WsFile(this.FileToSlice, wsConfigs);
            ApiRequest ApiRequest = new NoConfigApiRequest(file, this.SupportType, this.PrinterModel, this.ConfigPresetName);

            return(MakeRequest(HttpMethod.Post, "ProvideFile", ApiRequest).Result);
        }
        public string StartSlicingTask(NoConfigApiRequest stlFileConfigs, string fileId)
        {
            ApiRequest ApiRequest = new NoConfigApiRequest(stlFileConfigs.FileName, fileId, stlFileConfigs.SupportType, stlFileConfigs.PrinterModel, stlFileConfigs.ConfigPresetName, stlFileConfigs.Position, stlFileConfigs.Rotation, stlFileConfigs.Scale);

            return(MakeRequest("POST", "StartSlicingTask", ApiRequest).Result.ResponseString);
        }