C# 클래스 Rocket.Chat.Net.Driver.RocketChatDriver

상속: IRocketChatDriver
파일 보기 프로젝트 열기: RocketChat/Rocket.Chat.Net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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>

비공개 메소드들

메소드 설명
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

메소드 상세

ChannelListAsync() 공개 메소드

public ChannelListAsync ( ) : Task>
리턴 Task>

ConnectAsync() 공개 메소드

public ConnectAsync ( ) : Task
리턴 Task

CreateChannelAsync() 공개 메소드

public CreateChannelAsync ( string roomName, IList members = null ) : Task>
roomName string
members IList
리턴 Task>

CreateGroupAsync() 공개 메소드

public CreateGroupAsync ( string groupName, IList members = null ) : Task>
groupName string
members IList
리턴 Task>

CreatePrivateMessageAsync() 공개 메소드

public CreatePrivateMessageAsync ( string username ) : Task>
username string
리턴 Task>

DeleteMessageAsync() 공개 메소드

public DeleteMessageAsync ( string messageId, string roomId ) : Task
messageId string
roomId string
리턴 Task

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EraseRoomAsync() 공개 메소드

public EraseRoomAsync ( string roomId ) : Task>
roomId string
리턴 Task>

GetCollection() 공개 메소드

public GetCollection ( string collectionName ) : IStreamCollection
collectionName string
리턴 IStreamCollection

GetFullUserDataAsync() 공개 메소드

public GetFullUserDataAsync ( string username ) : Task
username string
리턴 Task

GetNewTokenAsync() 공개 메소드

public GetNewTokenAsync ( ) : Task>
리턴 Task>

GetRoomIdAsync() 공개 메소드

public GetRoomIdAsync ( string roomIdOrName ) : Task>
roomIdOrName string
리턴 Task>

GetStatisticsAsync() 공개 메소드

public GetStatisticsAsync ( bool refresh = false ) : Task>
refresh bool
리턴 Task>

HideRoomAsync() 공개 메소드

public HideRoomAsync ( string roomId ) : Task>
roomId string
리턴 Task>

JoinRoomAsync() 공개 메소드

public JoinRoomAsync ( string roomId ) : Task
roomId string
리턴 Task

LoadMessagesAsync() 공개 메소드

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

LoginAsync() 공개 메소드

public LoginAsync ( ILoginOption loginOption ) : Task>
loginOption ILoginOption
리턴 Task>

LoginResumeAsync() 공개 메소드

public LoginResumeAsync ( string sessionToken ) : Task>
sessionToken string
리턴 Task>

LoginWithEmailAsync() 공개 메소드

public LoginWithEmailAsync ( string email, string password ) : Task>
email string
password string
리턴 Task>

LoginWithLdapAsync() 공개 메소드

public LoginWithLdapAsync ( string username, string password ) : Task>
username string
password string
리턴 Task>

LoginWithUsernameAsync() 공개 메소드

public LoginWithUsernameAsync ( string username, string password ) : Task>
username string
password string
리턴 Task>

PinMessageAsync() 공개 메소드

public PinMessageAsync ( RocketMessage message ) : Task>
message RocketMessage
리턴 Task>

PingAsync() 공개 메소드

public PingAsync ( ) : Task
리턴 Task

RegisterUserAsync() 공개 메소드

public RegisterUserAsync ( string name, string emailOrUsername, string password ) : Task
name string
emailOrUsername string
password string
리턴 Task

RemoveOtherTokensAsync() 공개 메소드

public RemoveOtherTokensAsync ( ) : Task
리턴 Task

ResetAvatarAsync() 공개 메소드

public ResetAvatarAsync ( ) : Task
리턴 Task

RocketChatDriver() 공개 메소드

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
리턴 System

RocketChatDriver() 공개 메소드

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
리턴 System

SearchMessagesAsync() 공개 메소드

public SearchMessagesAsync ( string query, string roomId, int limit = 100 ) : Task>
query string
roomId string
limit int
리턴 Task>

SendCustomMessageAsync() 공개 메소드

public SendCustomMessageAsync ( Attachment attachment, string roomId ) : Task>
attachment Rocket.Chat.Net.Models.Attachment
roomId string
리턴 Task>

SendMessageAsync() 공개 메소드

public SendMessageAsync ( string text, string roomId ) : Task>
text string
roomId string
리턴 Task>

SetAvatarFromImageStreamAsync() 공개 메소드

public SetAvatarFromImageStreamAsync ( Stream sourceStream, string mimeType ) : Task
sourceStream Stream
mimeType string
리턴 Task

SetAvatarFromUrlAsync() 공개 메소드

public SetAvatarFromUrlAsync ( string url ) : Task
url string
리턴 Task

SetReactionAsync() 공개 메소드

public SetReactionAsync ( string reaction, string messageId ) : Task
reaction string
messageId string
리턴 Task

SubscribeToAsync() 공개 메소드

public SubscribeToAsync ( string streamName ) : Task
streamName string
리턴 Task

SubscribeToFilteredUsersAsync() 공개 메소드

public SubscribeToFilteredUsersAsync ( string username = "" ) : Task
username string
리턴 Task

SubscribeToRoomAsync() 공개 메소드

public SubscribeToRoomAsync ( string roomId = null ) : Task
roomId string
리턴 Task

SubscribeToRoomInformationAsync() 공개 메소드

public SubscribeToRoomInformationAsync ( string roomName, RoomType type ) : Task
roomName string
type RoomType
리턴 Task

SubscribeToRoomListAsync() 공개 메소드

public SubscribeToRoomListAsync ( ) : Task
리턴 Task

UnpinMessageAsync() 공개 메소드

public UnpinMessageAsync ( RocketMessage message ) : Task
message RocketMessage
리턴 Task

UpdateMessageAsync() 공개 메소드

public UpdateMessageAsync ( string messageId, string roomId, string newMessage ) : Task
messageId string
roomId string
newMessage string
리턴 Task

UploadFileAsync() 공개 메소드

public UploadFileAsync ( string roomId ) : Task>
roomId string
리턴 Task>