• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java TLContext类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ModelNode类代码示例发布时间:2022-05-23
下一篇:
Java PhysicsHandler类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap