Revise PublicProfileRequests, make functional offline
- Add prototype for loading cacheable content - Make RetrievePrinterProfile test use public server - Expose JsonResponseDictionary on PublicProfilesRequest
This commit is contained in:
parent
cdc953f7c3
commit
ca55930bf4
6 changed files with 80 additions and 90 deletions
|
|
@ -275,10 +275,9 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
private static OemProfile LoadHttpOemProfile(string make, string model)
|
||||
{
|
||||
RetrievePublicProfileRequest profileRequest = new RetrievePublicProfileRequest();
|
||||
string profText = profileRequest.getPrinterProfileByMakeModel(make, model);
|
||||
var printerProfile = JsonConvert.DeserializeObject<OemProfile>(profText);
|
||||
|
||||
return printerProfile;
|
||||
string profileText = profileRequest.GetPrinterProfileByMakeModel(make, model);
|
||||
|
||||
return JsonConvert.DeserializeObject<OemProfile>(profileText);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue