Skip to content

Commit 1b0e044

Browse files
committed
Move OtherState to its own file.
1 parent 8482e2d commit 1b0e044

File tree

2 files changed

+41
-24
lines changed

2 files changed

+41
-24
lines changed

libraries/matrix/api/src/main/kotlin/io/element/android/libraries/matrix/api/timeline/item/event/EventContent.kt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -93,27 +93,3 @@ data class FailedToParseStateContent(
9393
) : EventContent
9494

9595
data object UnknownContent : EventContent
96-
97-
sealed interface OtherState {
98-
data object PolicyRuleRoom : OtherState
99-
data object PolicyRuleServer : OtherState
100-
data object PolicyRuleUser : OtherState
101-
data object RoomAliases : OtherState
102-
data class RoomAvatar(val url: String?) : OtherState
103-
data object RoomCanonicalAlias : OtherState
104-
data object RoomCreate : OtherState
105-
data object RoomEncryption : OtherState
106-
data object RoomGuestAccess : OtherState
107-
data object RoomHistoryVisibility : OtherState
108-
data object RoomJoinRules : OtherState
109-
data class RoomName(val name: String?) : OtherState
110-
data object RoomPinnedEvents : OtherState
111-
data object RoomPowerLevels : OtherState
112-
data object RoomServerAcl : OtherState
113-
data class RoomThirdPartyInvite(val displayName: String?) : OtherState
114-
data object RoomTombstone : OtherState
115-
data class RoomTopic(val topic: String?) : OtherState
116-
data object SpaceChild : OtherState
117-
data object SpaceParent : OtherState
118-
data class Custom(val eventType: String) : OtherState
119-
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2023 New Vector Ltd
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package io.element.android.libraries.matrix.api.timeline.item.event
18+
19+
sealed interface OtherState {
20+
data object PolicyRuleRoom : OtherState
21+
data object PolicyRuleServer : OtherState
22+
data object PolicyRuleUser : OtherState
23+
data object RoomAliases : OtherState
24+
data class RoomAvatar(val url: String?) : OtherState
25+
data object RoomCanonicalAlias : OtherState
26+
data object RoomCreate : OtherState
27+
data object RoomEncryption : OtherState
28+
data object RoomGuestAccess : OtherState
29+
data object RoomHistoryVisibility : OtherState
30+
data object RoomJoinRules : OtherState
31+
data class RoomName(val name: String?) : OtherState
32+
data object RoomPinnedEvents : OtherState
33+
data object RoomPowerLevels : OtherState
34+
data object RoomServerAcl : OtherState
35+
data class RoomThirdPartyInvite(val displayName: String?) : OtherState
36+
data object RoomTombstone : OtherState
37+
data class RoomTopic(val topic: String?) : OtherState
38+
data object SpaceChild : OtherState
39+
data object SpaceParent : OtherState
40+
data class Custom(val eventType: String) : OtherState
41+
}

0 commit comments

Comments
 (0)