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")]
|
|
|
|
AuthCheck = 0,
|
|
|
|
#[display(fmt = "SignIn")]
|
2021-07-09 06:02:42 +00:00
|
|
|
#[event(input = "SignInRequest", output = "SignInResponse")]
|
2021-07-07 14:24:26 +00:00
|
|
|
SignIn = 1,
|
|
|
|
#[display(fmt = "SignUp")]
|
2021-07-09 06:02:42 +00:00
|
|
|
#[event(input = "SignUpRequest", output = "SignUpResponse")]
|
2021-07-07 14:24:26 +00:00
|
|
|
SignUp = 2,
|
|
|
|
#[display(fmt = "SignOut")]
|
|
|
|
SignOut = 3,
|
|
|
|
}
|