本文整理汇总了C#中APIReader.Query方法的典型用法代码示例。如果您正苦于以下问题:C# APIReader.Query方法的具体用法?C# APIReader.Query怎么用?C# APIReader.Query使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类APIReader
的用法示例。
在下文中一共展示了APIReader.Query方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Query
public override void Query()
{
if (ids_ == null || ids_.Length == 0)
{
throw new ArgumentException("Invalid argument. One or more ids are required.");
}
APIReader reader = new APIReader();
reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}&ids={3}", keyID, vCode, actorID, String.Join(",", ids_));
}
示例2: Query
public override void Query()
{
APIReader reader = new APIReader();
StringBuilder sb = new StringBuilder();
sb.AppendFormat("keyID={0}&vCode={1}", keyID, vCode);
if ( extended_ != null && extended_.Value == true )
sb.Append("&extended=1");
reader.Query(Uri, this, sb.ToString());
}
示例3: Query
public override void Query()
{
APIReader reader = new APIReader();
reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}", keyID, vCode, actorID);
}
示例4: Query
public override bool Query()
{
APIReader reader = new APIReader();
return reader.Query(Uri, this, "keyID={0}&vCode={1}", keyID, vCode);
}
示例5: Query
public override bool Query()
{
APIReader reader = new APIReader();
return reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}&eventID={3}", keyID, vCode, actorID, eventID_);
}
示例6: Query
public bool Query(int rowCount, String startID)
{
APIReader reader = new APIReader();
return reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}&rowCount={3}&fromID={4}&accountKey={5}", keyID, vCode, actorID, rowCount, startID, accountKey_);
}
示例7: Query
public override bool Query()
{
APIReader reader = new APIReader();
return reader.Query(Uri, this, "");
}
示例8: Query
public bool Query(UInt64 itemID)
{
APIReader reader = new APIReader();
return reader.Query(Uri, this, "keyID={0}&vCode={1}&itemID={2}", keyID, vCode, itemID);
}
示例9: Query
public void Query(int beforeKillID)
{
APIReader reader = new APIReader();
reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}&beforeKillID={3}", keyID, vCode, actorID, beforeKillID);
}
示例10: Query
public bool Query(int beforeKillID, int rowCount)
{
APIReader reader = new APIReader();
return reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}&fromID={3}&rowCount={4}", keyID, vCode, actorID, beforeKillID, rowCount);
}
示例11: Query
public override bool Query()
{
if (ids_ == null || ids_.Length == 0)
{
if (Settings.FailGracefully)
{
this.error = new APIError(0, "Invalid argument. One or more ids are required.");
return false;
}
else
{
this.error = new APIError(0, "Invalid argument. One or more ids are required.");
throw new ArgumentException("Invalid argument. One or more ids are required.");
}
}
APIReader reader = new APIReader();
return reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}&ids={3}", keyID, vCode, actorID, String.Join(",", ids_));
}
示例12: Query
public override void Query()
{
APIReader reader = new APIReader();
StringBuilder sb = new StringBuilder();
sb.AppendFormat("keyID={0}&vCode={1}&characterID={2}", keyID, vCode, actorID);
if (!String.IsNullOrEmpty(itemID_))
sb.AppendFormat("&itemID={0}", itemID_);
reader.Query(Uri, this, sb.ToString());
}
示例13: Query
public override void Query()
{
APIReader reader = new APIReader();
reader.Query(Uri, this, "");
}
示例14: Query
public void Query(int rowCount)
{
APIReader reader = new APIReader();
reader.Query(Uri, this, "keyID={0}&vCode={1}&characterID={2}&rowCount={3}", keyID, vCode, actorID, rowCount);
}
示例15: Query
public override void Query()
{
APIReader reader = new APIReader();
StringBuilder sb = new StringBuilder();
sb.AppendFormat(CultureInfo.InvariantCulture, "keyID={0}&vCode={1}&characterID={2}&accountKey={3}", keyID, vCode, actorID, accountKey_);
if (fromID_ != -1)
sb.AppendFormat("&fromID={0}", fromID_);
if (rowCount_ != -1)
sb.AppendFormat("&rowCount={0}", rowCount_);
reader.Query(Uri, this, sb.ToString());
}