|
29 | 29 |
|
30 | 30 | import android.provider.BaseColumns;
|
31 | 31 |
|
32 |
| -public class OneSignalDbContract { |
33 |
| - public OneSignalDbContract() {} |
| 32 | +class OneSignalDbContract { |
| 33 | + OneSignalDbContract() {} |
34 | 34 |
|
35 |
| - public static abstract class NotificationTable implements BaseColumns { |
36 |
| - public static final String TABLE_NAME = "notification"; |
37 |
| - public static final String COLUMN_NAME_NOTIFICATION_ID = "notification_id"; // OneSignal Notification Id |
38 |
| - public static final String COLUMN_NAME_ANDROID_NOTIFICATION_ID = "android_notification_id"; |
39 |
| - public static final String COLUMN_NAME_GROUP_ID = "group_id"; |
40 |
| - public static final String COLUMN_NAME_IS_SUMMARY = "is_summary"; |
41 |
| - public static final String COLUMN_NAME_OPENED = "opened"; |
42 |
| - public static final String COLUMN_NAME_DISMISSED = "dismissed"; |
43 |
| - public static final String COLUMN_NAME_TITLE = "title"; |
44 |
| - public static final String COLUMN_NAME_MESSAGE = "message"; |
45 |
| - public static final String COLUMN_NAME_CREATED_TIME = "created_time"; |
| 35 | + static abstract class NotificationTable implements BaseColumns { |
| 36 | + static final String TABLE_NAME = "notification"; |
| 37 | + static final String COLUMN_NAME_NOTIFICATION_ID = "notification_id"; // OneSignal Notification Id |
| 38 | + static final String COLUMN_NAME_ANDROID_NOTIFICATION_ID = "android_notification_id"; |
| 39 | + static final String COLUMN_NAME_GROUP_ID = "group_id"; |
| 40 | + static final String COLUMN_NAME_IS_SUMMARY = "is_summary"; |
| 41 | + static final String COLUMN_NAME_OPENED = "opened"; |
| 42 | + static final String COLUMN_NAME_DISMISSED = "dismissed"; |
| 43 | + static final String COLUMN_NAME_TITLE = "title"; |
| 44 | + static final String COLUMN_NAME_MESSAGE = "message"; |
| 45 | + static final String COLUMN_NAME_CREATED_TIME = "created_time"; |
46 | 46 |
|
47 | 47 | // JSON formatted string of the full GCM bundle
|
48 |
| - public static final String COLUMN_NAME_FULL_DATA = "full_data"; |
| 48 | + static final String COLUMN_NAME_FULL_DATA = "full_data"; |
49 | 49 |
|
50 | 50 |
|
51 |
| - public static final String INDEX_CREATE_NOTIFICATION_ID = "CREATE INDEX notification_notification_id_idx ON notification(notification_id); "; |
52 |
| - public static final String INDEX_CREATE_ANDROID_NOTIFICATION_ID = "CREATE INDEX notification_android_notification_id_idx ON notification(android_notification_id); "; |
53 |
| - public static final String INDEX_CREATE_GROUP_ID = "CREATE INDEX notification_group_id_idx ON notification(group_id); "; |
54 |
| - public static final String INDEX_CREATE_CREATED_TIME = "CREATE INDEX notification_created_time_idx ON notification(created_time); "; |
| 51 | + static final String INDEX_CREATE_NOTIFICATION_ID = "CREATE INDEX notification_notification_id_idx ON notification(notification_id); "; |
| 52 | + static final String INDEX_CREATE_ANDROID_NOTIFICATION_ID = "CREATE INDEX notification_android_notification_id_idx ON notification(android_notification_id); "; |
| 53 | + static final String INDEX_CREATE_GROUP_ID = "CREATE INDEX notification_group_id_idx ON notification(group_id); "; |
| 54 | + static final String INDEX_CREATE_CREATED_TIME = "CREATE INDEX notification_created_time_idx ON notification(created_time); "; |
55 | 55 | }
|
56 | 56 | }
|
0 commit comments