C# 클래스 HipchatApiV2.HipchatClient

파일 보기 프로젝트 열기: KyleGobel/Hipchat-CS 1 사용 예제들

공개 메소드들

메소드 설명
AddMember ( string roomName, string idOrEmail ) : bool
CreateRoom ( CreateRoomRequest request ) : HipchatCreateRoomResponse
CreateRoom ( string nameOfRoom, bool guestAccess = false, string ownerUserId = null, RoomPrivacy privacy = RoomPrivacy.Public ) : HipchatCreateRoomResponse
CreateUser ( CreateUserRequest request ) : HipchatCreateUserResponse
CreateWebHook ( int roomId, string url, string pattern, Hipchat.Models.RoomEvent eventType, string name ) : CreateWebHookResponse
CreateWebHook ( string roomName, Hipchat.Models.Requests.CreateWebHookRequest request ) : CreateWebHookResponse
CreateWebHook ( string roomName, string url, string pattern, Hipchat.Models.RoomEvent eventType, string name ) : CreateWebHookResponse
DeleteRoom ( int roomId ) : bool
DeleteRoom ( string roomName ) : bool
DeleteUser ( string idOrEmail ) : bool
DeleteWebhook ( int roomId, int webHookId ) : bool
DeleteWebhook ( string roomName, int webHookId ) : bool
GenerateToken ( GrantType grantType, IEnumerable scopes, string username = null, string code = null, string redirectUri = null, string password = null, string refreshToken = null ) : HipchatGenerateTokenResponse
GetAllEmoticons ( int startIndex, int maxResults = 100, EmoticonType type = EmoticonType.All ) : HipchatGetAllEmoticonsResponse
GetAllRooms ( int startIndex, int maxResults = 100, bool includePrivate = false, bool includeArchived = false ) : HipchatGetAllRoomsResponse
GetAllUsers ( int startIndex, int maxResults = 100, bool includeGuests = false, bool includeDeleted = false ) : HipchatGetAllUsersResponse
GetAllWebhooks ( int roomId, int startIndex, int maxResults ) : HipchatGetAllWebhooksResponse
GetAllWebhooks ( string roomName, int startIndex, int maxResults ) : HipchatGetAllWebhooksResponse
GetEmoticon ( int id ) : HipchatGetEmoticonResponse
GetEmoticon ( string shortcut = "" ) : HipchatGetEmoticonResponse
GetRoom ( int roomId ) : HipchatGetRoomResponse
GetRoom ( string roomName ) : HipchatGetRoomResponse
GetUserInfo ( int userId ) : HipchatGetUserInfoResponse
GetUserInfo ( string emailOrMentionName ) : HipchatGetUserInfoResponse
HipchatClient ( string authToken = null ) : System

Creates a new HipchatClient, you can pass in an optional authToken, or by default it will look in the web/app config file appSettings for 'hipchat_auth_token'

PrivateMessageUser ( string idOrEmailOrMention, string message, bool notify = false, HipchatMessageFormat messageFormat = HipchatMessageFormat.Text ) : void
SendNotification ( int roomId, SendRoomNotificationRequest request ) : bool
SendNotification ( int roomId, string message, RoomColors backgroundColor = RoomColors.Yellow, bool notify = false, HipchatMessageFormat messageFormat = HipchatMessageFormat.Html ) : bool
SendNotification ( string roomName, SendRoomNotificationRequest request ) : bool
SendNotification ( string roomName, string message, RoomColors backgroundColor = RoomColors.Yellow, bool notify = false, HipchatMessageFormat messageFormat = HipchatMessageFormat.Html ) : bool
SetTopic ( int roomId, string topic ) : bool
SetTopic ( string roomName, string topic ) : bool
ShareFileWithRoom ( string roomName, string fileFullPath, string message = null ) : bool
UpdatePhoto ( string idOrEmail, string photo ) : bool
UpdateRoom ( int roomId, UpdateRoomRequest request ) : bool
UpdateRoom ( string roomName, UpdateRoomRequest request ) : bool
UpdateUser ( string idOrEmail, UpdateUserRequest request ) : bool
ViewRecentRoomHistory ( string roomName, string notBefore = "", string timezone = "UTC", int startIndex, int maxResults = 100 ) : HipchatViewRoomHistoryResponse
ViewRoomHistory ( string roomName, string date = "recent", string timezone = "UTC", int startIndex, int maxResults = 100, bool reverse = true ) : HipchatViewRoomHistoryResponse

비공개 메소드들

메소드 설명
ConfigureSerializer ( ) : void
JsonSerializerConfigScope ( ) : JsConfigScope

메소드 상세

AddMember() 공개 메소드

public AddMember ( string roomName, string idOrEmail ) : bool
roomName string
idOrEmail string
리턴 bool

CreateRoom() 공개 메소드

public CreateRoom ( CreateRoomRequest request ) : HipchatCreateRoomResponse
request CreateRoomRequest
리턴 HipchatCreateRoomResponse

CreateRoom() 공개 메소드

public CreateRoom ( string nameOfRoom, bool guestAccess = false, string ownerUserId = null, RoomPrivacy privacy = RoomPrivacy.Public ) : HipchatCreateRoomResponse
nameOfRoom string
guestAccess bool
ownerUserId string
privacy RoomPrivacy
리턴 HipchatCreateRoomResponse

CreateUser() 공개 메소드

public CreateUser ( CreateUserRequest request ) : HipchatCreateUserResponse
request CreateUserRequest
리턴 HipchatCreateUserResponse

CreateWebHook() 공개 메소드

public CreateWebHook ( int roomId, string url, string pattern, Hipchat.Models.RoomEvent eventType, string name ) : CreateWebHookResponse
roomId int
url string
pattern string
eventType Hipchat.Models.RoomEvent
name string
리턴 CreateWebHookResponse

CreateWebHook() 공개 메소드

public CreateWebHook ( string roomName, Hipchat.Models.Requests.CreateWebHookRequest request ) : CreateWebHookResponse
roomName string
request Hipchat.Models.Requests.CreateWebHookRequest
리턴 CreateWebHookResponse

CreateWebHook() 공개 메소드

public CreateWebHook ( string roomName, string url, string pattern, Hipchat.Models.RoomEvent eventType, string name ) : CreateWebHookResponse
roomName string
url string
pattern string
eventType Hipchat.Models.RoomEvent
name string
리턴 CreateWebHookResponse

DeleteRoom() 공개 메소드

public DeleteRoom ( int roomId ) : bool
roomId int
리턴 bool

DeleteRoom() 공개 메소드

public DeleteRoom ( string roomName ) : bool
roomName string
리턴 bool

DeleteUser() 공개 메소드

public DeleteUser ( string idOrEmail ) : bool
idOrEmail string
리턴 bool

DeleteWebhook() 공개 메소드

public DeleteWebhook ( int roomId, int webHookId ) : bool
roomId int
webHookId int
리턴 bool

DeleteWebhook() 공개 메소드

public DeleteWebhook ( string roomName, int webHookId ) : bool
roomName string
webHookId int
리턴 bool

GenerateToken() 공개 메소드

public GenerateToken ( GrantType grantType, IEnumerable scopes, string username = null, string code = null, string redirectUri = null, string password = null, string refreshToken = null ) : HipchatGenerateTokenResponse
grantType GrantType
scopes IEnumerable
username string
code string
redirectUri string
password string
refreshToken string
리턴 HipchatGenerateTokenResponse

GetAllEmoticons() 공개 메소드

public GetAllEmoticons ( int startIndex, int maxResults = 100, EmoticonType type = EmoticonType.All ) : HipchatGetAllEmoticonsResponse
startIndex int
maxResults int
type EmoticonType
리턴 HipchatGetAllEmoticonsResponse

GetAllRooms() 공개 메소드

public GetAllRooms ( int startIndex, int maxResults = 100, bool includePrivate = false, bool includeArchived = false ) : HipchatGetAllRoomsResponse
startIndex int
maxResults int
includePrivate bool
includeArchived bool
리턴 HipchatGetAllRoomsResponse

GetAllUsers() 공개 메소드

public GetAllUsers ( int startIndex, int maxResults = 100, bool includeGuests = false, bool includeDeleted = false ) : HipchatGetAllUsersResponse
startIndex int
maxResults int
includeGuests bool
includeDeleted bool
리턴 HipchatGetAllUsersResponse

GetAllWebhooks() 공개 메소드

public GetAllWebhooks ( int roomId, int startIndex, int maxResults ) : HipchatGetAllWebhooksResponse
roomId int
startIndex int
maxResults int
리턴 HipchatGetAllWebhooksResponse

GetAllWebhooks() 공개 메소드

public GetAllWebhooks ( string roomName, int startIndex, int maxResults ) : HipchatGetAllWebhooksResponse
roomName string
startIndex int
maxResults int
리턴 HipchatGetAllWebhooksResponse

GetEmoticon() 공개 메소드

public GetEmoticon ( int id ) : HipchatGetEmoticonResponse
id int
리턴 HipchatGetEmoticonResponse

GetEmoticon() 공개 메소드

public GetEmoticon ( string shortcut = "" ) : HipchatGetEmoticonResponse
shortcut string
리턴 HipchatGetEmoticonResponse

GetRoom() 공개 메소드

public GetRoom ( int roomId ) : HipchatGetRoomResponse
roomId int
리턴 HipchatGetRoomResponse

GetRoom() 공개 메소드

public GetRoom ( string roomName ) : HipchatGetRoomResponse
roomName string
리턴 HipchatGetRoomResponse

GetUserInfo() 공개 메소드

public GetUserInfo ( int userId ) : HipchatGetUserInfoResponse
userId int
리턴 HipchatGetUserInfoResponse

GetUserInfo() 공개 메소드

public GetUserInfo ( string emailOrMentionName ) : HipchatGetUserInfoResponse
emailOrMentionName string
리턴 HipchatGetUserInfoResponse

HipchatClient() 공개 메소드

Creates a new HipchatClient, you can pass in an optional authToken, or by default it will look in the web/app config file appSettings for 'hipchat_auth_token'
public HipchatClient ( string authToken = null ) : System
authToken string the auth token given by hipchat
리턴 System

PrivateMessageUser() 공개 메소드

public PrivateMessageUser ( string idOrEmailOrMention, string message, bool notify = false, HipchatMessageFormat messageFormat = HipchatMessageFormat.Text ) : void
idOrEmailOrMention string
message string
notify bool
messageFormat HipchatMessageFormat
리턴 void

SendNotification() 공개 메소드

public SendNotification ( int roomId, SendRoomNotificationRequest request ) : bool
roomId int
request SendRoomNotificationRequest
리턴 bool

SendNotification() 공개 메소드

public SendNotification ( int roomId, string message, RoomColors backgroundColor = RoomColors.Yellow, bool notify = false, HipchatMessageFormat messageFormat = HipchatMessageFormat.Html ) : bool
roomId int
message string
backgroundColor RoomColors
notify bool
messageFormat HipchatMessageFormat
리턴 bool

SendNotification() 공개 메소드

public SendNotification ( string roomName, SendRoomNotificationRequest request ) : bool
roomName string
request SendRoomNotificationRequest
리턴 bool

SendNotification() 공개 메소드

public SendNotification ( string roomName, string message, RoomColors backgroundColor = RoomColors.Yellow, bool notify = false, HipchatMessageFormat messageFormat = HipchatMessageFormat.Html ) : bool
roomName string
message string
backgroundColor RoomColors
notify bool
messageFormat HipchatMessageFormat
리턴 bool

SetTopic() 공개 메소드

public SetTopic ( int roomId, string topic ) : bool
roomId int
topic string
리턴 bool

SetTopic() 공개 메소드

public SetTopic ( string roomName, string topic ) : bool
roomName string
topic string
리턴 bool

ShareFileWithRoom() 공개 메소드

public ShareFileWithRoom ( string roomName, string fileFullPath, string message = null ) : bool
roomName string
fileFullPath string
message string
리턴 bool

UpdatePhoto() 공개 메소드

public UpdatePhoto ( string idOrEmail, string photo ) : bool
idOrEmail string
photo string
리턴 bool

UpdateRoom() 공개 메소드

public UpdateRoom ( int roomId, UpdateRoomRequest request ) : bool
roomId int
request UpdateRoomRequest
리턴 bool

UpdateRoom() 공개 메소드

public UpdateRoom ( string roomName, UpdateRoomRequest request ) : bool
roomName string
request UpdateRoomRequest
리턴 bool

UpdateUser() 공개 메소드

public UpdateUser ( string idOrEmail, UpdateUserRequest request ) : bool
idOrEmail string
request UpdateUserRequest
리턴 bool

ViewRecentRoomHistory() 공개 메소드

public ViewRecentRoomHistory ( string roomName, string notBefore = "", string timezone = "UTC", int startIndex, int maxResults = 100 ) : HipchatViewRoomHistoryResponse
roomName string
notBefore string
timezone string
startIndex int
maxResults int
리턴 HipchatViewRoomHistoryResponse

ViewRoomHistory() 공개 메소드

public ViewRoomHistory ( string roomName, string date = "recent", string timezone = "UTC", int startIndex, int maxResults = 100, bool reverse = true ) : HipchatViewRoomHistoryResponse
roomName string
date string
timezone string
startIndex int
maxResults int
reverse bool
리턴 HipchatViewRoomHistoryResponse