// Path: src/main/java/com/github/baloise/rocketchatrestclient/util/Misc.java
// public class Misc {
//     public static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");
// }


import java.util.Date;
import com.github.baloise.rocketchatrestclient.util.Misc;
package com.github.baloise.rocketchatrestclient.requests;



public class ChannelHistoryRequest {
    private String roomId, latest, oldest;
    private boolean inclusive;

    public ChannelHistoryRequest(String roomId) {
        this.roomId = roomId;
    }

    public ChannelHistoryRequest(String roomId, String latest, String oldest, boolean inclusive) {
        this.roomId = roomId;
        this.latest = latest;
        this.oldest = oldest;
        this.inclusive = inclusive;
    }

    public String getRoomId() {
        return this.roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getLatest() {
        return this.latest;
    }

    public void setLatest(Date latest) {
// Path: src/main/java/com/github/baloise/rocketchatrestclient/util/Misc.java
// public class Misc {
//     public static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");
// }


// Path: src/main/java/com/github/baloise/rocketchatrestclient/requests/ChannelHistoryRequest.java
import java.util.Date;
import com.github.baloise.rocketchatrestclient.util.Misc;

package com.github.baloise.rocketchatrestclient.requests;



public class ChannelHistoryRequest {
    private String roomId, latest, oldest;
    private boolean inclusive;

    public ChannelHistoryRequest(String roomId) {
        this.roomId = roomId;
    }

    public ChannelHistoryRequest(String roomId, String latest, String oldest, boolean inclusive) {
        this.roomId = roomId;
        this.latest = latest;
        this.oldest = oldest;
        this.inclusive = inclusive;
    }

    public String getRoomId() {
        return this.roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getLatest() {
        return this.latest;
    }

    public void setLatest(Date latest) {
        this.latest = Misc.dateFormat.format(latest);