Search in sources :

Example 1 with AcceptedGenericInviteEvent

use of com.waz.zclient.controllers.tracking.events.connect.AcceptedGenericInviteEvent in project wire-android by wireapp.

the class MainActivity method handleInvite.

private void handleInvite() {
    String token = getControllerFactory().getUserPreferencesController().getGenericInvitationToken();
    getControllerFactory().getUserPreferencesController().setGenericInvitationToken(null);
    if (TextUtils.isEmpty(token) || TextUtils.equals(token, AppEntryStore.GENERAL_GENERIC_INVITE_TOKEN)) {
        return;
    }
    getStoreFactory().getConnectStore().requestConnection(token);
    injectJava(GlobalTrackingController.class).tagEvent(new AcceptedGenericInviteEvent());
}
Also used : GlobalTrackingController(com.waz.zclient.tracking.GlobalTrackingController) AcceptedGenericInviteEvent(com.waz.zclient.controllers.tracking.events.connect.AcceptedGenericInviteEvent)

Example 2 with AcceptedGenericInviteEvent

use of com.waz.zclient.controllers.tracking.events.connect.AcceptedGenericInviteEvent in project wire-android by wireapp.

the class MainActivity method handleReferral.

private void handleReferral() {
    String referralToken = getControllerFactory().getUserPreferencesController().getReferralToken();
    getControllerFactory().getUserPreferencesController().setReferralToken(null);
    if (TextUtils.isEmpty(referralToken) || TextUtils.equals(referralToken, AppEntryStore.GENERAL_GENERIC_INVITE_TOKEN)) {
        return;
    }
    getStoreFactory().getConnectStore().requestConnection(referralToken);
    injectJava(GlobalTrackingController.class).tagEvent(new AcceptedGenericInviteEvent());
}
Also used : GlobalTrackingController(com.waz.zclient.tracking.GlobalTrackingController) AcceptedGenericInviteEvent(com.waz.zclient.controllers.tracking.events.connect.AcceptedGenericInviteEvent)

Aggregations

AcceptedGenericInviteEvent (com.waz.zclient.controllers.tracking.events.connect.AcceptedGenericInviteEvent)2 GlobalTrackingController (com.waz.zclient.tracking.GlobalTrackingController)2