Skip to content

Commit 822b367

Browse files
author
Christopher Brousseau
committed
Extracting Transition object from GetTransitionListResponse, moving it to a first class object
1 parent 77210a7 commit 822b367

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package net.twasi.obsremotejava.objects;
2+
3+
public class Transition {
4+
private String name;
5+
6+
public String getName() {
7+
return name;
8+
}
9+
}

src/main/java/net/twasi/obsremotejava/requests/GetTransitionList/GetTransitionListResponse.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package net.twasi.obsremotejava.requests.GetTransitionList;
22

33
import com.google.gson.annotations.SerializedName;
4+
import net.twasi.obsremotejava.objects.Transition;
45
import net.twasi.obsremotejava.requests.ResponseBase;
56

67
import java.util.List;
@@ -18,12 +19,4 @@ public String getCurrentTransition() {
1819
public List<Transition> getTransitions() {
1920
return transitions;
2021
}
21-
22-
public class Transition {
23-
private String name;
24-
25-
public String getName() {
26-
return name;
27-
}
28-
}
2922
}

0 commit comments

Comments
 (0)