package com.atlassian.bitbucket.event.user;

import com.atlassian.analytics.api.annotations.EventName;
import com.atlassian.bitbucket.user.ApplicationUser;
import com.atlassian.event.api.AsynchronousPreferred;

import javax.annotation.Nonnull;

@AsynchronousPreferred
@EventName("stash.user.avatar.updated")
public class UserAvatarUpdatedEvent extends UserAttributeChangedEvent {

    public UserAvatarUpdatedEvent(@Nonnull Object source, @Nonnull ApplicationUser updatedUser) {
        super(source, updatedUser);
    }

    /**
     * @inheritDoc
     */
    // TODO: Remove this override in 5.0
    @Nonnull
    @Override
    public ApplicationUser getUpdatedUser() {
        return super.getUpdatedUser();
    }
}
