当前位置: 首页>>代码示例>>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;未经允许,请勿转载。