rpicms-android

Android app for the RPICMS.
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms-android.git
Log | Files | Refs

FeedContract.java (2589B)


      1 package de.nordgedanken.rpicms.basicsyncadapter.provider;
      2 
      3 /**
      4  * Created by frank on 13.10.14.
      5  */
      6 import android.content.ContentResolver;
      7 import android.net.Uri;
      8 import android.provider.BaseColumns;
      9 public class FeedContract {
     10 
     11 
     12     /**
     13      * Field and table name constants for
     14      * {@link de.nordgedanken.rpicms.basicsyncadapter.provider.FeedProvider}.
     15      */
     16         private FeedContract() {
     17         }
     18 
     19         /**
     20          * Content provider authority.
     21          */
     22         public static final String CONTENT_AUTHORITY = "de.nordgedanken.rpicms.basicsyncadapter";
     23 
     24         /**
     25          * Base URI. (content://com.example.android.basicsyncadapter)
     26          */
     27         public static final Uri BASE_CONTENT_URI = Uri.parse("content://" + CONTENT_AUTHORITY);
     28 
     29         /**
     30          * Path component for "entry"-type resources..
     31          */
     32         private static final String PATH_ENTRIES = "entries";
     33 
     34         /**
     35          * Columns supported by "entries" records.
     36          */
     37         public static class Entry implements BaseColumns {
     38             /**
     39              * MIME type for lists of entries.
     40              */
     41             public static final String CONTENT_TYPE =
     42                     ContentResolver.CURSOR_DIR_BASE_TYPE + "/vnd.basicsyncadapter.entries";
     43             /**
     44              * MIME type for individual entries.
     45              */
     46             public static final String CONTENT_ITEM_TYPE =
     47                     ContentResolver.CURSOR_ITEM_BASE_TYPE + "/vnd.basicsyncadapter.entry";
     48 
     49             /**
     50              * Fully qualified URI for "entry" resources.
     51              */
     52             public static final Uri CONTENT_URI =
     53                     BASE_CONTENT_URI.buildUpon().appendPath(PATH_ENTRIES).build();
     54 
     55             /**
     56              * Table name where records are stored for "entry" resources.
     57              */
     58             public static final String TABLE_NAME = "entry";
     59             /**
     60              * Atom ID. (Note: Not to be confused with the database primary key, which is _ID.
     61              */
     62             public static final String COLUMN_NAME_ENTRY_ID = "entry_id";
     63             /**
     64              * Article title
     65              */
     66             public static final String COLUMN_NAME_TITLE = "title";
     67             /**
     68              * Article hyperlink. Corresponds to the rel="alternate" link in the
     69              * Atom spec.
     70              */
     71             public static final String COLUMN_NAME_LINK = "link";
     72             /**
     73              * Date article was published.
     74              */
     75             public static final String COLUMN_NAME_PUBLISHED = "published";
     76         }
     77 
     78 
     79 
     80 }