@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_AWARDS); }
@Override public Intent getIntent(Context context) { return ViewEventActivity.newInstance(context, eventKey, ViewEventFragmentPagerAdapter.TAB_AWARDS); }
AwardsPostedNotification extends BaseNotification<AwardsPostedNotificationViewModel> { @Override public Intent getIntent(Context context) { return ViewEventActivity.newInstance(context, eventKey, ViewEventFragmentPagerAdapter.TAB_AWARDS); } }
AwardsPostedNotification extends BaseNotification<AwardsPostedNotificationViewModel> { @Override public Intent getIntent(Context context) { return ViewEventActivity.newInstance(context, eventKey, ViewEventFragmentPagerAdapter.TAB_AWARDS); } AwardsPostedNotification(String messageData, AwardListWriter writer); }
AwardsPostedNotification extends BaseNotification<AwardsPostedNotificationViewModel> { @Override public Intent getIntent(Context context) { return ViewEventActivity.newInstance(context, eventKey, ViewEventFragmentPagerAdapter.TAB_AWARDS); } AwardsPostedNotification(String messageData, AwardListWriter writer); String getEventName(); String getEventKey(); List<Award> getAwards(); @Override void parseMessageData(); @Override Notification buildNotification(Context context, FollowsChecker followsChecker); @Override void updateDataLocally(); @Override Intent getIntent(Context context); @Override int getNotificationId(); @Override View getView(Context c, LayoutInflater inflater, View convertView); @Nullable @Override AwardsPostedNotificationViewModel renderToViewModel(Context context, @Nullable Void aVoid); }
AwardsPostedNotification extends BaseNotification<AwardsPostedNotificationViewModel> { @Override public Intent getIntent(Context context) { return ViewEventActivity.newInstance(context, eventKey, ViewEventFragmentPagerAdapter.TAB_AWARDS); } AwardsPostedNotification(String messageData, AwardListWriter writer); String getEventName(); String getEventKey(); List<Award> getAwards(); @Override void parseMessageData(); @Override Notification buildNotification(Context context, FollowsChecker followsChecker); @Override void updateDataLocally(); @Override Intent getIntent(Context context); @Override int getNotificationId(); @Override View getView(Context c, LayoutInflater inflater, View convertView); @Nullable @Override AwardsPostedNotificationViewModel renderToViewModel(Context context, @Nullable Void aVoid);  }