@Test public void testGetIntent() { mNotification.parseMessageData(); Intent intent = mNotification.getIntent(mContext); assertNotNull(intent); assertEquals(intent.getComponent().getClassName(), "com.thebluealliance.androidclient.activities.ViewMatchActivity"); assertEquals(intent.getStringExtra(ViewMatchActivity.MATCH_KEY), mNotification.getMatchKey()); }
@Override public Intent getIntent(Context c) { return ViewMatchActivity.newInstance(c, matchKey); }
ScoreNotification extends BaseNotification<ScoreNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewMatchActivity.newInstance(c, matchKey); } }
ScoreNotification extends BaseNotification<ScoreNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewMatchActivity.newInstance(c, matchKey); } ScoreNotification(String messageData, MatchWriter writer, MatchRenderer matchRenderer); }
ScoreNotification extends BaseNotification<ScoreNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewMatchActivity.newInstance(c, matchKey); } ScoreNotification(String messageData, MatchWriter writer, MatchRenderer matchRenderer); String getEventName(); String getEventKey(); String getMatchKey(); Match getMatch(); @Override void parseMessageData(); @Override Notification buildNotification(Context context, FollowsChecker followsChecker); @Override void updateDataLocally(); @Override Intent getIntent(Context c); @Override int getNotificationId(); @Override View getView(Context c, LayoutInflater inflater, View convertView); @Nullable @Override ScoreNotificationViewModel renderToViewModel(Context context, @Nullable Void aVoid); }
ScoreNotification extends BaseNotification<ScoreNotificationViewModel> { @Override public Intent getIntent(Context c) { return ViewMatchActivity.newInstance(c, matchKey); } ScoreNotification(String messageData, MatchWriter writer, MatchRenderer matchRenderer); String getEventName(); String getEventKey(); String getMatchKey(); Match getMatch(); @Override void parseMessageData(); @Override Notification buildNotification(Context context, FollowsChecker followsChecker); @Override void updateDataLocally(); @Override Intent getIntent(Context c); @Override int getNotificationId(); @Override View getView(Context c, LayoutInflater inflater, View convertView); @Nullable @Override ScoreNotificationViewModel renderToViewModel(Context context, @Nullable Void aVoid);  }