You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.6 KiB

package com.dji.sdk.mqtt.state;
import com.dji.sdk.mqtt.CommonTopicRequest;
/**
* @author sean
* @version 1.7
* @date 2023/5/24
*/
public class TopicStateRequest<T> extends CommonTopicRequest<T> {
private String gateway;
private String from;
public TopicStateRequest() {
}
@Override
public String toString() {
return "TopicStateRequest{" +
"gateway='" + gateway + '\'' +
", from='" + from + '\'' +
", tid='" + tid + '\'' +
", bid='" + bid + '\'' +
", timestamp=" + timestamp +
", data=" + data +
'}';
}
public String getTid() {
return tid;
}
public TopicStateRequest<T> setTid(String tid) {
this.tid = tid;
return this;
}
public String getBid() {
return bid;
}
public TopicStateRequest<T> setBid(String bid) {
this.bid = bid;
return this;
}
public Long getTimestamp() {
return timestamp;
}
public TopicStateRequest<T> setTimestamp(Long timestamp) {
this.timestamp = timestamp;
return this;
}
public T getData() {
return data;
}
public TopicStateRequest<T> setData(T data) {
this.data = data;
return this;
}
public String getGateway() {
return gateway;
}
public TopicStateRequest<T> setGateway(String gateway) {
this.gateway = gateway;
return this;
}
public String getFrom() {
return from;
}
public TopicStateRequest<T> setFrom(String from) {
this.from = from;
return this;
}
}