theme changed
This commit is contained in:
28
app/src/main/java/ch/pizzaleu/android/api/BaseResponse.java
Normal file
28
app/src/main/java/ch/pizzaleu/android/api/BaseResponse.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package ch.pizzaleu.android.api;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by cimenmus on 22.10.2017.
|
||||
*/
|
||||
|
||||
public class BaseResponse implements Serializable {
|
||||
|
||||
@SerializedName("success") private boolean success;
|
||||
@SerializedName("message") private String message;
|
||||
@SerializedName("error_code") private int errorCode;
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public int getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user