io.getstream.client.model.activities.UpdateTargetResponse Maven / Gradle / Ivy
The newest version!
package io.getstream.client.model.activities;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* update_to_targets's response wrapper class.
* @param Type of the activity in scope.
*/
public class UpdateTargetResponse {
private T activity;
private String duration;
@JsonProperty("added")
private List addedTargets;
@JsonProperty("removed")
private List removedTargets;
@JsonProperty("new")
private List newTargets;
public void setDuration(String duration) {
this.duration = duration;
}
/**
* Duration of the operation.
* @return Duration in human-readable format.
*/
public String getDuration() {
return duration;
}
public T getActivity() {
return activity;
}
public void setActivity(T activity) {
this.activity = activity;
}
/**
* Get a list of added target(s).
* @return List of added target(s)
*/
public List getAddedTargets() {
return addedTargets;
}
public void setAddedTargets(List addedTargets) {
this.addedTargets = addedTargets;
}
/**
* Get a list of removed target(s).
* @return List of remove target(s)
*/
public List getRemovedTargets() {
return removedTargets;
}
public void setRemovedTargets(List removedTargets) {
this.removedTargets = removedTargets;
}
/**
* Get a list of newly created target(s).
* @return List of newly created target(s)
*/
public List getNewTargets() {
return newTargets;
}
public void setNewTargets(List newTargets) {
this.newTargets = newTargets;
}
}