Dana
3 天以前 de7368d08258b80af017bc3a0ac891b314f01e36
app/src/main/java/com/safeluck/floatwindow/ResponseVO.java
@@ -11,6 +11,8 @@
 */
public class ResponseVO implements Parcelable {
    private int type;//0-luxiang 1-推流 2-文件名类型(在message里面就是文件名)
    private int cameraId;// @param cameraId 0-内置摄像头(android camera) 1-P1 2-P2
    private String message;//提示信息
    private int errCode;//0-成功(正在推流或正在录像)   1,没有外置sd卡 2.长时间断网 3.短时间断网和网络切换 4.推流结束、或录像结束 -1usbCamera打不开,6-usbCamera实际使用的分辨率(包含在message) 7Dev(本机摄像)分辨率 8.录像时长  5-录像片段结束  err:-3 msg:SystemError
@@ -30,6 +32,14 @@
        this.type = type;
    }
    public int getCameraId() {
        return cameraId;
    }
    public void setCameraId(int cameraId) {
        this.cameraId = cameraId;
    }
    public String getMessage() {
        return message;
    }
@@ -46,6 +56,7 @@
    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.type);
        dest.writeInt(this.cameraId);
        dest.writeString(this.message);
        dest.writeInt(this.errCode);
    }
@@ -55,6 +66,7 @@
    protected ResponseVO(Parcel in) {
        this.type = in.readInt();
        this.cameraId = in.readInt();
        this.message = in.readString();
        this.errCode = in.readInt();
    }
@@ -75,6 +87,7 @@
    public String toString() {
        return "ResponseVO{" +
                "type=" + type +
                "cameraId=" + cameraId +
                ", message='" + message + '\'' +
                ", errCode=" + errCode +
                '}';