Example #1
0
        public override void Query()
        {
            if (typeIDs_ == null || typeIDs_.Length == 0)
             {
            throw new ArgumentException("Invalid argument. One or more typeIDs are required.");
             }

             APIReader reader = new APIReader();

             reader.Query(Uri, this, "&ids={0}", String.Join(",", typeIDs_));
        }
Example #2
0
        public override bool Query()
        {
            APIReader reader = new APIReader();

             StringBuilder sb = new StringBuilder();

             if (!string.IsNullOrEmpty(version_))
            sb.AppendFormat("&version={0}", version_);

             return reader.Query(Uri, this, sb.ToString());
        }
Example #3
0
        public override void Query()
        {
            if (characterNames_ == null || characterNames_.Length == 0)
             {
            throw new ArgumentException("Invalid argument. One or more character IDs are required.");
             }

             APIReader reader = new APIReader();

             reader.Query(Uri, this, "&names={0}", String.Join("," , characterNames_));
        }
Example #4
0
        public override bool Query()
        {
            APIReader reader = new APIReader();

            if (String.IsNullOrEmpty(keyID))
            {
                return(reader.Query(Uri, this, "characterID={0}", actorID));
            }
            else
            {
                return(reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}", keyID, vCode, actorID));
            }
        }
Example #5
0
        public override bool Query()
        {
            APIReader reader = new APIReader();

            StringBuilder sb = new StringBuilder();

            if (!string.IsNullOrEmpty(version_))
            {
                sb.AppendFormat("&version={0}", version_);
            }

            return(reader.Query(Uri, this, sb.ToString()));
        }
Example #6
0
        public override bool Query()
        {
            if (typeIDs_ == null || typeIDs_.Length == 0)
             {
             if (Settings.FailGracefully)
             {
                 this.error = new APIError(0, "Invalid argument. One or more typeIDs are required.");
                 return false;
             }
             else
             {
                 this.error = new APIError(0, "Invalid argument. One or more character IDs are required.");
                 throw new ArgumentException("Invalid argument. One or more typeIDs are required.");
             }
             }

             APIReader reader = new APIReader();
             return reader.Query(Uri, this, "&ids={0}", String.Join(",", typeIDs_));
        }
Example #7
0
        public override bool Query()
        {
            if (characterNames_ == null || characterNames_.Length == 0)
            {
                if (Settings.FailGracefully)
                {
                    this.error = new APIError(0, "Invalid argument. One or more character IDs are required.");
                    return(false);
                }
                else
                {
                    this.error = new APIError(0, "Invalid argument. One or more character IDs are required.");
                    throw new ArgumentException("Invalid argument. One or more character IDs are required.");
                }
            }

            APIReader reader = new APIReader();

            return(reader.Query(Uri, this, "&names={0}", String.Join(",", characterNames_)));
        }
Example #8
0
 public override bool Query()
 {
     APIReader reader = new APIReader();
      return reader.Query(Uri, this, "");
 }
Example #9
0
 public override void Query()
 {
     APIReader reader = new APIReader();
      reader.Query(Uri, this, "");
 }
Example #10
0
        public override bool Query()
        {
            APIReader reader = new APIReader();

            return(reader.Query(Uri, this, ""));
        }
Example #11
0
        public override void Query()
        {
            APIReader reader = new APIReader();

             if (String.IsNullOrEmpty(keyID))
            reader.Query(Uri, this, "");
             else
            reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}", keyID, vCode, actorID);
        }
Example #12
0
        public override bool Query()
        {
            APIReader reader = new APIReader();

             if (String.IsNullOrEmpty(keyID))
             return reader.Query(Uri, this, "");
             else
             return reader.Query(Uri, this, "keyID={0}&vCode={1}", keyID, vCode);
        }