Click or drag to resize

Client Class

The client used to consume the Mattermost API.
Inheritance Hierarchy
SystemObject
  MattermostDriverClient

Namespace:  MattermostDriver
Assembly:  MattermostDriver (in MattermostDriver.dll) Version: 0.0.3.10 (0.0.3.10)
Syntax
public class Client

The Client type exposes the following members.

Constructors
  NameDescription
Public methodClient
Creates a new instance of the Mattermost Driver Client.
Top
Methods
  NameDescription
Public methodAttachDeviceId
Attaches a mobile device ID to the current session.
Public methodAutoCompleteCommands
Public methodAutoCompleteUsers
Returns a list of users based on the provided criteria.
Public methodCheckTeamExists
Public methodCheckUserMfa
Checks if multi-factor authentication is enabled for the account specified by the login ID.
Public methodConnect
Connects to the server via websocket.
Public methodCreateChannel
Public methodCreateChannelMember
Public methodCreateCommand
Public methodCreateDirectChannel
Public methodCreateGroupChannel
Public methodCreateIncomingWebhook
Public methodCreateOAuthApp
Public methodCreateOutgoingWebhook
Public methodCreatePost
Public methodCreateReaction
Public methodCreateTeam
Creates a team based on the given Team object.
Public methodCreateTeamMember
Adds a user to a team.
Public methodCreateTeamMembers
Adds multiple users to a team.
Public methodCreateUser
Creates a new user based on the given information.
Public methodDatabaseRecycle
Public methodDeleteChannel
Public methodDeleteChannelMember
Public methodDeleteCommand
Public methodDeleteEmoji
Public methodDeleteIncomingWebhook
Public methodDeleteOAuthApp
Public methodDeleteOutgoingWebhook
Public methodDeletePost
Public methodDeletePreferences
Public methodDeleteSamlIdpCertificate
Public methodDeleteSamlPrivateCertificate
Public methodDeleteSamlPublicCertificate
Public methodDeleteTeam
Deactivates a team based on the specified team ID.
Public methodDeleteTeamMember
Removes a user from the specified team.
Public methodDeleteUser
Deactivates a user account.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGenerateMFA
Generates a new multi-factor authentication secret for the specified user.
Public methodGetAudits(Int32, Int32)
Public methodGetAudits(String, Int32, Int32)
Gets a list of audit logs for the specified user.
Public methodGetAuthorizedOAuthAppsForUser
Public methodGetChannel
Public methodGetChannelByName
Public methodGetChannelByNameForTeamName
Public methodGetChannelMember
Public methodGetChannelMembers
Public methodGetChannelMembersByIDs
Public methodGetChannelMembersForUser
Public methodGetChannelsForTeamForUser
Public methodGetChannelStats
Public methodGetChannelUnread
Public methodGetEmoji
Public methodGetEmojiList
Public methodGetFlaggedPostsForUser
Public methodGetHashCode (Inherited from Object.)
Public methodGetIncomingWebhook
Public methodGetIncomingWebhooks
Public methodGetLogs
Public methodGetOAuthApp
Public methodGetOAuthAppInfo
Public methodGetOAuthApps
Public methodGetOutgoingWebhook
Public methodGetOutgoingWebhooks
Public methodGetPinnedPosts
Public methodGetPost
Public methodGetPosts
Public methodGetPostThread
Public methodGetPreference
Public methodGetPreferences(String)
Public methodGetPreferences(String, String)
Public methodGetPublicChannelsForTeam(String, ListString)
Public methodGetPublicChannelsForTeam(String, Int32, Int32)
Public methodGetReactions
Public methodGetSamlCertificateStatus
Public methodGetSamlMetadata
Public methodGetServerConfig
Public methodGetSessions
Gets a list of sessions for the specified user.
Public methodGetTeam
Gets a team based on the specified team ID.
Public methodGetTeamByName
Public methodGetTeamMember
Gets a team member based on the specified user ID and team ID.
Public methodGetTeamMembers
Gets a list of team members in the specified team.
Public methodGetTeamMembersByIDs
Gets a list of team members in the specified team based on the specified user IDs.
Public methodGetTeamMembersForUser
Public methodGetTeams
Gets a list of all of the teams.
Public methodGetTeamsForUser
Public methodGetTeamStats
Returns team statistics for the specified team.
Public methodGetTeamUnread
Public methodGetType (Inherited from Object.)
Public methodGetUnreadsFromAllTeams
Public methodGetUser
Gets a user object based on the specified user.
Public methodGetUserByEmail
Gets a user based on the specified email.
Public methodGetUserByUsername
Gets a user based on the specified username.
Public methodGetUsers
Gets a list of users based on the provided criteria.
Public methodGetUsersByIDs
Gets a list of users based on the provided user IDs.
Public methodGetUserStatus
Public methodGetUserStatuses
Public methodGetWebrtcToken
Public methodInvalidateCaches
Public methodInviteUserToTeam
Public methodListCommands
Public methodLogin
Authenticates a user using a login ID and a password.
Public methodLoginByID
Authenticates a user using a user ID and a password.
Public methodLoginByLdap
Authenticates a user using LDAP ID and a password.
Public methodLogout
Terminates the current user's session (and disconnects the websocket session if open).
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPing
Public methodPinPost
Public methodPostLog
Public methodRegenerateOAuthAppSecret
Public methodRegenerateOutgoingWebhookToken
Public methodRegerateCommandToken
Public methodReloadConfig
Public methodResetMyPassword
Resets the specified user's password, authenticated with a recovery code.
Public methodRevokeSessions
Revokes a session for the specified user.
Public methodSearchChannels
Public methodSearchPosts
Public methodSearchTeams
Public methodSearchUsers
Searches users matching the specified criteria.
Public methodSendResetPassword
Requests the server to send out a password-reset email to the specified user.
Public methodSendUserTyping
Sends a UserTyping websocket event to the server.
Public methodSendVerificationEmail
Attempts to send an email to the specified email address (if a user exists with that email address) containing a link to verify the email address.
Public methodSwitchAccountType
Switches current user's login type.
Public methodSyncLdap
Public methodTestEmail
Public methodTestLdap
Public methodToString (Inherited from Object.)
Public methodUnpinPost
Public methodUpdateChannel(Channel)
Public methodUpdateChannel(String, String, String, String, String)
Public methodUpdateChannelMemberRoles
Public methodUpdateChannelNotifyProps
Public methodUpdateCommand
Public methodUpdateConfig
Public methodUpdateIncomingWebhook
Public methodUpdateOutgoingWebhook
Public methodUpdatePassword
Updates the specified user's password. Requires current password if changing the current user's password, or requires system admin role if changing someone else's password.
Public methodUpdatePost(Post)
Public methodUpdatePost(String, Boolean, ListString, Boolean)
Public methodUpdatePreferences
Public methodUpdateTeam(Team)
Updates a team using the information in the specified Team object.
Public methodUpdateTeam(String, String, String, String, String, Boolean)
Updates a team based on the specified fields.
Public methodUpdateTeamMemberRoles
Updates the roles for a user on the specified team.
Public methodUpdateUser(User)
Updates a user based on the provided user object.
Public methodUpdateUser(String, String, String, String, String, String, String, String)
Partially updates a user based on provided information.
Public methodUpdateUserActive
Updates the 'active' status of the specified user.
Public methodUpdateUserMFA
Activates or deactivates multi-factor authentication for the specified user.
Public methodUpdateUserRoles
Updates the specified user's roles.
Public methodUpdateUserStatus
Public methodVerifyUserEmail
Verifies the specified user's email address using a hash ID.
Public methodViewChannel
Top
Events
  NameDescription
Public eventChannelDeleted
Invoked when a channel has been deleted.
Public eventChannelViewed
Invoked when a channel has been marked as viewed.
Public eventDirectAdded
Invoked when a direct message channel has been created.
Public eventEphemeralMessage
Invoked when an ephemeral message has been received.
Public eventHello
Invoked when the server sends the Hello event.
Public eventLeaveTeam
Invoked when a user leaves a team.
Public eventNewUser
Invoked when a user has been created.
Public eventPostDeleted
Invoked when a post is deleted.
Public eventPosted
Invoked when a new message has been posted.
Public eventPostEdited
Invoked when a post is edited.
Public eventPreferenceChanged
Invoked when a preference has been changed.
Public eventReactionAdded
Invoked when a reaction is added to a post.
Public eventReactionRemoved
Invoked when a reaction is removed from a post.
Public eventStatusChange
Invoked when a user's status is changed.
Public eventTyping
Invoked when a user is typing.
Public eventUserAdded
Invoked when a user joins a team.
Public eventUserRemoved
Invoked when a user is removed.
Public eventUserUpdated
Invoked when a user has been updated.
Public eventWebsocketConnected
Invoked when the websocket has connected successfully.
Top
See Also