Пример #1
0
 /// <summary>
 ///  Adds the specified permission to a client in a specific channel.
 /// </summary>
 /// <param name="channelId">the id of the channel</param>
 /// <param name="clientDatabaseId">the database id of the client</param>
 /// <param name="permission">the permission to add</param>
 public SimpleResponse AddChannelClientPermission(uint channelId, uint clientDatabaseId, NamedPermissionLight permission)
 {
     return AddChannelClientPermissions(channelId, clientDatabaseId, new[] { permission });
 }
Пример #2
0
 /// <summary>
 ///  Adds the specified permission to a channel group.
 /// </summary>
 /// <param name="channelGroupId">the id of the channel group</param>
 /// <param name="permission">the permission to add</param>
 public SimpleResponse AddChannelGroupPermission(uint channelGroupId, NamedPermissionLight permission)
 {
     return AddChannelGroupPermissions(channelGroupId, new[] { permission });
 }