using _Core;

namespace _Combo.Events {
    public class LoginSuccessEvent : Event<LoginSuccessEvent> {
        public Credential credential;
        public Credential linkCredential;
    }

    public class LoginCancelEvent : Event<LoginCancelEvent> {
        
    }

    public class LoginFailedEvent : Event<LoginFailedEvent> {
        public InternalError error;
    }

    public class LoginSwitchAccountEvent : Event<LoginSwitchAccountEvent> {}

    public class CheckLinkIdentityEvent : Event<CheckLinkIdentityEvent> {
        public string externalId;
        public Credential credential;
    }

    public class CloseLoginViewEvent : Event<CloseLoginViewEvent> {}

    public class LinkIdentityFailedEvent : Event<LinkIdentityFailedEvent> {
        public Credential linkCredential;
    }

    public class DeleteUserHistoryEvent : Event<DeleteUserHistoryEvent> {
        public string userId;
    }
}