C# Class OpenTween.Models.TabModel

ファイルを表示 Open project: opentween/OpenTween Class Usage Examples

Public Methods

Method Description
AddPostQueue ( PostClass post ) : void
AddSubmit ( ) : IReadOnlyList
ClearIDs ( ) : void
Contains ( long statusId ) : bool
EnqueueRemovePost ( long statusId, bool setIsDeleted ) : void
GetStatusIdAt ( int index ) : long
GetStatusIdAt ( IEnumerable indexes ) : long[]
GetUnreadIds ( ) : long[]

未読ツイートの ID を配列で返します

IndexOf ( long statusId ) : int
IndexOf ( long statusIds ) : int[]
RefreshAsync ( Twitter tw, bool backward, bool startup, IProgress progress ) : Task
RemovePostImmediately ( long statusId ) : bool
RemoveSubmit ( ) : IReadOnlyList
ResetFetchIds ( ) : void

タブ更新時に使用する SinceId, OldestId をリセットする

SearchPostsAll ( bool>.Func stringComparer ) : IEnumerable
SearchPostsAll ( bool>.Func stringComparer, bool reverse ) : IEnumerable
SearchPostsAll ( bool>.Func stringComparer, int startIndex ) : IEnumerable
SearchPostsAll ( bool>.Func stringComparer, int startIndex, bool reverse ) : IEnumerable

タブ内の発言を指定された条件で検索します

SetSortMode ( ComparerMode mode, SortOrder sortOrder ) : void

ソート対象のフィールドとソート順を設定し、ソートを実行します

this ( int index ) : PostClass
this ( int startIndex, int endIndex ) : PostClass[]

Protected Methods

Method Description
TabModel ( string tabName ) : System

Private Methods

Method Description
AddPostImmediately ( long statusId, bool read ) : bool
ApplySortMode ( ) : void
SetReadState ( long statusId, bool read ) : bool

タブ内の既読状態を変更します

全タブを横断して既読状態を変える TabInformation.SetReadAllTab() の内部で呼び出されるメソッドです

Method Details

AddPostQueue() public method

public AddPostQueue ( PostClass post ) : void
post PostClass
return void

AddSubmit() public method

public AddSubmit ( ) : IReadOnlyList
return IReadOnlyList

ClearIDs() public method

public ClearIDs ( ) : void
return void

Contains() public method

public Contains ( long statusId ) : bool
statusId long
return bool

EnqueueRemovePost() public method

public EnqueueRemovePost ( long statusId, bool setIsDeleted ) : void
statusId long
setIsDeleted bool
return void

GetStatusIdAt() public method

public GetStatusIdAt ( int index ) : long
index int
return long

GetStatusIdAt() public method

public GetStatusIdAt ( IEnumerable indexes ) : long[]
indexes IEnumerable
return long[]

GetUnreadIds() public method

未読ツイートの ID を配列で返します
public GetUnreadIds ( ) : long[]
return long[]

IndexOf() public method

public IndexOf ( long statusId ) : int
statusId long
return int

IndexOf() public method

public IndexOf ( long statusIds ) : int[]
statusIds long
return int[]

RefreshAsync() public abstract method

public abstract RefreshAsync ( Twitter tw, bool backward, bool startup, IProgress progress ) : Task
tw Twitter
backward bool
startup bool
progress IProgress
return Task

RemovePostImmediately() public method

public RemovePostImmediately ( long statusId ) : bool
statusId long
return bool

RemoveSubmit() public method

public RemoveSubmit ( ) : IReadOnlyList
return IReadOnlyList

ResetFetchIds() public method

タブ更新時に使用する SinceId, OldestId をリセットする
public ResetFetchIds ( ) : void
return void

SearchPostsAll() public method

public SearchPostsAll ( bool>.Func stringComparer ) : IEnumerable
stringComparer bool>.Func
return IEnumerable

SearchPostsAll() public method

public SearchPostsAll ( bool>.Func stringComparer, bool reverse ) : IEnumerable
stringComparer bool>.Func
reverse bool
return IEnumerable

SearchPostsAll() public method

public SearchPostsAll ( bool>.Func stringComparer, int startIndex ) : IEnumerable
stringComparer bool>.Func
startIndex int
return IEnumerable

SearchPostsAll() public method

タブ内の発言を指定された条件で検索します
public SearchPostsAll ( bool>.Func stringComparer, int startIndex, bool reverse ) : IEnumerable
stringComparer bool>.Func 発言内容、スクリーン名、名前と比較する条件。マッチしたら true を返す
startIndex int 検索を開始する位置
reverse bool インデックスの昇順に検索する場合は false、降順の場合は true
return IEnumerable

SetSortMode() public method

ソート対象のフィールドとソート順を設定し、ソートを実行します
public SetSortMode ( ComparerMode mode, SortOrder sortOrder ) : void
mode ComparerMode
sortOrder SortOrder
return void

TabModel() protected method

protected TabModel ( string tabName ) : System
tabName string
return System

this() public method

public this ( int index ) : PostClass
index int
return PostClass

this() public method

public this ( int startIndex, int endIndex ) : PostClass[]
startIndex int
endIndex int
return PostClass[]