C# Class CaveTube.CaveTubeClient.CavetubeClient

Inheritance: IDisposable
Show file Open project: madguy/CaveTalk Class Usage Examples

Public Methods

Method Description
AllowInstantMessage ( Int32 commentNumber, String apiKey ) : Task

インスタントメッセージを許可します。

BanListener ( Int32 commentNumber, String apiKey ) : void

リスナーをBANします。

CavetubeClient ( String accessKey ) : System

コンストラクタ

Close ( ) : void

コメントサーバとの接続を閉じます。

Connect ( ) : void

CaveTubeコメントサーバに接続します。

Dispose ( ) : void

オブジェクトを破棄します。

GetCommentAsync ( String liveUrl ) : Task>

コメントの取得リクエストを送信します。

GetSummaryAsync ( String liveUrl ) : Task

部屋の情報を取得します。

HideComment ( Int32 commentNumber, String apiKey ) : void

指定したコメントの非表示要求を行います。

HideId ( Int32 commentNumber, String apiKey ) : void

指定したコメント番号のリスナーのID表示解除要求を行います。

JoinRoomAsync ( String liveUrl ) : Task

コメントルームに接続します。

LeaveRoom ( ) : void

コメントルームから退出します。

PostComment ( String name, String message, String apiKey = "" ) : void

コメントを投稿します。

SendInstantMessage ( String message ) : Task

インスタントメッセージを送信します。

ShowComment ( Int32 commentNumber, String apiKey ) : void

指定したコメントの再表示要求を行います。

ShowId ( Int32 commentNumber, String apiKey ) : void

指定したコメント番号のリスナーのID表示要求を行います。

UnBanListener ( Int32 commentNumber, String apiKey ) : void

リスナーのBANを解除します。

VoteResult ( String apiKey ) : void

投票結果を表示します。

VoteStart ( String question, IList choices, String apiKey ) : void

投票を開始します。

VoteStop ( String apiKey ) : void

投票を中断します。

Private Methods

Method Description
HandleBanFail ( dynamic json ) : void
HandleBanUser ( dynamic json ) : void
HandleCloseEntry ( dynamic json ) : void
HandleGetComment ( dynamic json ) : void
HandleHideComment ( dynamic json ) : void
HandleHideId ( dynamic json ) : void
HandleInviteInstantMessage ( dynamic json ) : void
HandleJoinAndLeave ( dynamic json ) : void
HandleNotifyInviteInstantMessage ( dynamic json ) : void
HandleNotifySendInstantMessage ( dynamic json ) : void
HandlePostComment ( dynamic json ) : void
HandlePostResult ( dynamic json ) : void
HandleReady ( dynamic json ) : void
HandleReceiveInstantMessage ( dynamic json ) : void
HandleShowComment ( dynamic json ) : void
HandleShowId ( dynamic json ) : void
HandleStartEntry ( dynamic json ) : void
HandleUnBanUser ( dynamic json ) : void
HandleVoteResult ( dynamic json ) : void
HandleVoteStart ( dynamic json ) : void
HandleVoteStop ( dynamic json ) : void
HandleYell ( dynamic json ) : void
ParseMessage ( dynamic json ) : IEnumerable
ParseStreamUrlAsync ( String url ) : Task

Method Details

AllowInstantMessage() public method

インスタントメッセージを許可します。
public AllowInstantMessage ( Int32 commentNumber, String apiKey ) : Task
commentNumber System.Int32 コメント番号
apiKey String APIキー
return Task

BanListener() public method

リスナーをBANします。
public BanListener ( Int32 commentNumber, String apiKey ) : void
commentNumber System.Int32 BANするコメント番号
apiKey String APIキー
return void

CavetubeClient() public method

コンストラクタ
public CavetubeClient ( String accessKey ) : System
accessKey String
return System

Close() public method

コメントサーバとの接続を閉じます。
public Close ( ) : void
return void

Connect() public method

CaveTubeコメントサーバに接続します。
public Connect ( ) : void
return void

Dispose() public method

オブジェクトを破棄します。
public Dispose ( ) : void
return void

GetCommentAsync() public method

コメントの取得リクエストを送信します。
public GetCommentAsync ( String liveUrl ) : Task>
liveUrl String
return Task>

GetSummaryAsync() public method

部屋の情報を取得します。
public GetSummaryAsync ( String liveUrl ) : Task
liveUrl String 配信URL
return Task

HideComment() public method

指定したコメントの非表示要求を行います。
public HideComment ( Int32 commentNumber, String apiKey ) : void
commentNumber System.Int32 ID表示するコメント番号
apiKey String APIキー
return void

HideId() public method

指定したコメント番号のリスナーのID表示解除要求を行います。
public HideId ( Int32 commentNumber, String apiKey ) : void
commentNumber System.Int32 ID表示を解除するコメント番号
apiKey String APIキー
return void

JoinRoomAsync() public method

コメントルームに接続します。
引数のフォーマットが正しくありません。 入室に失敗しました。
public JoinRoomAsync ( String liveUrl ) : Task
liveUrl String
return Task

LeaveRoom() public method

コメントルームから退出します。
public LeaveRoom ( ) : void
return void

PostComment() public method

コメントを投稿します。
public PostComment ( String name, String message, String apiKey = "" ) : void
name String 名前
message String メッセージ
apiKey String APIキー
return void

SendInstantMessage() public method

インスタントメッセージを送信します。
public SendInstantMessage ( String message ) : Task
message String メッセージ
return Task

ShowComment() public method

指定したコメントの再表示要求を行います。
public ShowComment ( Int32 commentNumber, String apiKey ) : void
commentNumber System.Int32 ID表示するコメント番号
apiKey String APIキー
return void

ShowId() public method

指定したコメント番号のリスナーのID表示要求を行います。
public ShowId ( Int32 commentNumber, String apiKey ) : void
commentNumber System.Int32 ID表示するコメント番号
apiKey String APIキー
return void

UnBanListener() public method

リスナーのBANを解除します。
public UnBanListener ( Int32 commentNumber, String apiKey ) : void
commentNumber System.Int32 BAN解除するコメント番号
apiKey String APIキー
return void

VoteResult() public method

投票結果を表示します。
public VoteResult ( String apiKey ) : void
apiKey String APIキー
return void

VoteStart() public method

投票を開始します。
public VoteStart ( String question, IList choices, String apiKey ) : void
question String 質問
choices IList 回答リスト
apiKey String APIキー
return void

VoteStop() public method

投票を中断します。
public VoteStop ( String apiKey ) : void
apiKey String APIキー
return void