From f05dc6940e07dd2d92eeee2efa8d1251e4405571 Mon Sep 17 00:00:00 2001 From: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com> Date: Tue, 23 Aug 2022 10:31:07 +0900 Subject: [PATCH] expose `ParticipantPermissions`'s properties --- .../Types/ParticipantPermissions.swift | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Sources/LiveKit/Types/ParticipantPermissions.swift b/Sources/LiveKit/Types/ParticipantPermissions.swift index 88fb2f498..928f57ce0 100644 --- a/Sources/LiveKit/Types/ParticipantPermissions.swift +++ b/Sources/LiveKit/Types/ParticipantPermissions.swift @@ -16,15 +16,16 @@ public struct ParticipantPermissions: Equatable { - let canSubscribe: Bool - /// allow participant to publish new tracks to room - let canPublish: Bool - /// allow participant to publish data - let canPublishData: Bool - /// indicates that it's hidden to others - let hidden: Bool - /// indicates it's a recorder instance - let recorder: Bool + /// ``Participant`` can subscribe to tracks in the room + public let canSubscribe: Bool + /// ``Participant`` can publish new tracks to room + public let canPublish: Bool + /// ``Participant`` can publish data + public let canPublishData: Bool + /// ``Participant`` is hidden to others + public let hidden: Bool + /// Indicates it's a recorder instance + public let recorder: Bool public init(canSubscribe: Bool = false, canPublish: Bool = false,