ThreadsApi class

Constructors

ThreadsApi(Dio _dio, Serializers _serializers)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getThreadMentionCountsByChannel({required String userId, required String teamId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<void>>
Get all unread mention counts from followed threads, per-channel Get all unread mention counts from followed threads Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have `edit_other_users` permission.
getUserThread({required String userId, required String teamId, required String threadId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<void>>
Get a thread followed by the user Get a thread Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have `edit_other_users` permission.
getUserThreads({required String userId, required String teamId, int? since, bool? deleted = false, bool? extended = false, int? page = 0, int? pageSize = 30, bool? totalsOnly = false, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<UserThreads>>
Get all threads that user is following Get all threads that user is following Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have `edit_other_users` permission.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startFollowingThread({required String userId, required String teamId, required String threadId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<void>>
Start following a thread Start following a thread Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have `edit_other_users` permission.
stopFollowingThread({required String userId, required String teamId, required String threadId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<void>>
Stop following a thread Stop following a thread Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have `edit_other_users` permission.
toString() String
A string representation of this object.
inherited
updateThreadReadForUser({required String userId, required String teamId, required String threadId, required String timestamp, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<void>>
Mark a thread that user is following read state to the timestamp Mark a thread that user is following as read Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have `edit_other_users` permission.
updateThreadsReadForUser({required String userId, required String teamId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<void>>
Mark all threads that user is following as read Mark all threads that user is following as read Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have `edit_other_users` permission.

Operators

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