HallDetalisRequest.java 1.34 KB
package com.cnlive.goldenline.model.request;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * description:
 * Created by Sivin on 2017/4/9.
 */

public class HallDetalisRequest implements Parcelable{

    private String liveId;
    private Long hallId;

    public HallDetalisRequest() {
    }

    public HallDetalisRequest(String liveId, Long hallId) {
        this.liveId = liveId;
        this.hallId = hallId;
    }

    protected HallDetalisRequest(Parcel in) {
        liveId = in.readString();
    }

    public static final Creator<HallDetalisRequest> CREATOR = new Creator<HallDetalisRequest>() {
        @Override
        public HallDetalisRequest createFromParcel(Parcel in) {
            return new HallDetalisRequest(in);
        }

        @Override
        public HallDetalisRequest[] newArray(int size) {
            return new HallDetalisRequest[size];
        }
    };

    public String getLiveId() {
        return liveId;
    }

    public void setLiveId(String liveId) {
        this.liveId = liveId;
    }

    public Long getHallId() {
        return hallId;
    }

    public void setHallId(Long hallId) {
        this.hallId = hallId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(liveId);
    }
}