@Test public void testGetIntent() { mNotification.parseMessageData(); Intent intent = mNotification.getIntent(mContext); assertNotNull(intent); assertEquals(intent.getComponent().getClassName(), "com.thebluealliance.androidclient.activities.ViewDistrictActivity"); assertEquals(intent.getStringExtra(ViewDistrictActivity.DISTRICT_ABBREV), "pnw"); assertEquals(intent.getIntExtra(ViewDistrictActivity.YEAR, -1), 2014); }
@Override public Intent getIntent(Context c) { return ViewDistrictActivity.newInstance(c, districtKey); }
DistrictPointsUpdatedNotification extends BaseNotification<GenericNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewDistrictActivity.newInstance(c, districtKey); } }
DistrictPointsUpdatedNotification extends BaseNotification<GenericNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewDistrictActivity.newInstance(c, districtKey); } DistrictPointsUpdatedNotification(String messageData); }
DistrictPointsUpdatedNotification extends BaseNotification<GenericNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewDistrictActivity.newInstance(c, districtKey); } DistrictPointsUpdatedNotification(String messageData); @Override void parseMessageData(); String getDistrictName(); String getDistrictKey(); @Override Notification buildNotification(Context context, FollowsChecker followsChecker); @Override Intent getIntent(Context c); @Override void updateDataLocally(); @Override int getNotificationId(); @Nullable @Override GenericNotificationViewModel renderToViewModel(Context context, @Nullable Void aVoid); }
DistrictPointsUpdatedNotification extends BaseNotification<GenericNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewDistrictActivity.newInstance(c, districtKey); } DistrictPointsUpdatedNotification(String messageData); @Override void parseMessageData(); String getDistrictName(); String getDistrictKey(); @Override Notification buildNotification(Context context, FollowsChecker followsChecker); @Override Intent getIntent(Context c); @Override void updateDataLocally(); @Override int getNotificationId(); @Nullable @Override GenericNotificationViewModel renderToViewModel(Context context, @Nullable Void aVoid);  }