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.
46 lines
889 B
46 lines
889 B
package com.community.pocket.ui.main.ui.visitor.appointment;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
|
|
/**
|
|
* 访客接口请求结果
|
|
*/
|
|
public class VisitorResponse<T> {
|
|
@Nullable
|
|
private Integer success;
|
|
@Nullable
|
|
private Integer error;
|
|
|
|
private T body;
|
|
|
|
@Nullable
|
|
public Integer getSuccess() {
|
|
return success;
|
|
}
|
|
|
|
public VisitorResponse<T> setSuccess(@Nullable Integer success) {
|
|
this.success = success;
|
|
return this;
|
|
}
|
|
|
|
@Nullable
|
|
public Integer getError() {
|
|
return error;
|
|
}
|
|
|
|
public VisitorResponse<T> setError(@Nullable Integer error) {
|
|
this.error = error;
|
|
return this;
|
|
}
|
|
|
|
@NonNull
|
|
T getBody() {
|
|
return body;
|
|
}
|
|
|
|
public VisitorResponse<T> setBody(@NonNull T body) {
|
|
this.body = body;
|
|
return this;
|
|
}
|
|
}
|
|
|