We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@AutoValue public abstract class Result<T> { public abstract int status(); public abstract String message(); public abstract T data(); public static <T> TypeAdapter<Result<T>> typeAdapter(Gson gson, TypeToken<T> typeToken) { return new AutoValue_Result.GsonTypeAdapter(gson, typeToken).nullSafe(); } }
请求返回固定格式,这样一个泛型,请求成功是没有问题,但是失败了,返回 {"status":0,"message":"","data":""}或{"status":0,"message":""}解析都出错,这种怎么解决呢?(不使用autovalue是没有问题的)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
请求返回固定格式,这样一个泛型,请求成功是没有问题,但是失败了,返回
{"status":0,"message":"","data":""}或{"status":0,"message":""}解析都出错,这种怎么解决呢?(不使用autovalue是没有问题的)
The text was updated successfully, but these errors were encountered: