public static List <WebBlueprint> GetBlueprints(string username) { var getBlueprintRequest = new WebBlueprints(WebRequestType.Get, username, null); var result = getBlueprintRequest.Request(); if (result.Status == WebRequestStatus.Failed) { } return(result.Blueprints); }
public static bool DeleteBlueprint(string username, int id) { var bp = new CorporationWebBlueprint(id, null, 0, 0, false); var setBlueprintRequest = new WebBlueprints(WebRequestType.Set, username, bp, null, true); var result = setBlueprintRequest.Request(); if (result.Status == WebRequestStatus.Failed) { } return(result.Status == WebRequestStatus.Ok); }
public static bool SetBlueprint(string username, CorporationWebBlueprint bp) { var setBlueprintRequest = new WebBlueprints(WebRequestType.Set, username, bp); var result = setBlueprintRequest.Request(); if (result == null) { return(false); } if (result.Status == WebRequestStatus.Failed) { } return(result.Status == WebRequestStatus.Ok); }