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_)); }
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()); }
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_)); }
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)); } }
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())); }
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_)); }
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_))); }
public override bool Query() { APIReader reader = new APIReader(); return reader.Query(Uri, this, ""); }
public override void Query() { APIReader reader = new APIReader(); reader.Query(Uri, this, ""); }
public override bool Query() { APIReader reader = new APIReader(); return(reader.Query(Uri, this, "")); }
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); }
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); }