blob: 19b1c510ad9a4fd0792a2d324c7550ad44659f2f (
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
36
37
38
39
40
41
42
43
44
45
|
package org.psesquared.server.model;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* An enum with all different action types of an {@link EpisodeAction}.
*/
public enum Action {
/**
* The download action type.
*/
DOWNLOAD,
/**
* The play action type.
*/
PLAY,
/**
* The delete action type.
*/
DELETE,
/**
* The new action type.
*/
NEW,
/**
* The flattr action type.
*/
FLATTR;
/**
* Getter for the value of the "action" JSON property.
*
* @return The JSON value
*/
@JsonValue
public String getJsonProperty() {
return name().toLowerCase();
}
}
|