Contact class

Contact.

Annotations
  • @freezed

Constructors

Contact({@JsonKey(name: 'jid') required String jid, @JsonKey(name: 'node') String? node, @JsonKey(name: 'display_name') required String displayName, @JsonKey(name: 'short_name') required String shortName, @JsonKey(name: 'contact_email') required String contactEmail, @JsonKey(name: 'contact_phone') required String contactPhone, @JsonKey(name: 'icons') required IconData icons, @JsonKey(name: 'gentime') required int gentime, @JsonKey(name: 'role') required String role, @JsonKey(name: 'mood') String? mood, @JsonKey(name: 'status') required String teamStatus, @JsonKey(name: 'last_activity') @DateTimeConverter() DateTime? lastActivity, @Default(false) @JsonKey(name: 'is_archive') bool? isArchive, @JsonKey(name: 'botname') String? botname, @JsonKey(name: 'sections') required List<String> sections, @Default(false) @JsonKey(name: 'can_send_message') bool? canSendMessage, @JsonKey(name: 'cant_send_message_reason') String? cantSendMessageReason, @Default(false) @JsonKey(name: 'can_call') bool? canCall, @Default(false) @JsonKey(name: 'can_create_task') bool? canCreateTask, @Default(false) @JsonKey(name: 'can_import_tasks') bool? canImportTasks, @Default(false) @JsonKey(name: 'can_add_to_group') bool? canAddToGroup, @Default(false) @JsonKey(name: 'can_delete') bool? canDelete, @JsonKey(name: 'changeable_fields') List<String>? changeableFields, @JsonKey(name: 'family_name') String? familyName, @JsonKey(name: 'given_name') String? givenName, @JsonKey(name: 'patronymic') String? patronymic, @JsonKey(name: 'default_lang') String? defaultLang, @Default(false) @JsonKey(name: 'debug_show_activity') bool? debugShowActivity, @Default(false) @JsonKey(name: 'dropall_enabled') bool? dropallEnabled, @Default(false) @JsonKey(name: 'alt_send') bool? altSend, @Default(false) @JsonKey(name: 'asterisk_mention') bool? asteriskMention, @Default(false) @JsonKey(name: 'always_send_pushes') bool? alwaysSendPushes, @Default(false) @JsonKey(name: 'hide_pushes_content') bool? hidePushesContent, @JsonKey(name: 'timezone') String? timezone, @JsonKey(name: 'quiet_time_start') String? quietTimeStart, @JsonKey(name: 'quiet_time_finish') String? quietTimeFinish, @JsonKey(name: 'focus_until') @DateTimeConverter() DateTime? focusUntil, @Default(false) @JsonKey(name: 'group_notifications_enabled') bool? groupNotificationsEnabled, @Default(false) @JsonKey(name: 'task_notifications_enabled') bool? taskNotificationsEnabled, @Default(false) @JsonKey(name: 'contact_short_view') bool? contactShortView, @Default(false) @JsonKey(name: 'group_short_view') bool? groupShortView, @Default(false) @JsonKey(name: 'task_short_view') bool? taskShortView, @Default(false) @JsonKey(name: 'contact_mshort_view') bool? contactMshortView, @Default(false) @JsonKey(name: 'group_mshort_view') bool? groupMshortView, @Default(false) @JsonKey(name: 'auth_2fa_enabled') bool? auth2faEnabled, @JsonKey(name: 'auth_2fa_status') String? auth2faStatus, @Default(false) @JsonKey(name: 'task_mshort_view') bool? taskMshortView, @Default(false) @JsonKey(name: 'contact_show_archived') bool? contactShowArchived, @Default(false) @JsonKey(name: 'unread_first') bool? unreadFirst, @Default(false) @JsonKey(name: 'munread_first') bool? mUnreadFirst, @Default(false) @JsonKey(name: 'can_add_to_team') bool? canAddToTeam, @Default(false) @JsonKey(name: 'can_manage_sections') bool? canManageSections, @Default(false) @JsonKey(name: 'can_manage_projects') bool? canManageProjects, @Default(false) @JsonKey(name: 'can_manage_tags') bool? canManageTags, @Default(false) @JsonKey(name: 'can_manage_integrations') bool? canManageIntegrations, @Default(false) @JsonKey(name: 'can_manage_color_rules') bool? canManageColorRules, @Default(false) @JsonKey(name: 'can_create_group') bool? canCreateGroup, @Default(false) @JsonKey(name: 'can_join_public_groups') bool? canJoinPublicGroups, @Default(false) @JsonKey(name: 'can_join_public_tasks') bool? canJoinPublicTasks, @JsonKey(name: 'custom_fields') ContactCustomFields? customFields, @Default(false) @Deprecated('Deprecated.') @JsonKey(name: 'can_delete_any_message') bool? canDeleteAnyMessage})
const
factory
Contact.fromJson(Map<String, dynamic> json)
factory

Properties

altSend bool?
Use Ctrl/Cmd + Enter instead Enter.
no setterinherited
alwaysSendPushes bool?
Send push notifications even contact is online.
no setterinherited
asteriskMention bool?
Use * as @ for mentions.
no setterinherited
auth2faEnabled bool?
Two-factor authentication is configured and confirmed.
no setterinherited
auth2faStatus String?
Two-factor authentication status.
no setterinherited
botname String?
Bot name. Empty for users.
no setterinherited
canAddToGroup bool?
Can I add this contact to group chats.
no setterinherited
canAddToTeam bool?
Can I add new members to this team.
no setterinherited
canCall bool?
Can I call to this contact.
no setterinherited
canCreateGroup bool?
Can I create group chats in this team.
no setterinherited
canCreateTask bool?
Can I create task for this contact.
no setterinherited
canDelete bool?
Can I remove this contact from team.
no setterinherited
canDeleteAnyMessage bool?
Deprecated.
no setterinherited
canImportTasks bool?
Can I import tasks in this team.
no setterinherited
canJoinPublicGroups bool?
Can I view/join public group in this team.
no setterinherited
canJoinPublicTasks bool?
Can I view/join public tasks in this team.
no setterinherited
canManageColorRules bool?
Can I manage color rules in this team.
no setterinherited
canManageIntegrations bool?
Can I manage integrations in this team.
no setterinherited
canManageProjects bool?
Can I manage task projects in this team.
no setterinherited
canManageSections bool?
Can I manage contact sections in this team.
no setterinherited
canManageTags bool?
Can I manage tags in this team.
no setterinherited
canSendMessage bool?
Can I send message to this contact.
no setterinherited
cantSendMessageReason String?
Why I can't send message to this chat (if can't).
no setterinherited
changeableFields List<String>?
Changeable fields.
no setterinherited
contactEmail String
Contact email in this team.
no setterinherited
contactMshortView bool?
Short view in contact list in mobile app.
no setterinherited
contactPhone String
Contact phone in this team.
no setterinherited
contactShortView bool?
Short view in contact list.
no setterinherited
contactShowArchived bool?
Show archived contacts in contact list.
no setterinherited
copyWith → $ContactCopyWith<Contact>
no setterinherited
customFields ContactCustomFields?
Extra contact fields.
no setterinherited
debugShowActivity bool?
Enable debug messages in UI.
no setterinherited
defaultLang String?
Default language code.
no setterinherited
displayName String
Full name in chats.
no setterinherited
dropallEnabled bool?
Enable remove all messages experimental features.
no setterinherited
familyName String?
Family name.
no setterinherited
focusUntil DateTime?
Focus mode enabled until.
no setterinherited
gentime int
Object version.
no setterinherited
givenName String?
Given name.
no setterinherited
groupMshortView bool?
Short view in group list in mobile app.
no setterinherited
groupNotificationsEnabled bool?
Push notifications for group chats.
no setterinherited
groupShortView bool?
Short view in group list.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hidePushesContent bool?
Hide pushes body.
no setterinherited
icons IconData
Icons data.
no setterinherited
isArchive bool?
Contact deleted.
no setterinherited
jid String
Contact Id.
no setterinherited
lastActivity DateTime?
Last activity in this team (iso datetime).
no setterinherited
mood String?
Mood in this team.
no setterinherited
mUnreadFirst bool?
Show unread chats first in feed in mobile app.
no setterinherited
node String?
Node uid for external users.
no setterinherited
patronymic String?
Patronymic, if any.
no setterinherited
quietTimeFinish String?
Quiet time finish.
no setterinherited
quietTimeStart String?
Quiet time start.
no setterinherited
role String
Role in this team.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sections List<String>
Section ids.
no setterinherited
shortName String
Short name in chats.
no setterinherited
taskMshortView bool?
Short view in task list in mobile app.
no setterinherited
taskNotificationsEnabled bool?
Push notifications for task chats.
no setterinherited
taskShortView bool?
Short view in task list.
no setterinherited
teamStatus String
Status in this team.
no setterinherited
timezone String?
Timezone, if any.
no setterinherited
unreadFirst bool?
Show unread chats first in feed.
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