-
Notifications
You must be signed in to change notification settings - Fork 13
/
TgStatesOutputResponseStub.java
53 lines (47 loc) · 1.75 KB
/
TgStatesOutputResponseStub.java
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**********************************************************************
* Copyright (c) 2020 École Polytechnique de Montréal
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core.tests.stubs;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A stub class for the response to a time graph states' request. It contains
* the generic response, as well as an {@link TimeGraphModelStub}
*
* @author Geneviève Bastien
*/
public class TgStatesOutputResponseStub extends OutputResponseStub {
private static final long serialVersionUID = 4431040019465669910L;
private final TimeGraphModelStub fModel;
/**
* {@link JsonCreator} Constructor from json
*
* @param model
* The model for this response
* @param status
* The status of the response
* @param statusMessage
* The custom status message of the response
*/
public TgStatesOutputResponseStub(@JsonProperty("model") TimeGraphModelStub model,
@JsonProperty("status") String status,
@JsonProperty("statusMessage") String statusMessage) {
super(status, statusMessage);
fModel = model;
}
/**
* Get the model for this response
*
* @return The model for the response
*/
public TimeGraphModelStub getModel() {
return fModel;
}
}