-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* began conference list * Conferences hideable and conference component functional * Style fixes. * Fixed rare race condition. -> slower :/ * Conference Component, Ticket reference BBB meta, attendence list. * Show hidden conference if current user is attending.
- Loading branch information
Showing
96 changed files
with
1,514 additions
and
17,933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
src/main/kotlin/de/thm/mni/ii/classroom/event/ClassroomEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
package de.thm.mni.ii.classroom.event | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties | ||
import com.fasterxml.jackson.annotation.JsonSubTypes | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo | ||
import java.io.Serializable | ||
|
||
@Suppress("unused") | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "eventName") | ||
@JsonSubTypes( | ||
JsonSubTypes.Type(value = MessageEvent::class, name = "MessageEvent"), | ||
JsonSubTypes.Type(value = UserEvent::class, name = "UserEvent"), | ||
JsonSubTypes.Type(value = TicketEvent::class, name = "TicketEvent"), | ||
JsonSubTypes.Type(value = ConferenceEvent::class, name = "ConferenceEvent"), | ||
JsonSubTypes.Type(value = InvitationEvent::class, name = "InvitationEvent"), | ||
) | ||
abstract class ClassroomEvent(@field:Suppress("unused") private val eventName: String) : Serializable | ||
|
||
data class MessageEvent(val message: String) : ClassroomEvent(MessageEvent::class.simpleName!!) | ||
abstract class ClassroomEvent( | ||
private val eventName: String | ||
) : Serializable { | ||
@JsonIgnore abstract fun getClassroomId(): String | ||
} |
5 changes: 4 additions & 1 deletion
5
src/main/kotlin/de/thm/mni/ii/classroom/event/ConferenceEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
src/main/kotlin/de/thm/mni/ii/classroom/event/InvitationEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
package de.thm.mni.ii.classroom.event | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore | ||
import de.thm.mni.ii.classroom.model.classroom.ConferenceInfo | ||
import de.thm.mni.ii.classroom.model.classroom.UserCredentials | ||
|
||
data class InvitationEvent( | ||
val inviter: UserCredentials, | ||
val invitee: UserCredentials, | ||
val conferenceInfo: ConferenceInfo | ||
) : ClassroomEvent(InvitationEvent::class.simpleName!!) | ||
) : ClassroomEvent(InvitationEvent::class.simpleName!!) { | ||
@JsonIgnore | ||
override fun getClassroomId(): String { | ||
return if (inviter.classroomId !== invitee.classroomId || inviter.classroomId !== conferenceInfo.classroomId) { | ||
"INVALID" | ||
} else { | ||
this.conferenceInfo.classroomId | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
package de.thm.mni.ii.classroom.event | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore | ||
import de.thm.mni.ii.classroom.model.classroom.Ticket | ||
|
||
data class TicketEvent( | ||
val ticket: Ticket, | ||
val ticketAction: TicketAction, | ||
) : ClassroomEvent(TicketEvent::class.simpleName!!) | ||
) : ClassroomEvent(TicketEvent::class.simpleName!!) { | ||
@JsonIgnore override fun getClassroomId(): String = this.ticket.classroomId | ||
} | ||
|
||
enum class TicketAction { | ||
CREATE, | ||
ASSIGN, | ||
UPDATE, | ||
CLOSE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.