package de.beyondsoft.ownchat.model.common;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by laszloffiferenc on 2/21/17.
 */
public class BaseResponse {
    @SerializedName("success")
    public boolean success;

    @SerializedName("errors")
    public Error errors;

    @Override
    public String toString() {
        return "BaseResponseModel{" +
                ", success=" + success +
                ", errors=" + errors +
                '}';
    }

    public static class Error {
        @SerializedName("login_failed")
        public List<String> loginFailed;

        @SerializedName("device_id")
        public List<String> deviceId;

        @SerializedName("fcm_token")
        public List<String> fcmToken;

        @SerializedName("token")
        public String token;

        @SerializedName("chatcode_inactive")
        public List<String> chatCodeInactive;

        @SerializedName("chatcode_failed")
        public List<String> chatCodeFailed;

        @SerializedName("chatcode")
        public List<String> chatCodeTooShort;
    }
}
