@Test public void testGetIntent() { mNotification.parseMessageData(); Intent intent = mNotification.getIntent(mContext); assertNotNull(intent); assertEquals(intent.getComponent().getClassName(), "com.thebluealliance.androidclient.activities.ViewEventActivity"); assertEquals(intent.getStringExtra(ViewEventActivity.EVENTKEY), mNotification.getEventKey()); assertEquals(intent.getIntExtra(ViewEventActivity.TAB, -1), ViewEventFragmentPagerAdapter.TAB_MATCHES); }
@Override public Intent getIntent(Context c) { return ViewEventActivity.newInstance(c, eventKey, ViewEventFragmentPagerAdapter.TAB_MATCHES); }
CompLevelStartingNotification extends BaseNotification<CompLevelStartingNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewEventActivity.newInstance(c, eventKey, ViewEventFragmentPagerAdapter.TAB_MATCHES); } }
CompLevelStartingNotification extends BaseNotification<CompLevelStartingNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewEventActivity.newInstance(c, eventKey, ViewEventFragmentPagerAdapter.TAB_MATCHES); } CompLevelStartingNotification(String messageData); }
CompLevelStartingNotification extends BaseNotification<CompLevelStartingNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewEventActivity.newInstance(c, eventKey, ViewEventFragmentPagerAdapter.TAB_MATCHES); } CompLevelStartingNotification(String messageData); @Nullable JsonElement getScheduledTime(); String getEventName(); String getEventKey(); String getCompLevelAbbrev(); @Override void parseMessageData(); @Override Notification buildNotification(Context context, FollowsChecker followsChecker); @Override Intent getIntent(Context c); @Override void updateDataLocally(); @Override int getNotificationId(); @Override View getView(Context c, LayoutInflater inflater, View convertView); @Nullable @Override CompLevelStartingNotificationViewModel renderToViewModel(Context context, @Nullable Void aVoid); }
CompLevelStartingNotification extends BaseNotification<CompLevelStartingNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewEventActivity.newInstance(c, eventKey, ViewEventFragmentPagerAdapter.TAB_MATCHES); } CompLevelStartingNotification(String messageData); @Nullable JsonElement getScheduledTime(); String getEventName(); String getEventKey(); String getCompLevelAbbrev(); @Override void parseMessageData(); @Override Notification buildNotification(Context context, FollowsChecker followsChecker); @Override Intent getIntent(Context c); @Override void updateDataLocally(); @Override int getNotificationId(); @Override View getView(Context c, LayoutInflater inflater, View convertView); @Nullable @Override CompLevelStartingNotificationViewModel renderToViewModel(Context context, @Nullable Void aVoid);  }