C# 클래스 HipChat.HipChatClient

Class used to encapsulate core HipChat API methods. This is the core class that is used to interact with the API.
https://www.hipchat.com/docs/api
파일 보기 프로젝트 열기: versionone/HipChat.net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
FormatMessageUri string
FormatRoomsHistoryUri string
FormatRoomsHistoryUri string
FormatRoomsListUri string

공개 메소드들

메소드 설명
HipChatClient ( ) : System
HipChatClient ( string token ) : System
HipChatClient ( string token, ApiResponseFormat format ) : System
HipChatClient ( string token, int room ) : System
HipChatClient ( string token, int room, ApiResponseFormat format ) : System
HipChatClient ( string token, int room, string from ) : System
ListHistoryAsNativeObjects ( ) : List
ListHistoryAsNativeObjects ( System.DateTime dt ) : List

Returns the history as native C# objects

ListRooms ( ) : string

Returns the list of available rooms as XML/JSON

ListRoomsAsNativeObjects ( ) : List

Returns the list of available rooms as native C# objects

RoomHistory ( ) : string
RoomHistory ( System.DateTime date ) : string

Returns the chat history of a single room on a single day.

SendMessage ( string message ) : void

Sends a message to a room.

SendMessage ( string message, BackgroundColor color ) : void

Sends a message to a chat room.

SendMessage ( string message, BackgroundColor color, bool notify ) : void

Sends a message to a chat room.

SendMessage ( string message, int room ) : void

Sends a message to a chat room.

SendMessage ( string message, int room, bool notify ) : void

Sends a message to a chat room.

SendMessage ( string message, int room, string from ) : void

Sends a message to a chat room.

SendMessage ( string message, int room, string from, bool notify ) : void

Sends a message to a chat room.

SendMessage ( string token, int room, string from, string message ) : void

Sends a message to a chat room.

SendMessage ( string token, int room, string from, string message, BackgroundColor color ) : void

Sends a message to a chat room.

SendMessage ( string token, int room, string from, string message, bool notify ) : void

Sends a message to a chat room.

SendMessage ( string token, int room, string from, string message, bool notify, BackgroundColor color ) : void

Sends a message to a chat room.

SendMessage ( string message, string from ) : void

Sends a message to a chat room.

SendMessage ( string message, string from, BackgroundColor color ) : void

Sends a message to a chat room.

SendMessage ( string message, string from, bool notify ) : void

Sends a message to a chat room.

SendMessage ( string message, string from, bool notify, BackgroundColor color ) : void

Sends a message to a chat room.

YieldRooms ( ) : IEnumerable

Yields each individual room as strongly-typed Entities.Room object

비공개 메소드들

메소드 설명
FormatMessageUri ( string message ) : string

Formats the URI for the /rooms/message API (http://www.hipchat.com/docs/api/method/rooms/message)

FormatRoomsHistoryUri ( ) : string
FormatRoomsHistoryUri ( System.DateTime date ) : string

Formats the URI for the /rooms/history API (http://www.hipchat.com/docs/api/method/rooms/history)

FormatRoomsListUri ( ) : string

Formats the URI for the /rooms/list API (http://www.hipchat.com/docs/api/method/rooms/list)

메소드 상세

HipChatClient() 공개 메소드

public HipChatClient ( ) : System
리턴 System

HipChatClient() 공개 메소드

public HipChatClient ( string token ) : System
token string
리턴 System

HipChatClient() 공개 메소드

public HipChatClient ( string token, ApiResponseFormat format ) : System
token string
format ApiResponseFormat
리턴 System

HipChatClient() 공개 메소드

public HipChatClient ( string token, int room ) : System
token string
room int
리턴 System

HipChatClient() 공개 메소드

public HipChatClient ( string token, int room, ApiResponseFormat format ) : System
token string
room int
format ApiResponseFormat
리턴 System

HipChatClient() 공개 메소드

public HipChatClient ( string token, int room, string from ) : System
token string
room int
from string
리턴 System

ListHistoryAsNativeObjects() 공개 메소드

public ListHistoryAsNativeObjects ( ) : List
리턴 List

ListHistoryAsNativeObjects() 공개 메소드

Returns the history as native C# objects
public ListHistoryAsNativeObjects ( System.DateTime dt ) : List
dt System.DateTime
리턴 List

ListRooms() 공개 메소드

Returns the list of available rooms as XML/JSON
public ListRooms ( ) : string
리턴 string

ListRoomsAsNativeObjects() 공개 메소드

Returns the list of available rooms as native C# objects
public ListRoomsAsNativeObjects ( ) : List
리턴 List

RoomHistory() 공개 메소드

public RoomHistory ( ) : string
리턴 string

RoomHistory() 공개 메소드

Returns the chat history of a single room on a single day.
public RoomHistory ( System.DateTime date ) : string
date System.DateTime
리턴 string

SendMessage() 공개 메소드

Sends a message to a room.
public SendMessage ( string message ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, BackgroundColor color ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
color BackgroundColor Background color to use with the message
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, BackgroundColor color, bool notify ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
color BackgroundColor Background color to use with the message
notify bool If true, the message triggers a "ping" sound when it hits the room.
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, int room ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
room int The id of the room to send the message to - sets the RoomId property.
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, int room, bool notify ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
room int The id of the room to send the message to - sets the RoomId property.
notify bool If true, the message triggers a "ping" sound when it hits the room.
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, int room, string from ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
room int
from string
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, int room, string from, bool notify ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
room int
from string
notify bool If true, the message triggers a "ping" sound when it hits the room.
리턴 void

SendMessage() 공개 정적인 메소드

Sends a message to a chat room.
public static SendMessage ( string token, int room, string from, string message ) : void
token string
room int
from string
message string
리턴 void

SendMessage() 공개 정적인 메소드

Sends a message to a chat room.
public static SendMessage ( string token, int room, string from, string message, BackgroundColor color ) : void
token string
room int
from string
message string
color BackgroundColor
리턴 void

SendMessage() 공개 정적인 메소드

Sends a message to a chat room.
public static SendMessage ( string token, int room, string from, string message, bool notify ) : void
token string
room int
from string
message string
notify bool
리턴 void

SendMessage() 공개 정적인 메소드

Sends a message to a chat room.
public static SendMessage ( string token, int room, string from, string message, bool notify, BackgroundColor color ) : void
token string
room int
from string
message string
notify bool
color BackgroundColor
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, string from ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
from string The name of the sender - sets the From property.
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, string from, BackgroundColor color ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
from string The name of the sender - sets the From property.
color BackgroundColor Background color to use with the message
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, string from, bool notify ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
from string The name of the sender - sets the From property.
notify bool If true, the message triggers a "ping" sound when it hits the room.
리턴 void

SendMessage() 공개 메소드

Sends a message to a chat room.
public SendMessage ( string message, string from, bool notify, BackgroundColor color ) : void
message string The message to send - can contain some HTML and must be valid XHTML.
from string The name of the sender - sets the From property.
notify bool If true, the message triggers a "ping" sound when it hits the room.
color BackgroundColor Background color to use with the message
리턴 void

YieldRooms() 공개 메소드

Yields each individual room as strongly-typed Entities.Room object
public YieldRooms ( ) : IEnumerable
리턴 IEnumerable