本文整理了Java中com.zulip.android.ZulipApp.setPointer()
方法的一些代码示例,展示了ZulipApp.setPointer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZulipApp.setPointer()
方法的具体详情如下:
包路径:com.zulip.android.ZulipApp
类名称:ZulipApp
方法名:setPointer
暂无
代码示例来源:origin: zulip/zulip-android
@Override
public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
setPointer(mID);
}
代码示例来源:origin: zulip/zulip-android
public void onResetDatabase() {
setPointer(-1);
setMaxMessageId(-1);
setLastEventId(-1);
setEventQueueId(null);
}
代码示例来源:origin: zulip/zulip-android
/**
* Registers for a new event queue with the Zulip API
*/
private void register() throws JSONException, IOException {
retrofit2.Response<UserConfigurationResponse> response = app.getZulipServices()
.register(true)
.execute();
if (response.isSuccessful()) {
UserConfigurationResponse res = response.body();
app.tester = app.getEventQueueId();
app.setEventQueueId(res.getQueueId());
app.setLastEventId(res.getLastEventId());
app.setPointer(res.getPointer());
app.setMaxMessageId(res.getMaxMessageId());
app.setMessageContentEditParams(res.getRealmMessageContentEditLimitSeconds(),
res.isRealmAllowMessageEditing());
registeredOrGotEventsThisRun = true;
processRegister(res);
}
}
代码示例来源:origin: zulip/zulip-android
@Before
public void setUp() {
app = ZulipApp.get();
if (ZulipApp.get().getApiKey() == null) {
BaseTest baseTest = new BaseTest();
baseTest.login();
sleep(4000);
}
//This is to make sure the latest recieved messages will be added to the list!
app.setPointer(app.getMaxMessageId());
setTestMessageStream((testMessageStream == null) ? RandomStringUtils.randomAlphanumeric(10) : testMessageStream);
setTestMessagePrivate((testMessagePrivate == null) ? RandomStringUtils.randomAlphanumeric(15) : testMessagePrivate);
}
内容来源于网络,如有侵权,请联系作者删除!