本文整理汇总了Java中org.telegram.tgnet.TLRPC.StickerSet方法的典型用法代码示例。如果您正苦于以下问题:Java TLRPC.StickerSet方法的具体用法?Java TLRPC.StickerSet怎么用?Java TLRPC.StickerSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.telegram.tgnet.TLRPC
的用法示例。
在下文中一共展示了TLRPC.StickerSet方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: calcFeaturedStickersHash
import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
private static int calcFeaturedStickersHash(ArrayList<TLRPC.StickerSetCovered> sets) {
long acc = 0;
for (int a = 0; a < sets.size(); a++) {
TLRPC.StickerSet set = sets.get(a).set;
if (set.archived) {
continue;
}
int high_id = (int) (set.id >> 32);
int lower_id = (int) set.id;
acc = ((acc * 20261) + 0x80000000L + high_id) % 0x80000000L;
acc = ((acc * 20261) + 0x80000000L + lower_id) % 0x80000000L;
if (unreadStickerSets.contains(set.id)) {
acc = ((acc * 20261) + 0x80000000L + 1) % 0x80000000L;
}
}
return (int) acc;
}
示例2: calcStickersHash
import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
private static int calcStickersHash(ArrayList<TLRPC.TL_messages_stickerSet> sets) {
long acc = 0;
for (int a = 0; a < sets.size(); a++) {
TLRPC.StickerSet set = sets.get(a).set;
if (set.disabled) {
continue;
}
acc = ((acc * 20261) + 0x80000000L + set.hash) % 0x80000000L;
}
return (int) acc;
}
示例3: calcStickersHash
import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
private static int calcStickersHash(ArrayList<TLRPC.TL_messages_stickerSet> sets) {
long acc = 0;
for (int a = 0; a < sets.size(); a++) {
TLRPC.StickerSet set = sets.get(a).set;
if (set.archived) {
continue;
}
acc = ((acc * 20261) + 0x80000000L + set.hash) % 0x80000000L;
}
return (int) acc;
}