Esempio n. 1
0
 public NoConfigApiRequest(WsFile file, string supportType, string printerModel, string configPresetName)
 {
     File             = file;
     SupportType      = supportType;
     PrinterModel     = printerModel;
     ConfigPresetName = configPresetName;
 }
Esempio n. 2
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);
        }
Esempio n. 3
0
 public ConfigApiRequest(WsFile file, WsFile configFile)
 {
     File       = file;
     ConfigFile = configFile;
 }