2021-07-07 14:24:26 +00:00
|
|
|
use derive_more::Display;
|
2021-07-08 05:47:11 +00:00
|
|
|
use flowy_derive::{Flowy_Event, ProtoBuf_Enum};
|
2021-07-07 14:24:26 +00:00
|
|
|
|
2021-07-08 05:47:11 +00:00
|
|
|
#[derive(Clone, Copy, PartialEq, Eq, Debug, Display, Hash, ProtoBuf_Enum, Flowy_Event)]
|
2021-07-07 14:24:26 +00:00
|
|
|
pub enum UserEvent {
|
|
|
|
#[display(fmt = "AuthCheck")]
|
2021-07-08 05:47:11 +00:00
|
|
|
#[event(input = "UserSignInParams", output = "UserSignInResult")]
|
2021-07-07 14:24:26 +00:00
|
|
|
AuthCheck = 0,
|
2021-07-08 05:47:11 +00:00
|
|
|
#[event(input = "UserSignInParams", output = "UserSignInResult")]
|
2021-07-07 14:24:26 +00:00
|
|
|
#[display(fmt = "SignIn")]
|
|
|
|
SignIn = 1,
|
|
|
|
#[display(fmt = "SignUp")]
|
|
|
|
SignUp = 2,
|
|
|
|
#[display(fmt = "SignOut")]
|
|
|
|
SignOut = 3,
|
|
|
|
}
|