C# Class Rocket.Chat.Net.Driver.RocketChatDriver

Inheritance: IRocketChatDriver
Afficher le fichier Open project: RocketChat/Rocket.Chat.Net Class Usage Examples

Private Properties

Свойство Type Description
ClientOnDataReceivedRaw void
CreateTimeoutToken System.Threading.CancellationToken
GetRoomInfoCollection TypedStreamCollection
GetRooms IEnumerable
GetRoomsCollection TypedStreamCollection
HandleRocketMessage void
HandleStreamingCollections void
InternalLoginAsync Task>
OnDdpReconnect void
OnMessageReceived void
SetDriverUserInfoAsync Task
SetJsonOptions void

Méthodes publiques

Méthode Description
ChannelListAsync ( ) : Task>
ConnectAsync ( ) : Task
CreateChannelAsync ( string roomName, IList members = null ) : Task>
CreateGroupAsync ( string groupName, IList members = null ) : Task>
CreatePrivateMessageAsync ( string username ) : Task>
DeleteMessageAsync ( string messageId, string roomId ) : Task
Dispose ( ) : void
EraseRoomAsync ( string roomId ) : Task>
GetCollection ( string collectionName ) : IStreamCollection
GetFullUserDataAsync ( string username ) : Task
GetNewTokenAsync ( ) : Task>
GetRoomIdAsync ( string roomIdOrName ) : Task>
GetStatisticsAsync ( bool refresh = false ) : Task>
HideRoomAsync ( string roomId ) : Task>
JoinRoomAsync ( string roomId ) : Task
LoadMessagesAsync ( string roomId, System.DateTime end = null, int limit = 20, string ls = null ) : Task>
LoginAsync ( ILoginOption loginOption ) : Task>
LoginResumeAsync ( string sessionToken ) : Task>
LoginWithEmailAsync ( string email, string password ) : Task>
LoginWithLdapAsync ( string username, string password ) : Task>
LoginWithUsernameAsync ( string username, string password ) : Task>
PinMessageAsync ( RocketMessage message ) : Task>
PingAsync ( ) : Task
RegisterUserAsync ( string name, string emailOrUsername, string password ) : Task
RemoveOtherTokensAsync ( ) : Task
ResetAvatarAsync ( ) : Task
RocketChatDriver ( ILogger logger, IDdpClient client, IStreamCollectionDatabase collectionDatabaseDatabase, bool isBot = true, JsonSerializerSettings jsonSerializerSettings = null ) : System
RocketChatDriver ( string url, bool useSsl, ILogger logger = null, bool isBot = true, JsonSerializerSettings jsonSerializerSettings = null ) : System
SearchMessagesAsync ( string query, string roomId, int limit = 100 ) : Task>
SendCustomMessageAsync ( Attachment attachment, string roomId ) : Task>
SendMessageAsync ( string text, string roomId ) : Task>
SetAvatarFromImageStreamAsync ( Stream sourceStream, string mimeType ) : Task
SetAvatarFromUrlAsync ( string url ) : Task
SetReactionAsync ( string reaction, string messageId ) : Task
SubscribeToAsync ( string streamName ) : Task
SubscribeToFilteredUsersAsync ( string username = "" ) : Task
SubscribeToRoomAsync ( string roomId = null ) : Task
SubscribeToRoomInformationAsync ( string roomName, RoomType type ) : Task
SubscribeToRoomListAsync ( ) : Task
UnpinMessageAsync ( RocketMessage message ) : Task
UpdateMessageAsync ( string messageId, string roomId, string newMessage ) : Task
UploadFileAsync ( string roomId ) : Task>

Private Methods

Méthode Description
ClientOnDataReceivedRaw ( string type, Newtonsoft.Json.Linq.JObject data ) : void
CreateTimeoutToken ( ) : CancellationToken
GetRoomInfoCollection ( ) : TypedStreamCollection
GetRooms ( ) : IEnumerable
GetRoomsCollection ( ) : TypedStreamCollection
HandleRocketMessage ( string type, Newtonsoft.Json.Linq.JObject data ) : void
HandleStreamingCollections ( string type, Newtonsoft.Json.Linq.JObject data ) : void
InternalLoginAsync ( object request ) : Task>
OnDdpReconnect ( ) : void
OnMessageReceived ( RocketMessage rocketmessage ) : void
SetDriverUserInfoAsync ( string userId ) : Task
SetJsonOptions ( JsonSerializerSettings jsonSerializerSettings = null ) : void

Method Details

ChannelListAsync() public méthode

public ChannelListAsync ( ) : Task>
Résultat Task>

ConnectAsync() public méthode

public ConnectAsync ( ) : Task
Résultat Task

CreateChannelAsync() public méthode

public CreateChannelAsync ( string roomName, IList members = null ) : Task>
roomName string
members IList
Résultat Task>

CreateGroupAsync() public méthode

public CreateGroupAsync ( string groupName, IList members = null ) : Task>
groupName string
members IList
Résultat Task>

CreatePrivateMessageAsync() public méthode

public CreatePrivateMessageAsync ( string username ) : Task>
username string
Résultat Task>

DeleteMessageAsync() public méthode

public DeleteMessageAsync ( string messageId, string roomId ) : Task
messageId string
roomId string
Résultat Task

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EraseRoomAsync() public méthode

public EraseRoomAsync ( string roomId ) : Task>
roomId string
Résultat Task>

GetCollection() public méthode

public GetCollection ( string collectionName ) : IStreamCollection
collectionName string
Résultat IStreamCollection

GetFullUserDataAsync() public méthode

public GetFullUserDataAsync ( string username ) : Task
username string
Résultat Task

GetNewTokenAsync() public méthode

public GetNewTokenAsync ( ) : Task>
Résultat Task>

GetRoomIdAsync() public méthode

public GetRoomIdAsync ( string roomIdOrName ) : Task>
roomIdOrName string
Résultat Task>

GetStatisticsAsync() public méthode

public GetStatisticsAsync ( bool refresh = false ) : Task>
refresh bool
Résultat Task>

HideRoomAsync() public méthode

public HideRoomAsync ( string roomId ) : Task>
roomId string
Résultat Task>

JoinRoomAsync() public méthode

public JoinRoomAsync ( string roomId ) : Task
roomId string
Résultat Task

LoadMessagesAsync() public méthode

public LoadMessagesAsync ( string roomId, System.DateTime end = null, int limit = 20, string ls = null ) : Task>
roomId string
end System.DateTime
limit int
ls string
Résultat Task>

LoginAsync() public méthode

public LoginAsync ( ILoginOption loginOption ) : Task>
loginOption ILoginOption
Résultat Task>

LoginResumeAsync() public méthode

public LoginResumeAsync ( string sessionToken ) : Task>
sessionToken string
Résultat Task>

LoginWithEmailAsync() public méthode

public LoginWithEmailAsync ( string email, string password ) : Task>
email string
password string
Résultat Task>

LoginWithLdapAsync() public méthode

public LoginWithLdapAsync ( string username, string password ) : Task>
username string
password string
Résultat Task>

LoginWithUsernameAsync() public méthode

public LoginWithUsernameAsync ( string username, string password ) : Task>
username string
password string
Résultat Task>

PinMessageAsync() public méthode

public PinMessageAsync ( RocketMessage message ) : Task>
message RocketMessage
Résultat Task>

PingAsync() public méthode

public PingAsync ( ) : Task
Résultat Task

RegisterUserAsync() public méthode

public RegisterUserAsync ( string name, string emailOrUsername, string password ) : Task
name string
emailOrUsername string
password string
Résultat Task

RemoveOtherTokensAsync() public méthode

public RemoveOtherTokensAsync ( ) : Task
Résultat Task

ResetAvatarAsync() public méthode

public ResetAvatarAsync ( ) : Task
Résultat Task

RocketChatDriver() public méthode

public RocketChatDriver ( ILogger logger, IDdpClient client, IStreamCollectionDatabase collectionDatabaseDatabase, bool isBot = true, JsonSerializerSettings jsonSerializerSettings = null ) : System
logger ILogger
client IDdpClient
collectionDatabaseDatabase IStreamCollectionDatabase
isBot bool
jsonSerializerSettings Newtonsoft.Json.JsonSerializerSettings
Résultat System

RocketChatDriver() public méthode

public RocketChatDriver ( string url, bool useSsl, ILogger logger = null, bool isBot = true, JsonSerializerSettings jsonSerializerSettings = null ) : System
url string
useSsl bool
logger ILogger
isBot bool
jsonSerializerSettings Newtonsoft.Json.JsonSerializerSettings
Résultat System

SearchMessagesAsync() public méthode

public SearchMessagesAsync ( string query, string roomId, int limit = 100 ) : Task>
query string
roomId string
limit int
Résultat Task>

SendCustomMessageAsync() public méthode

public SendCustomMessageAsync ( Attachment attachment, string roomId ) : Task>
attachment Rocket.Chat.Net.Models.Attachment
roomId string
Résultat Task>

SendMessageAsync() public méthode

public SendMessageAsync ( string text, string roomId ) : Task>
text string
roomId string
Résultat Task>

SetAvatarFromImageStreamAsync() public méthode

public SetAvatarFromImageStreamAsync ( Stream sourceStream, string mimeType ) : Task
sourceStream Stream
mimeType string
Résultat Task

SetAvatarFromUrlAsync() public méthode

public SetAvatarFromUrlAsync ( string url ) : Task
url string
Résultat Task

SetReactionAsync() public méthode

public SetReactionAsync ( string reaction, string messageId ) : Task
reaction string
messageId string
Résultat Task

SubscribeToAsync() public méthode

public SubscribeToAsync ( string streamName ) : Task
streamName string
Résultat Task

SubscribeToFilteredUsersAsync() public méthode

public SubscribeToFilteredUsersAsync ( string username = "" ) : Task
username string
Résultat Task

SubscribeToRoomAsync() public méthode

public SubscribeToRoomAsync ( string roomId = null ) : Task
roomId string
Résultat Task

SubscribeToRoomInformationAsync() public méthode

public SubscribeToRoomInformationAsync ( string roomName, RoomType type ) : Task
roomName string
type RoomType
Résultat Task

SubscribeToRoomListAsync() public méthode

public SubscribeToRoomListAsync ( ) : Task
Résultat Task

UnpinMessageAsync() public méthode

public UnpinMessageAsync ( RocketMessage message ) : Task
message RocketMessage
Résultat Task

UpdateMessageAsync() public méthode

public UpdateMessageAsync ( string messageId, string roomId, string newMessage ) : Task
messageId string
roomId string
newMessage string
Résultat Task

UploadFileAsync() public méthode

public UploadFileAsync ( string roomId ) : Task>
roomId string
Résultat Task>