本文整理匯總了Java中org.telegram.telegrambots.api.methods.games.GetGameHighScores類的典型用法代碼示例。如果您正苦於以下問題:Java GetGameHighScores類的具體用法?Java GetGameHighScores怎麽用?Java GetGameHighScores使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
GetGameHighScores類屬於org.telegram.telegrambots.api.methods.games包,在下文中一共展示了GetGameHighScores類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getGameHighScoresAsync
import org.telegram.telegrambots.api.methods.games.GetGameHighScores; //導入依賴的package包/類
public final void getGameHighScoresAsync(GetGameHighScores getGameHighScores, SentCallback<ArrayList<GameHighScore>> sentCallback) throws TelegramApiException {
if (getGameHighScores == null) {
throw new TelegramApiException("Parameter getGameHighScores can not be null");
}
if (sentCallback == null) {
throw new TelegramApiException("Parameter sentCallback can not be null");
}
sendApiMethodAsync(getGameHighScores, sentCallback);
}
示例2: TestGetGameHighScores
import org.telegram.telegrambots.api.methods.games.GetGameHighScores; //導入依賴的package包/類
@Test
public void TestGetGameHighScores() {
webhookBot.setReturnValue(BotApiMethodHelperFactory.getGetGameHighScores());
Entity<Update> entity = Entity.json(getUpdate());
BotApiMethod result =
target("callback/testbot")
.request(MediaType.APPLICATION_JSON)
.post(entity, GetGameHighScores.class);
assertEquals("{\"chat_id\":\"12345\",\"message_id\":67890,\"user_id\":98765,\"method\":\"getGameHighScores\"}", map(result));
}
示例3: getGameHighScoresAsync
import org.telegram.telegrambots.api.methods.games.GetGameHighScores; //導入依賴的package包/類
@Deprecated
public final void getGameHighScoresAsync(GetGameHighScores getGameHighScores, SentCallback<ArrayList<GameHighScore>> sentCallback) throws TelegramApiException {
if (getGameHighScores == null) {
throw new TelegramApiException("Parameter getGameHighScores can not be null");
}
if (sentCallback == null) {
throw new TelegramApiException("Parameter sentCallback can not be null");
}
sendApiMethodAsync(getGameHighScores, sentCallback);
}
示例4: getGetGameHighScores
import org.telegram.telegrambots.api.methods.games.GetGameHighScores; //導入依賴的package包/類
public static BotApiMethod getGetGameHighScores() {
return new GetGameHighScores()
.setChatId("12345")
.setMessageId(67890)
.setUserId(98765);
}
示例5: getGameHighScoresAsync
import org.telegram.telegrambots.api.methods.games.GetGameHighScores; //導入依賴的package包/類
@Override
public void getGameHighScoresAsync(GetGameHighScores getGameHighScores, SentCallback<ArrayList<GameHighScore>> sentCallback) throws TelegramApiException {
bot.getGameHighScoresAsync(getGameHighScores, sentCallback);
}
示例6: getGameHighScoresAsync
import org.telegram.telegrambots.api.methods.games.GetGameHighScores; //導入依賴的package包/類
void getGameHighScoresAsync(GetGameHighScores getGameHighScores, SentCallback<ArrayList<GameHighScore>> sentCallback) throws TelegramApiException;