Exemple #1
0
 internal StreamConnection(QuarrelClient client, ulong serverId, string sessionId, ulong userId)
 {
     _client    = client;
     _serverId  = serverId;
     _sessionId = sessionId;
     _userId    = userId;
 }
Exemple #2
0
            /// <summary>
            /// Initializes a new instance of the <see cref="QuarrelClientChannels"/> class.
            /// </summary>
            internal QuarrelClientChannels(QuarrelClient client)
            {
                _client = client;

                _channelMap      = new();
                _privateChannels = new();
            }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QuarrelClientSelf"/> class.
 /// </summary>
 internal QuarrelClientSelf(QuarrelClient client)
 {
     _client = client;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QuarrelClientGuilds"/> class.
 /// </summary>
 internal QuarrelClientGuilds(QuarrelClient client)
 {
     _client   = client;
     _guildMap = new ConcurrentDictionary <ulong, Guild>();
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QuarrelClientMessages"/> class.
 /// </summary>
 internal QuarrelClientMessages(QuarrelClient client)
 {
     _client = client;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="QuarrelClientVoice"/> class.
 /// </summary>
 internal QuarrelClientVoice(QuarrelClient client)
 {
     _client          = client;
     _stateDictionary = new Dictionary <ulong, VoiceState>();
 }
Exemple #7
0
            /// <summary>
            /// Initializes a new instance of the <see cref="QuarrelClientUsers"/> class.
            /// </summary>
            internal QuarrelClientUsers(QuarrelClient client)
            {
                _client = client;

                _userMap = new ConcurrentDictionary <ulong, User>();
            }
Exemple #8
0
            /// <summary>
            /// Initializes a new instance of the <see cref="QuarrelClientMembers"/> class.
            /// </summary>
            internal QuarrelClientMembers(QuarrelClient client)
            {
                _client = client;

                _guildsMemberMap = new();
            }