示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }