Features class

Server information. Readonly.

Annotations
  • @freezed

Constructors

Features({@JsonKey(name: 'host') required String host, @JsonKey(name: 'build') required String build, @JsonKey(name: 'desktop_version') required String desktopVersion, @JsonKey(name: 'front_version') required String frontVersion, @JsonKey(name: 'app_title') required String appTitle, @JsonKey(name: 'landing_url') String? landingUrl, @JsonKey(name: 'app_schemes') required List<String> appSchemes, @JsonKey(name: 'userver') required String userver, @JsonKey(name: 'ios_app') required String iOSApp, @JsonKey(name: 'android_app') required String androidApp, @JsonKey(name: 'ios_corp_app') required String iOSCorpApp, @JsonKey(name: 'android_corp_app') required String androidCorpApp, @JsonKey(name: 'theme') required String theme, @JsonKey(name: 'min_ios_version') required String minIOSVersion, @JsonKey(name: 'min_android_version') required String minAndroidVersion, @JsonKey(name: 'min_corp_ios_version') required String minCorpIOSVersion, @JsonKey(name: 'min_corp_android_version') required String minCorpAndroidVersion, @JsonKey(name: 'free_registration') required bool freeRegistration, @JsonKey(name: 'max_upload_mb') required int maxUploadMb, @JsonKey(name: 'max_linked_messages') required int maxLinkedMessages, @JsonKey(name: 'max_message_uploads') required int maxMessageUploads, @JsonKey(name: 'max_username_part_length') required int maxUsernamePartLength, @JsonKey(name: 'max_group_title_length') required int maxGroupTitleLength, @JsonKey(name: 'max_team_title_length') required int maxTeamTitleLength, @JsonKey(name: 'max_role_length') required int maxRoleLength, @JsonKey(name: 'max_mood_length') required int maxMoodLength, @JsonKey(name: 'max_message_length') required int maxMessageLength, @JsonKey(name: 'max_section_length') required int maxSectionLength, @JsonKey(name: 'max_project_length') required int maxProjectLength, @JsonKey(name: 'max_tag_length') required int maxTagLength, @JsonKey(name: 'max_task_title_length') required int maxTaskTitleLength, @JsonKey(name: 'max_color_rule_description_length') required int maxColorRuleDescriptionLength, @JsonKey(name: 'max_url_length') required int maxUrlLength, @JsonKey(name: 'max_integration_comment_length') required int maxIntegrationCommentLength, @JsonKey(name: 'max_teams') required int maxTeams, @JsonKey(name: 'max_message_search_limit') required int maxMessageSearchLimit, @Default(false) @JsonKey(name: 'multi_nodes') bool? multiNodes, @JsonKey(name: 'afk_age') required int afkAge, @Default(false) @JsonKey(name: 'auth_by_password') bool? authByPassword, @Default(false) @JsonKey(name: 'auth_by_qr_code') bool? authByQrCode, @Default(false) @JsonKey(name: 'auth_by_sms') bool? authBySms, @Default(false) @JsonKey(name: 'auth_2fa') bool? auth2fa, @Default(false) @JsonKey(name: 'auth_by_ntlm') bool? authByNTLM, @Default(false) @JsonKey(name: 'is_recaptcha_enabled') bool? reCaptchaEnabled, @JsonKey(name: 'recaptcha_web_key_v3') String? reCaptchaWebKeyV3, @JsonKey(name: 'recaptcha_web_key_v2') String? reCaptchaWebKeyV2, @JsonKey(name: 'is_pin_code_required') required bool isPinCodeRequired, @JsonKey(name: 'pin_code_wrong_limit') required int pinCodeWrongLimit, @JsonKey(name: 'oauth_services') List<OAuthService>? oAuthServices, @JsonKey(name: 'ice_servers') required List<ICEServer> iCEServers, @JsonKey(name: 'custom_server') required bool customServer, @JsonKey(name: 'installation_type') required String installationType, @JsonKey(name: 'installation_title') String? installationTitle, @JsonKey(name: 'custom_app_icon_name') String? customAppIconName, @JsonKey(name: 'app_login_background') String? appLoginBackground, @JsonKey(name: 'web_login_background') String? webLoginBackground, @JsonKey(name: 'is_testing') required bool isTesting, @JsonKey(name: 'metrika') required String metrika, @JsonKey(name: 'amplitude_api_key') String? amplitudeApiKey, @JsonKey(name: 'min_search_length') required int minSearchLength, @JsonKey(name: 'resend_timeout') required int resendTimeout, @JsonKey(name: 'sentry_dsn_js') required String sentryDsnJS, @JsonKey(name: 'server_drafts') required bool serverDrafts, @JsonKey(name: 'firebase_app_id') required String firebaseAppId, @JsonKey(name: 'firebase_sender_id') required String firebaseSenderId, @JsonKey(name: 'firebase_api_key') required String firebaseApiKey, @JsonKey(name: 'firebase_auth_domain') required String firebaseAuthDomain, @JsonKey(name: 'firebase_database_url') required String firebaseDatabaseUrl, @JsonKey(name: 'firebase_project_id') required String firebaseProjectId, @JsonKey(name: 'firebase_storage_bucket') required String firebaseStorageBucket, @JsonKey(name: 'calls_version') required int callsVersion, @JsonKey(name: 'mobile_calls') required bool mobileCalls, @JsonKey(name: 'calls_record') required bool callsRecord, @Default(false) @JsonKey(name: 'only_one_device_per_call') bool? onlyOneDevicePerCall, @JsonKey(name: 'max_participants_per_call') int? maxParticipantsPerCall, @JsonKey(name: 'safari_push_id') required String safariPushId, @JsonKey(name: 'message_uploads') required bool messageUploads, @JsonKey(name: 'terms') required Terms terms, @JsonKey(name: 'single_group_teams') required bool singleGroupTeams, @JsonKey(name: 'wiki_pages') required bool wikiPages, @Default(false) @JsonKey(name: 'allow_admin_mute') bool? allowAdminMute, @JsonKey(name: 'default_wallpaper') Wallpaper? defaultWallpaper, @JsonKey(name: 'support_email') required String supportEmail, @JsonKey(name: 'custom_theme') required bool customTheme, @Deprecated('Deprecated.') @JsonKey(name: 'task_checklist') required bool taskChecklist, @Deprecated('Deprecated.') @JsonKey(name: 'readonly_groups') required bool readonlyGroups, @Deprecated('Deprecated.') @JsonKey(name: 'task_dashboard') required bool taskDashboard, @Deprecated('Deprecated.') @JsonKey(name: 'task_messages') required bool taskMessages, @Deprecated('Deprecated.') @JsonKey(name: 'task_public') required bool taskPublic, @Deprecated('Deprecated.') @JsonKey(name: 'task_tags') required bool taskTags, @Deprecated('Deprecated.') @JsonKey(name: 'calls') required bool calls, @Deprecated('Deprecated.') @JsonKey(name: 'min_app_version') required String minAppVersion, @JsonKey(name: 'file_extension_whitelist') List<String>? fileExtensionWhitelist, @JsonKey(name: 'file_extension_blacklist') List<String>? fileExtensionBlacklist, @Default(false) @JsonKey(name: 'file_extension_whitelist_priority') bool? fileExtensionWhitelistPriority})
const
factory
Features.fromJson(Map<String, dynamic> json)
factory

Properties

afkAge int
Max inactivity seconds.
no setterinherited
allowAdminMute bool?
Wiki pages in chats. Experimental.
no setterinherited
amplitudeApiKey String?
Amplitude api key.
no setterinherited
androidApp String
Link to Google Play.
no setterinherited
androidCorpApp String
Link to Google Play for corporate app.
no setterinherited
appLoginBackground String?
AppBackground image url, if any.
no setterinherited
appSchemes List<String>
Local applications urls.
no setterinherited
appTitle String
Application title.
no setterinherited
auth2fa bool?
Two-factor authentication (2FA) enabled.
no setterinherited
authByNTLM bool?
NTLM authentication enabled.
no setterinherited
authByPassword bool?
Password authentication enabled.
no setterinherited
authByQrCode bool?
QR-code / link authentication enabled.
no setterinherited
authBySms bool?
SMS authentication enabled.
no setterinherited
build String
Build/revision of server side.
no setterinherited
calls bool
Deprecated.
no setterinherited
callsRecord bool
Calls record enabled.
no setterinherited
callsVersion int
Calls version. 0 = disabled, 1 = audio only, 2 = audio+video.
no setterinherited
copyWith → $FeaturesCopyWith<Features>
no setterinherited
customAppIconName String?
Custom application icon name, if any.
no setterinherited
customServer bool
True for premise installation.
no setterinherited
customTheme bool
True if server has custom theme.
no setterinherited
defaultWallpaper Wallpaper?
Default wallpaper url for mobile apps, if any.
no setterinherited
desktopVersion String
Desktop application version.
no setterinherited
fileExtensionBlacklist List<String>?
File Extension Blacklist.
no setterinherited
fileExtensionWhitelist List<String>?
File Extension Whitelist.
no setterinherited
fileExtensionWhitelistPriority bool?
File Extension Whitelist Priority.
no setterinherited
firebaseApiKey String
Firebase settings for web-push notifications.
no setterinherited
firebaseAppId String
Firebase settings for web-push notifications.
no setterinherited
firebaseAuthDomain String
Firebase settings for web-push notifications.
no setterinherited
firebaseDatabaseUrl String
Firebase settings for web-push notifications.
no setterinherited
firebaseProjectId String
Firebase settings for web-push notifications.
no setterinherited
firebaseSenderId String
Firebase settings for web-push notifications.
no setterinherited
firebaseStorageBucket String
Firebase settings for web-push notifications.
no setterinherited
freeRegistration bool
Free registration allowed.
no setterinherited
frontVersion String
Webclient version.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
host String
Current host.
no setterinherited
iCEServers List<ICEServer>
ICE servers for WebRTC.
no setterinherited
installationTitle String?
Installation title, used on login screen.
no setterinherited
installationType String
Name of installation.
no setterinherited
iOSApp String
Link to AppStore.
no setterinherited
iOSCorpApp String
Link to AppStore for corporate app.
no setterinherited
isPinCodeRequired bool
Mandatory setting of the pin code in the application.
no setterinherited
isTesting bool
Testing installation.
no setterinherited
landingUrl String?
Landing page address, if any.
no setterinherited
maxColorRuleDescriptionLength int
Maximum length for ColorRule description.
no setterinherited
maxGroupTitleLength int
Maximum chars for group chat name.
no setterinherited
maxIntegrationCommentLength int
Maximum length for Integration comment.
no setterinherited
maxLinkedMessages int
Maximum number of forwarded messages.
no setterinherited
maxMessageLength int
Maximum chars for text message.
no setterinherited
maxMessageSearchLimit int
Maximum search result.
no setterinherited
maxMessageUploads int
Maximum number of message uploads.
no setterinherited
maxMoodLength int
Maximum chars for mood in team.
no setterinherited
maxParticipantsPerCall int?
Maximum number of participants per call.
no setterinherited
maxProjectLength int
Maximum length for project.
no setterinherited
maxRoleLength int
Maximum chars for role in team.
no setterinherited
maxSectionLength int
Maximum length for contact's sections names.
no setterinherited
maxTagLength int
Maximum length for tags.
no setterinherited
maxTaskTitleLength int
Maximum length for task title.
no setterinherited
maxTeams int
Maximum teams for one account.
no setterinherited
maxTeamTitleLength int
Maximum chars for team name.
no setterinherited
maxUploadMb int
Maximum size of user's upload.
no setterinherited
maxUrlLength int
Maximum length for urls.
no setterinherited
maxUsernamePartLength int
Maximum chars for: family_name, given_name, patronymic if any.
no setterinherited
messageUploads bool
Multiple message uploads.
no setterinherited
metrika String
Yandex metrika counter id.
no setterinherited
minAndroidVersion String
Minimal android application version required for this server. Used for breaking changes.
no setterinherited
minAppVersion String
Deprecated.
no setterinherited
minCorpAndroidVersion String
Minimal android corp application version required for this server. Used for breaking changes.
no setterinherited
minCorpIOSVersion String
Minimal iOS corp application version required for this server. Used for breaking changes.
no setterinherited
minIOSVersion String
Minimal iOS application version required for this server. Used for breaking changes.
no setterinherited
minSearchLength int
Minimal chars number for starting global search.
no setterinherited
mobileCalls bool
Calls functions enabled for mobile applications.
no setterinherited
multiNodes bool?
Multi nodes mode (federation) enabled.
no setterinherited
oAuthServices List<OAuthService>?
External services.
no setterinherited
onlyOneDevicePerCall bool?
Disallow call from multiple devices. Experimental.
no setterinherited
pinCodeWrongLimit int
Max number of attempts to enter an invalid PIN code.
no setterinherited
readonlyGroups bool
Deprecated.
no setterinherited
reCaptchaEnabled bool?
Captcha enabled.
no setterinherited
reCaptchaWebKeyV2 String?
ReCaptcha Web Key V2.
no setterinherited
reCaptchaWebKeyV3 String?
ReCaptcha Web Key V3.
no setterinherited
resendTimeout int
Resend message in n seconds if no confirmation from server given.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safariPushId String
Safari push id for web-push notifications.
no setterinherited
sentryDsnJS String
Frontend sentry.io settings.
no setterinherited
serverDrafts bool
Message drafts saved on server.
no setterinherited
singleGroupTeams bool
Cross team communication. Experimental.
no setterinherited
supportEmail String
Support email.
no setterinherited
taskChecklist bool
Deprecated.
no setterinherited
taskDashboard bool
Deprecated.
no setterinherited
taskMessages bool
Deprecated.
no setterinherited
taskPublic bool
Deprecated.
no setterinherited
taskTags bool
Deprecated.
no setterinherited
terms Terms
Team entity naming. Experimental.
no setterinherited
theme String
Default UI theme.
no setterinherited
userver String
Static files server address.
no setterinherited
webLoginBackground String?
WebBackground image url, if any.
no setterinherited
wikiPages bool
Wiki pages in chats. Experimental.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited