You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
package com.community.pocket.ui.resetpwd;
|
|
|
|
import androidx.annotation.StringRes;
|
|
|
|
import com.community.pocket.R;
|
|
import com.community.pocket.ui.main.ui.share.ToastResponse;
|
|
import com.community.pocket.util.CustomMessage;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/**
|
|
* 重置密码结果
|
|
*/
|
|
public class ResetPwdResponse extends ToastResponse<ResetPwdResponse.Msg> {
|
|
|
|
enum Msg implements CustomMessage {
|
|
step1_ok(R.string.resetpwd_step1_ok),
|
|
step1_fail(R.string.resetpwd_step1_fail),
|
|
step2_ok(R.string.resetpwd_step2_ok),
|
|
step2_fail(R.string.resetpwd_step2_fail),
|
|
step2_valid_ok(R.string.resetpwd_step2_valid_ok),
|
|
step2_valid_fail(R.string.resetpwd_step2_valid_fail),
|
|
step3_ok(R.string.resetpwd_step3_ok),
|
|
step3_fail(R.string.resetpwd_step3_fail);
|
|
|
|
private Integer msg;
|
|
|
|
Msg(@StringRes Integer msg) {
|
|
this.msg = msg;
|
|
}
|
|
|
|
public void setMsg(Integer msg) {
|
|
this.msg = msg;
|
|
}
|
|
|
|
@NotNull
|
|
@Override
|
|
public Integer getMsg() {
|
|
return msg;
|
|
}
|
|
}
|
|
}
|
|
|