blob: 004df124c3be2001ced70412f296a87d26243ee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package org.psesquared.server.util;
import ch.qos.logback.core.joran.sanity.Pair;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
/**
* Placeholder for a function this implementation does not support.
*/
@Data
public class UpdateUrlsWrapper {
/**
* The timestamp of this response-wrapper.
*/
private final long timestamp;
/**
* An empty list of URL pairs.
*/
@JsonProperty(value = "update_urls")
private final List<Pair<String, String>> updateUrls = new ArrayList<>();
/**
* Creates a placeholder for a function this implementation does not support.
*/
public UpdateUrlsWrapper() {
this.timestamp = LocalDateTime.now().toEpochSecond(ZoneOffset.UTC);
}
}
|