File tree Expand file tree Collapse file tree
library/src/main/java/com/owncloud/android/lib/resources/assistant Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ data class TaskTypes(
1616
1717data class TaskType (
1818 val id : String? ,
19- val name : String? ,
19+ val name : String ,
2020 val description : String?
2121)
2222
@@ -26,7 +26,7 @@ fun TaskTypes.toV2(): List<TaskTypeData> =
2626 id = taskType.id,
2727 name = taskType.name,
2828 description = taskType.description,
29- inputShape = null ,
30- outputShape = null
29+ inputShape = emptyMap() ,
30+ outputShape = emptyMap()
3131 )
3232 }
Original file line number Diff line number Diff line change @@ -95,11 +95,11 @@ class GetTaskTypesRemoteOperationV2 : OCSRemoteOperation<List<TaskTypeData>>() {
9595 val outputShape = taskType.outputShape
9696
9797 val hasOneTextInput =
98- inputShape? .size == 1 &&
98+ inputShape.size == 1 &&
9999 inputShape.values.first().type == supportedTaskType
100100
101101 val hasOneTextOutput =
102- outputShape? .size == 1 &&
102+ outputShape.size == 1 &&
103103 outputShape.values.first().type == supportedTaskType
104104
105105 return hasOneTextInput && hasOneTextOutput
Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ data class TaskTypes(
1414
1515data class TaskTypeData (
1616 val id : String? ,
17- val name : String? ,
17+ val name : String ,
1818 val description : String? ,
19- val inputShape : Map <String , Shape >? ,
20- val outputShape : Map <String , Shape >?
19+ val inputShape : Map <String , Shape >,
20+ val outputShape : Map <String , Shape >
2121)
2222
2323data class Shape (
24- val name : String? ,
25- val description : String? ,
26- val type : String?
24+ val name : String ,
25+ val description : String ,
26+ val type : String
2727)
You can’t perform that action at this time.
0 commit comments