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