本文整理汇总了Java中org.telegram.tl.TLContext类的典型用法代码示例。如果您正苦于以下问题:Java TLContext类的具体用法?Java TLContext怎么用?Java TLContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TLContext类属于org.telegram.tl包,在下文中一共展示了TLContext类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
flags = StreamingUtils.readInt(stream);
if ((flags & FLAG_INBOX_DATE) != 0) {
inboxDate = StreamingUtils.readInt(stream);
}
this.type = StreamingUtils.readTLString(stream);
this.message = StreamingUtils.readTLString(stream);
this.media = StreamingUtils.readTLObject(stream, context, TLAbsMessageMedia.class);
this.entities = StreamingUtils.readTLVector(stream, context, TLAbsMessageEntity.class);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:12,代码来源:TLUpdateServiceNotification.java
示例2: deserializeResponse
import org.telegram.tl.TLContext; //导入依赖的package包/类
public TLMessagesChatFull deserializeResponse(InputStream stream, TLContext context)
throws IOException {
final TLObject res = StreamingUtils.readTLObject(stream, context);
if (res == null) {
throw new IOException("Unable to parse response");
}
if ((res instanceof TLMessagesChatFull)) {
return (TLMessagesChatFull) res;
}
throw new IOException("Incorrect response type. Expected " + TLMessagesChatFull.class.getName() +", got: " + res.getClass().getName());
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:12,代码来源:TLRequestChannelsGetFullChannel.java
示例3: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.userId = StreamingUtils.readInt(stream);
this.date = StreamingUtils.readInt(stream);
this.photo = ((TLAbsUserProfilePhoto) StreamingUtils.readTLObject(stream, context));
this.previous = StreamingUtils.readTLBool(stream);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:8,代码来源:TLUpdateUserPhoto.java
示例4: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
@Override
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.count = StreamingUtils.readInt(stream);
this.messages = (TLVector<TLAbsMessage>) StreamingUtils.readTLVector(stream, context);
this.chats = (TLVector<TLAbsChat>) StreamingUtils.readTLVector(stream, context);
this.users = (TLVector<TLAbsUser>) StreamingUtils.readTLVector(stream, context);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:9,代码来源:TLMessagesSlice.java
示例5: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
flags = StreamingUtils.readInt(stream);
peer = StreamingUtils.readTLObject(stream, context, TLAbsInputPeer.class);
id = StreamingUtils.readInt(stream);
userId = StreamingUtils.readTLObject(stream, context, TLAbsInputUser.class);
score = StreamingUtils.readInt(stream);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:9,代码来源:TLRequestMessagesSetGameScore.java
示例6: deserializeResponse
import org.telegram.tl.TLContext; //导入依赖的package包/类
@Override
public TLPaymentsValidatedRequestedInfo deserializeResponse(InputStream stream, TLContext context) throws IOException {
final TLObject res = StreamingUtils.readTLObject(stream, context);
if (res == null) {
throw new IOException("Unable to parse response");
}
if ((res instanceof TLPaymentsValidatedRequestedInfo)) {
return (TLPaymentsValidatedRequestedInfo) res;
}
throw new IOException("Incorrect response type. Expected " + TLPaymentsValidatedRequestedInfo.class.getName() +
", got: " + res.getClass().getCanonicalName());
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:13,代码来源:TLRequestPaymentsValidateRequestedInfo.java
示例7: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.peer = (TLAbsPeer) StreamingUtils.readTLObject(stream, context);
this.maxId = StreamingUtils.readInt(stream);
this.pts = StreamingUtils.readInt(stream);
this.ptsCount = StreamingUtils.readInt(stream);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:8,代码来源:TLUpdateReadMessagesOutbox.java
示例8: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
@Override
public void deserializeBody(InputStream stream, TLContext context) throws IOException {
flags = StreamingUtils.readInt(stream);
hash = StreamingUtils.readTLString(stream);
if ((flags & FLAG_ALLOW_FLASHCALL) != 0) {
currentNumber = StreamingUtils.readTLBool(stream);
}
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:9,代码来源:TLRequestAccountSendConfirmPhoneCode.java
示例9: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
@Override
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.thumb = StreamingUtils.readTLBytes(stream, context);
this.thumbW = StreamingUtils.readInt(stream);
this.thumbH = StreamingUtils.readInt(stream);
this.w = StreamingUtils.readInt(stream);
this.h = StreamingUtils.readInt(stream);
this.size = StreamingUtils.readInt(stream);
this.key = StreamingUtils.readTLBytes(stream, context);
this.iv = StreamingUtils.readTLBytes(stream, context);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:13,代码来源:TLDecryptedMessageMediaPhoto.java
示例10: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.flags = StreamingUtils.readInt(stream);
this.channel = StreamingUtils.readTLObject(stream, context, TLAbsInputChannel.class);
this.filter = StreamingUtils.readTLObject(stream, context, TLAbsChannelMessagesFilter.class);
this.pts = StreamingUtils.readInt(stream);
this.limit = StreamingUtils.readInt(stream);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:9,代码来源:TLRequestUpdatesGetChannelDifference.java
示例11: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.id = StreamingUtils.readInt(stream);
this.critical = StreamingUtils.readTLBool(stream);
this.url = StreamingUtils.readTLString(stream);
this.text = StreamingUtils.readTLString(stream);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:8,代码来源:TLAppUpdate.java
示例12: deserializeResponse
import org.telegram.tl.TLContext; //导入依赖的package包/类
public TLContactsLink deserializeResponse(InputStream stream, TLContext context)
throws IOException {
TLObject res = StreamingUtils.readTLObject(stream, context);
if (res == null)
throw new IOException("Unable to parse response");
if ((res instanceof TLContactsLink))
return (TLContactsLink) res;
throw new IOException("Incorrect response type. Expected org.telegram.api.contacts.TLLink, got: " + res.getClass().getCanonicalName());
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:10,代码来源:TLRequestContactsDeleteContact.java
示例13: deserializeResponse
import org.telegram.tl.TLContext; //导入依赖的package包/类
public TLAuthorization deserializeResponse(InputStream stream, TLContext context)
throws IOException {
TLObject res = StreamingUtils.readTLObject(stream, context);
if (res == null)
throw new IOException("Unable to parse response");
if ((res instanceof TLAuthorization))
return (TLAuthorization) res;
throw new IOException("Incorrect response type. Expected org.telegram.api.auth.TLAuthorization, got: " + res.getClass().getCanonicalName());
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:10,代码来源:TLRequestAuthImportBotAuthorization.java
示例14: deserializeResponse
import org.telegram.tl.TLContext; //导入依赖的package包/类
public TLAbsUpdatesChannelDifferences deserializeResponse(InputStream stream, TLContext context)
throws IOException {
final TLObject res = StreamingUtils.readTLObject(stream, context);
if (res == null) {
throw new IOException("Unable to parse response");
}
if ((res instanceof TLAbsUpdatesChannelDifferences)) {
return (TLAbsUpdatesChannelDifferences) res;
}
throw new IOException("Incorrect response type. Expected " + TLAbsUpdatesChannelDifferences.class.getName() + ", got: " + res.getClass().getCanonicalName());
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:12,代码来源:TLRequestUpdatesGetChannelDifference.java
示例15: deserializeResponse
import org.telegram.tl.TLContext; //导入依赖的package包/类
public TLBool deserializeResponse(InputStream stream, TLContext context)
throws IOException {
TLObject res = StreamingUtils.readTLObject(stream, context);
if (res == null)
throw new IOException("Unable to parse response");
if ((res instanceof TLBool))
return (TLBool) res;
throw new IOException("Incorrect response type. Expected org.telegram.tl.TLBool, got: " + res.getClass().getCanonicalName());
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:10,代码来源:TLRequestAccountRegisterDevice.java
示例16: deserializeResponse
import org.telegram.tl.TLContext; //导入依赖的package包/类
public TLBool deserializeResponse(InputStream stream, TLContext context)
throws IOException {
final TLObject res = StreamingUtils.readTLObject(stream, context);
if (res == null) {
throw new IOException("Unable to parse response");
}
if ((res instanceof TLBool)) {
return (TLBool) res;
}
throw new IOException("Incorrect response type. Expected " + TLBool.class.getName() + ", got: " + res.getClass().getCanonicalName());
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:12,代码来源:TLRequestMessagesClearRecentStickers.java
示例17: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.flags = StreamingUtils.readInt(stream);
this.pts = StreamingUtils.readInt(stream);
if ((this.flags & FLAG_TIMEOUT) != 0) {
this.timeout = StreamingUtils.readInt(stream);
}
this.topMessage = StreamingUtils.readInt(stream);
this.readInboxMaxId = StreamingUtils.readInt(stream);
this.readOutboxMaxId = StreamingUtils.readInt(stream);
this.unreadCount = StreamingUtils.readInt(stream);
this.messages = StreamingUtils.readTLVector(stream, context, TLAbsMessage.class);
this.chats = StreamingUtils.readTLVector(stream, context, TLAbsChat.class);
this.users = StreamingUtils.readTLVector(stream, context, TLAbsUser.class);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:16,代码来源:TLUpdatesChannelDifferencesTooLong.java
示例18: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.updates = StreamingUtils.readTLVector(stream, context, TLAbsUpdate.class);
this.users = StreamingUtils.readTLVector(stream, context, TLAbsUser.class);
this.chats = StreamingUtils.readTLVector(stream, context, TLAbsChat.class);
this.date = StreamingUtils.readInt(stream);
this.seq = StreamingUtils.readInt(stream);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:9,代码来源:TLUpdates.java
示例19: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
flags = StreamingUtils.readInt(stream);
this.date = StreamingUtils.readInt(stream);
this.expires = StreamingUtils.readInt(stream);
this.testMode = StreamingUtils.readTLBool(stream);
this.thisDc = StreamingUtils.readInt(stream);
this.dcOptions = StreamingUtils.readTLVector(stream, context, TLDcOption.class);
this.chatSizeMax = StreamingUtils.readInt(stream);
this.megaGroupSizeMax = StreamingUtils.readInt(stream);
this.forwardedCountMax = StreamingUtils.readInt(stream);
this.onlineUpdatePeriodMs = StreamingUtils.readInt(stream);
this.offlineBlurTimeoutMs = StreamingUtils.readInt(stream);
this.offlineIdleTimeoutMs = StreamingUtils.readInt(stream);
this.onlineCloudTimeoutMs = StreamingUtils.readInt(stream);
this.notifyCloudDelayMs = StreamingUtils.readInt(stream);
this.notifyDefaultDelayMs = StreamingUtils.readInt(stream);
this.chatBigSize = StreamingUtils.readInt(stream);
this.pushChatPeriodMs = StreamingUtils.readInt(stream);
this.pushChatLimit = StreamingUtils.readInt(stream);
this.savedGifsLimits = StreamingUtils.readInt(stream);
this.editTimeLimit = StreamingUtils.readInt(stream);
this.ratingEDecay = StreamingUtils.readInt(stream);
this.stickersRecentLimit = StreamingUtils.readInt(stream);
if ((flags & FLAG_TMP_SESSIONS) != 0) {
this.tmpSessions = StreamingUtils.readInt(stream);
}
this.pinnedDialogsCountMax = StreamingUtils.readInt(stream);
this.callReceiveTimeoutMs = StreamingUtils.readInt(stream);
this.callRingTimeoutMs = StreamingUtils.readInt(stream);
this.callConnectTimeoutMs = StreamingUtils.readInt(stream);
this.callPacketTimeoutMs = StreamingUtils.readInt(stream);
this.meUrlPrefix = StreamingUtils.readTLString(stream);
this.disabledFeatures = StreamingUtils.readTLVector(stream, context, TLDisabledFeature.class);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:36,代码来源:TLConfig.java
示例20: deserializeBody
import org.telegram.tl.TLContext; //导入依赖的package包/类
@Override
public void deserializeBody(InputStream stream, TLContext context) throws IOException {
url = StreamingUtils.readTLString(stream);
size = StreamingUtils.readInt(stream);
mimeType = StreamingUtils.readTLString(stream);
attributes = StreamingUtils.readTLVector(stream, context, TLAbsDocumentAttribute.class);
}
开发者ID:rubenlagus,项目名称:TelegramApi,代码行数:8,代码来源:TLInputWebDocument.java
注:本文中的org.telegram.tl.TLContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论