Account.java
public class Account {
String name;
int level;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
}
MCallBack.java
public interface MCallback {
public void onSuccess(Account account);
public void onFailed();
}
MVVMActivity.java
public c
lass MVVMActivity extends AppCompatActivity {
private ActivityMvvmBinding binding;
private MVVMViewModel mvvmViewModel;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedI