當前位置: 首頁>>代碼示例>>Java>>正文


Java Announcements.CONTENT_ITEM_TYPE屬性代碼示例

本文整理匯總了Java中com.google.android.apps.iosched.provider.ScheduleContract.Announcements.CONTENT_ITEM_TYPE屬性的典型用法代碼示例。如果您正苦於以下問題:Java Announcements.CONTENT_ITEM_TYPE屬性的具體用法?Java Announcements.CONTENT_ITEM_TYPE怎麽用?Java Announcements.CONTENT_ITEM_TYPE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在com.google.android.apps.iosched.provider.ScheduleContract.Announcements的用法示例。


在下文中一共展示了Announcements.CONTENT_ITEM_TYPE屬性的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getType

/** {@inheritDoc} */
@Override
public String getType(Uri uri) {
    final int match = sUriMatcher.match(uri);
    switch (match) {
        case BLOCKS:
            return Blocks.CONTENT_TYPE;
        case BLOCKS_BETWEEN:
            return Blocks.CONTENT_TYPE;
        case BLOCKS_ID:
            return Blocks.CONTENT_ITEM_TYPE;
        case BLOCKS_ID_SESSIONS:
            return Sessions.CONTENT_TYPE;
        case BLOCKS_ID_SESSIONS_STARRED:
            return Sessions.CONTENT_TYPE;
        case TRACKS:
            return Tracks.CONTENT_TYPE;
        case TRACKS_ID:
            return Tracks.CONTENT_ITEM_TYPE;
        case TRACKS_ID_SESSIONS:
            return Sessions.CONTENT_TYPE;
        case TRACKS_ID_VENDORS:
            return Vendors.CONTENT_TYPE;
        case ROOMS:
            return Rooms.CONTENT_TYPE;
        case ROOMS_ID:
            return Rooms.CONTENT_ITEM_TYPE;
        case ROOMS_ID_SESSIONS:
            return Sessions.CONTENT_TYPE;
        case SESSIONS:
            return Sessions.CONTENT_TYPE;
        case SESSIONS_STARRED:
            return Sessions.CONTENT_TYPE;
        case SESSIONS_WITH_TRACK:
            return Sessions.CONTENT_TYPE;
        case SESSIONS_SEARCH:
            return Sessions.CONTENT_TYPE;
        case SESSIONS_AT:
            return Sessions.CONTENT_TYPE;
        case SESSIONS_ID:
            return Sessions.CONTENT_ITEM_TYPE;
        case SESSIONS_ID_SPEAKERS:
            return Speakers.CONTENT_TYPE;
        case SESSIONS_ID_TRACKS:
            return Tracks.CONTENT_TYPE;
        case SESSIONS_ID_WITH_TRACK:
            return Sessions.CONTENT_TYPE;
        case SPEAKERS:
            return Speakers.CONTENT_TYPE;
        case SPEAKERS_ID:
            return Speakers.CONTENT_ITEM_TYPE;
        case SPEAKERS_ID_SESSIONS:
            return Sessions.CONTENT_TYPE;
        case VENDORS:
            return Vendors.CONTENT_TYPE;
        case VENDORS_STARRED:
            return Vendors.CONTENT_TYPE;
        case VENDORS_SEARCH:
            return Vendors.CONTENT_TYPE;
        case VENDORS_ID:
            return Vendors.CONTENT_ITEM_TYPE;
        case ANNOUNCEMENTS:
            return Announcements.CONTENT_TYPE;
        case ANNOUNCEMENTS_ID:
            return Announcements.CONTENT_ITEM_TYPE;
        default:
            throw new UnsupportedOperationException("Unknown uri: " + uri);
    }
}
 
開發者ID:amardeshbd,項目名稱:google-iosched,代碼行數:69,代碼來源:ScheduleProvider.java


注:本文中的com.google.android.apps.iosched.provider.ScheduleContract.Announcements.CONTENT_ITEM_TYPE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。