Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit fe8e3c8

Browse files
authored
Refactor Enums and Structs to their own files (#83)
* Moved all enums to their own files * Moved all structs to their own files
1 parent 7d1d550 commit fe8e3c8

23 files changed

+729
-655
lines changed

src/DolbyIO.Comms.Sdk/CMakeLists.txt

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,28 @@ add_dotnet_library(
33
DolbyIO.Comms.Sdk
44
SOURCES
55
AssemblyInfo.cs
6+
Native/Enums/ConferenceAccessPermission.cs
7+
Native/Enums/ConferenceStatus.cs
8+
Native/Enums/DeviceDirection.cs
9+
Native/Enums/LogLevel.cs
10+
Native/Enums/ParticipantStatus.cs
11+
Native/Enums/ParticipantType.cs
12+
Native/Enums/Result.cs
13+
Native/Enums/SpatialAudioStyle.cs
14+
Native/Structs/AudioDevice.cs
15+
Native/Structs/Conference.cs
16+
Native/Structs/ConferenceOptions.cs
17+
Native/Structs/ConferenceParams.cs
18+
Native/Structs/ConnectionOptions.cs
19+
Native/Structs/Constants.cs
20+
Native/Structs/JoinOptions.cs
21+
Native/Structs/ListenOptions.cs
22+
Native/Structs/MediaConstraints.cs
23+
Native/Structs/Participant.cs
24+
Native/Structs/ParticipantInfo.cs
25+
Native/Structs/UserInfo.cs
626
Native/Callback.cs
727
Native/Handlers.cs
8-
Native/Enum.cs
9-
Native/Struct.cs
1028
Native/Native.cs
1129
Services/SessionService.cs
1230
Services/ConferenceService.cs

src/DolbyIO.Comms.Sdk/Native/Enum.cs

Lines changed: 0 additions & 280 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
namespace DolbyIO.Comms
2+
{
3+
/// <summary>
4+
/// The ConferenceAccessPermissions enum contains the available permissions for application users who are invited to a conference.
5+
/// </summary>
6+
public enum ConferenceAccessPermissions {
7+
/// <summary>
8+
/// Allows a participant to invite other participants to a conference.
9+
/// </summary>
10+
Invite = 0,
11+
/// <summary>
12+
/// Allows a participant to join a conference.
13+
/// </summary>
14+
Join,
15+
/// <summary>
16+
/// Allows a participant to send an audio stream during a conference.
17+
/// </summary>
18+
SendAudio,
19+
/// <summary>
20+
/// Allows a participant to send a video stream during a conference.
21+
/// </summary>
22+
SendVideo,
23+
/// <summary>
24+
/// Allows a participant to share their screen during a conference.
25+
/// </summary>
26+
ShareScreen,
27+
/// <summary>
28+
/// Allows a participant to share a video file during a conference.
29+
/// </summary>
30+
ShareVideo,
31+
/// <summary>
32+
/// Allows a participant to share a file during a conference.
33+
/// </summary>
34+
ShareFile,
35+
/// <summary>
36+
/// Allows a participant to send a message to other participants during a conference.
37+
/// </summary>
38+
SendMessage,
39+
/// <summary>
40+
/// Allows a participant to record a conference.
41+
/// </summary>
42+
Record,
43+
/// <summary>
44+
/// Allows a participant to stream a conference.
45+
/// </summary>
46+
Stream,
47+
/// <summary>
48+
/// Allows a participant to kick other participants from a conference.
49+
/// </summary>
50+
Kick,
51+
/// <summary>
52+
/// Allows a participant to update permissions of other participants.
53+
/// </summary>
54+
UpdatePermissions,
55+
}
56+
}

0 commit comments

Comments
 (0)