📜  改造 android - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:00.299000             🧑  作者: Mango

代码示例6
User user = new User(123, "John Doe");
Call call = apiService.createuser(user);
call.enqueue(new Callback() {
  @Override
  public void onResponse(Call call, Response response) {

  }

  @Override
  public void onFailure(Call call, Throwable t) {

  }