This commit is contained in:
pavelbannov 2022-09-13 22:35:54 +03:00
parent 7a17f325b1
commit 90c3cd29ba
5 changed files with 84 additions and 4 deletions

View File

@ -0,0 +1,35 @@
// (c) Copyright Ascensio System SIA 2010-2022
//
// This program is a free software product.
// You can redistribute it and/or modify it under the terms
// of the GNU Affero General Public License (AGPL) version 3 as published by the Free Software
// Foundation. In accordance with Section 7(a) of the GNU AGPL its Section 15 shall be amended
// to the effect that Ascensio System SIA expressly excludes the warranty of non-infringement of
// any third-party rights.
//
// This program is distributed WITHOUT ANY WARRANTY, without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For details, see
// the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
//
// You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia, EU, LV-1021.
//
// The interactive user interfaces in modified source and object code versions of the Program must
// display Appropriate Legal Notices, as required under Section 5 of the GNU AGPL version 3.
//
// Pursuant to Section 7(b) of the License you must retain the original Product logo when
// distributing the program. Pursuant to Section 7(e) we decline to grant you any rights under
// trademark law for use of our trademarks.
//
// All the Product's GUI elements, including illustrations and icon sets, as well as technical writing
// content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
namespace ASC.Core.Common.Quota.Features;
public class UsersInRoomFeature : TenantQuotaFeatureCount
{
public override string Name { get => "usersInRoom"; }
public UsersInRoomFeature(TenantQuota tenantQuota) : base(tenantQuota)
{
}
}

View File

@ -97,6 +97,13 @@ public class TenantQuota : IMapFrom<DbQuota>
set => _countManagerFeature.Value = value;
}
private readonly UsersInRoomFeature _usersInRoomFeature;
public int UsersInRoom
{
get => _usersInRoomFeature.Value;
set => _usersInRoomFeature.Value = value;
}
private readonly CountRoomFeature _countRoomFeature;
public int CountRoom
{
@ -215,6 +222,7 @@ public class TenantQuota : IMapFrom<DbQuota>
_activeUsersFeature = new ActiveUsersFeature(this) { Order = 1 };
_countManagerFeature = new CountManagerFeature(this);
_usersInRoomFeature = new UsersInRoomFeature(this) { Order = 8 };
_countRoomFeature = new CountRoomFeature(this) { Order = 2 };
_maxTotalSizeFeature = new MaxTotalSizeFeature(this);
_maxFileSizeFeature = new MaxFileSizeFeature(this);
@ -238,6 +246,7 @@ public class TenantQuota : IMapFrom<DbQuota>
{
_activeUsersFeature,
_countManagerFeature,
_usersInRoomFeature,
_countRoomFeature,
_maxTotalSizeFeature,
_maxFileSizeFeature,

View File

@ -2229,6 +2229,24 @@ namespace ASC.Web.Core.PublicResources {
}
}
/// <summary>
/// Looks up a localized string similar to Managers added:.
/// </summary>
public static string TariffsFeature_used_manager {
get {
return ResourceManager.GetString("TariffsFeature_used_manager", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Room:.
/// </summary>
public static string TariffsFeature_used_room {
get {
return ResourceManager.GetString("TariffsFeature_used_room", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Storage space used:.
/// </summary>
@ -2239,11 +2257,11 @@ namespace ASC.Web.Core.PublicResources {
}
/// <summary>
/// Looks up a localized string similar to Managers added:.
/// Looks up a localized string similar to Users in room:.
/// </summary>
public static string TariffsFeature_used_users {
public static string TariffsFeature_used_usersInRoom {
get {
return ResourceManager.GetString("TariffsFeature_used_users", resourceCulture);
return ResourceManager.GetString("TariffsFeature_used_usersInRoom", resourceCulture);
}
}
@ -2256,6 +2274,15 @@ namespace ASC.Web.Core.PublicResources {
}
}
/// <summary>
/// Looks up a localized string similar to Users in room.
/// </summary>
public static string TariffsFeature_usersInRoom {
get {
return ResourceManager.GetString("TariffsFeature_usersInRoom", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Branding &amp; customization.
/// </summary>

View File

@ -855,7 +855,7 @@
<data name="TariffsFeature_used_total_size" xml:space="preserve">
<value>Storage space used:</value>
</data>
<data name="TariffsFeature_used_users" xml:space="preserve">
<data name="TariffsFeature_used_manager" xml:space="preserve">
<value>Managers added:</value>
</data>
<data name="Tariffs_startup" xml:space="preserve">
@ -867,4 +867,13 @@
<data name="TariffsFeature_file_size" xml:space="preserve">
<value>Max file size</value>
</data>
<data name="TariffsFeature_used_room" xml:space="preserve">
<value>Room:</value>
</data>
<data name="TariffsFeature_used_usersInRoom" xml:space="preserve">
<value>Users in room:</value>
</data>
<data name="TariffsFeature_usersInRoom" xml:space="preserve">
<value>Users in room</value>
</data>
</root>