當前位置: 首頁>>代碼示例>>Java>>正文


Java GetGameHighScores類代碼示例

本文整理匯總了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);
}
 
開發者ID:samurayrj,項目名稱:rubenlagus-TelegramBots,代碼行數:10,代碼來源:AbsSender.java

示例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));
}
 
開發者ID:samurayrj,項目名稱:rubenlagus-TelegramBots,代碼行數:13,代碼來源:TestRestApi.java

示例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);
}
 
開發者ID:rubenlagus,項目名稱:TelegramBots,代碼行數:11,代碼來源:AbsSender.java

示例4: getGetGameHighScores

import org.telegram.telegrambots.api.methods.games.GetGameHighScores; //導入依賴的package包/類
public static BotApiMethod getGetGameHighScores() {
    return new GetGameHighScores()
            .setChatId("12345")
            .setMessageId(67890)
            .setUserId(98765);
}
 
開發者ID:samurayrj,項目名稱:rubenlagus-TelegramBots,代碼行數:7,代碼來源:BotApiMethodHelperFactory.java

示例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);
}
 
開發者ID:addo37,項目名稱:AbilityBots,代碼行數:5,代碼來源:DefaultMessageSender.java

示例6: getGameHighScoresAsync

import org.telegram.telegrambots.api.methods.games.GetGameHighScores; //導入依賴的package包/類
void getGameHighScoresAsync(GetGameHighScores getGameHighScores, SentCallback<ArrayList<GameHighScore>> sentCallback) throws TelegramApiException; 
開發者ID:addo37,項目名稱:AbilityBots,代碼行數:2,代碼來源:MessageSender.java


注:本文中的org.telegram.telegrambots.api.methods.games.GetGameHighScores類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。