当前位置: 首页>>代码示例>>Java>>正文


Java TLRPC.TL_messageMediaVenue方法代码示例

本文整理汇总了Java中org.telegram.tgnet.TLRPC.TL_messageMediaVenue方法的典型用法代码示例。如果您正苦于以下问题:Java TLRPC.TL_messageMediaVenue方法的具体用法?Java TLRPC.TL_messageMediaVenue怎么用?Java TLRPC.TL_messageMediaVenue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.telegram.tgnet.TLRPC的用法示例。


在下文中一共展示了TLRPC.TL_messageMediaVenue方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: newMessageMedia

import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
private TLRPC.MessageMedia newMessageMedia(TLRPC.MessageMedia messageMedia) {
    TLRPC.MessageMedia tL_messageMediaUnsupported_old = messageMedia instanceof TLRPC.TL_messageMediaUnsupported_old ? new TLRPC.TL_messageMediaUnsupported_old() : messageMedia instanceof TLRPC.TL_messageMediaAudio_layer45 ? new TLRPC.TL_messageMediaAudio_layer45() : messageMedia instanceof TLRPC.TL_messageMediaPhoto_old ? new TLRPC.TL_messageMediaPhoto_old() : messageMedia instanceof TLRPC.TL_messageMediaUnsupported ? new TLRPC.TL_messageMediaUnsupported() : messageMedia instanceof TLRPC.TL_messageMediaEmpty ? new TLRPC.TL_messageMediaEmpty() : messageMedia instanceof TLRPC.TL_messageMediaVenue ? new TLRPC.TL_messageMediaVenue() : messageMedia instanceof TLRPC.TL_messageMediaVideo_old ? new TLRPC.TL_messageMediaVideo_old() : messageMedia instanceof TLRPC.TL_messageMediaDocument_old ? new TLRPC.TL_messageMediaDocument_old() : messageMedia instanceof TLRPC.TL_messageMediaDocument ? new TLRPC.TL_messageMediaDocument() : messageMedia instanceof TLRPC.TL_messageMediaContact ? new TLRPC.TL_messageMediaContact() : messageMedia instanceof TLRPC.TL_messageMediaPhoto ? new TLRPC.TL_messageMediaPhoto() : messageMedia instanceof TLRPC.TL_messageMediaVideo_layer45 ? new TLRPC.TL_messageMediaVideo_layer45() : messageMedia instanceof TLRPC.TL_messageMediaWebPage ? new TLRPC.TL_messageMediaWebPage() : messageMedia instanceof TLRPC.TL_messageMediaGeo ? new TLRPC.TL_messageMediaGeo() : new TLRPC.MessageMedia();
    tL_messageMediaUnsupported_old.bytes = messageMedia.bytes;
    tL_messageMediaUnsupported_old.caption = messageMedia.caption;
    tL_messageMediaUnsupported_old.photo = messageMedia.photo;
    tL_messageMediaUnsupported_old.audio_unused = messageMedia.audio_unused;
    tL_messageMediaUnsupported_old.geo = messageMedia.geo;
    tL_messageMediaUnsupported_old.title = messageMedia.title;
    tL_messageMediaUnsupported_old.address = messageMedia.address;
    tL_messageMediaUnsupported_old.provider = messageMedia.provider;
    tL_messageMediaUnsupported_old.venue_id = messageMedia.venue_id;
    tL_messageMediaUnsupported_old.document = messageMedia.document;
    tL_messageMediaUnsupported_old.video_unused = messageMedia.video_unused;
    tL_messageMediaUnsupported_old.phone_number = messageMedia.phone_number;
    tL_messageMediaUnsupported_old.first_name = messageMedia.first_name;
    tL_messageMediaUnsupported_old.last_name = messageMedia.last_name;
    tL_messageMediaUnsupported_old.user_id = messageMedia.user_id;
    tL_messageMediaUnsupported_old.webpage = messageMedia.webpage;
    return tL_messageMediaUnsupported_old;
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:21,代码来源:ForwardProActivity.java

示例2: getItem

import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
@Override
public TLRPC.TL_messageMediaVenue getItem(int i) {
    if (i > 2 && i < places.size() + 3) {
        return places.get(i - 3);
    }
    return null;
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:8,代码来源:LocationActivityAdapter.java

示例3: getItem

import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
@Override
public TLRPC.TL_messageMediaVenue getItem(int i) {
    if (i >= 0 && i < places.size()) {
        return places.get(i);
    }
    return null;
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:8,代码来源:LocationActivitySearchAdapter.java

示例4: setLocation

import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
public void setLocation(TLRPC.TL_messageMediaVenue location, String icon, boolean divider) {
    needDivider = divider;
    nameTextView.setText(location.title);
    addressTextView.setText(location.address);
    imageView.setImage(icon, null, null);
    setWillNotDraw(!divider);
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:8,代码来源:LocationCell.java

示例5: setType

import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
public void setType() {
    int oldType = type;
    if (messageOwner instanceof TLRPC.TL_message || messageOwner instanceof TLRPC.TL_messageForwarded_old2) {
        if (isMediaEmpty()) {
            type = 0;
            if (messageText == null || messageText.length() == 0) {
                messageText = "Empty message";
            }
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaPhoto) {
            type = 1;
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaGeo || messageOwner.media instanceof TLRPC.TL_messageMediaVenue) {
            type = 4;
        } else if (isVideo()) {
            type = 3;
        } else if (isVoice()) {
            type = 2;
        } else if (isMusic()) {
            type = 14;
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaContact) {
            type = 12;
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaUnsupported) {
            type = 0;
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaDocument) {
            if (messageOwner.media.document.mime_type != null) {
                if (isGifDocument(messageOwner.media.document)) {
                    type = 8;
                } else if (messageOwner.media.document.mime_type.equals("image/webp") && isSticker()) {
                    type = 13;
                } else {
                    type = 9;
                }
            } else {
                type = 9;
            }
        }
    } else if (messageOwner instanceof TLRPC.TL_messageService) {
        if (messageOwner.action instanceof TLRPC.TL_messageActionLoginUnknownLocation) {
            type = 0;
        } else if (messageOwner.action instanceof TLRPC.TL_messageActionChatEditPhoto || messageOwner.action instanceof TLRPC.TL_messageActionUserUpdatedPhoto) {
            contentType = 1;
            type = 11;
        } else if (messageOwner.action instanceof TLRPC.TL_messageEncryptedAction) {
            if (messageOwner.action.encryptedAction instanceof TLRPC.TL_decryptedMessageActionScreenshotMessages || messageOwner.action.encryptedAction instanceof TLRPC.TL_decryptedMessageActionSetMessageTTL) {
                contentType = 1;
                type = 10;
            } else {
                contentType = -1;
                type = -1;
            }
        } else if (messageOwner.action instanceof TLRPC.TL_messageActionHistoryClear) {
            contentType = -1;
            type = -1;
        } else {
            contentType = 1;
            type = 10;
        }
    }
    if (oldType != 1000 && oldType != type) {
        generateThumbs(false);
    }
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:62,代码来源:MessageObject.java

示例6: setType

import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
public void setType() {
    int oldType = type;
    if (messageOwner instanceof TLRPC.TL_message || messageOwner instanceof TLRPC.TL_messageForwarded_old2) {
        if (isMediaEmpty()) {
            type = 0;
            if (messageText == null || messageText.length() == 0) {
                messageText = "Empty message";
            }
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaPhoto) {
            type = 1;
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaGeo || messageOwner.media instanceof TLRPC.TL_messageMediaVenue) {
            type = 4;
        } else if (isVideo()) {
            type = 3;
        } else if (isVoice()) {
            type = 2;
        } else if (isMusic()) {
            type = 14;
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaContact) {
            type = 12;
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaUnsupported) {
            type = 0;
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaDocument) {
            if (messageOwner.media.document != null && messageOwner.media.document.mime_type != null) {
                if (isGifDocument(messageOwner.media.document)) {
                    type = 8;
                } else if (messageOwner.media.document.mime_type.equals("image/webp") && isSticker()) {
                    type = 13;
                } else {
                    type = 9;
                }
            } else {
                type = 9;
            }
        } else if (messageOwner.media instanceof TLRPC.TL_messageMediaGame) {
            type = 0;
        }
    } else if (messageOwner instanceof TLRPC.TL_messageService) {
        if (messageOwner.action instanceof TLRPC.TL_messageActionLoginUnknownLocation) {
            type = 0;
        } else if (messageOwner.action instanceof TLRPC.TL_messageActionChatEditPhoto || messageOwner.action instanceof TLRPC.TL_messageActionUserUpdatedPhoto) {
            contentType = 1;
            type = 11;
        } else if (messageOwner.action instanceof TLRPC.TL_messageEncryptedAction) {
            if (messageOwner.action.encryptedAction instanceof TLRPC.TL_decryptedMessageActionScreenshotMessages || messageOwner.action.encryptedAction instanceof TLRPC.TL_decryptedMessageActionSetMessageTTL) {
                contentType = 1;
                type = 10;
            } else {
                contentType = -1;
                type = -1;
            }
        } else if (messageOwner.action instanceof TLRPC.TL_messageActionHistoryClear) {
            contentType = -1;
            type = -1;
        } else {
            contentType = 1;
            type = 10;
        }
    }
    if (oldType != 1000 && oldType != type) {
        generateThumbs(false);
    }
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:64,代码来源:MessageObject.java

示例7: didLoadedSearchResult

import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
void didLoadedSearchResult(ArrayList<TLRPC.TL_messageMediaVenue> places); 
开发者ID:MLNO,项目名称:airgram,代码行数:2,代码来源:BaseLocationAdapter.java


注:本文中的org.telegram.tgnet.TLRPC.TL_messageMediaVenue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。