C# Class StarryEyes.Models.Accounting.AccountRelationDataChunk

显示文件 Open project: karno/StarryEyes Class Usage Examples

Public Methods

Method Description
AccountRelationDataChunk ( AccountRelationData parent, RelationDataType type ) : System
Contains ( long id ) : bool

Check contains specified user.

SetAsync ( IEnumerable ids ) : System.Threading.Tasks.Task

Overwrite all elements by specified ids.

SetAsync ( long id, bool value ) : System.Threading.Tasks.Task

Add/remove user id in this container.

Private Methods

Method Description
AddAsync ( IEnumerable items ) : System.Threading.Tasks.Task
InitializeCollection ( ) : System.Threading.Tasks.Task
RaiseAccountDataUpdated ( IEnumerable targetUsers, bool isAdded ) : void
RemoveAsync ( IEnumerable items ) : System.Threading.Tasks.Task

Method Details

AccountRelationDataChunk() public method

public AccountRelationDataChunk ( AccountRelationData parent, RelationDataType type ) : System
parent AccountRelationData
type RelationDataType
return System

Contains() public method

Check contains specified user.
public Contains ( long id ) : bool
id long user id
return bool

SetAsync() public method

Overwrite all elements by specified ids.
public SetAsync ( IEnumerable ids ) : System.Threading.Tasks.Task
ids IEnumerable new ids
return System.Threading.Tasks.Task

SetAsync() public method

Add/remove user id in this container.
public SetAsync ( long id, bool value ) : System.Threading.Tasks.Task
id long target user's id
value bool flag for add or remove
return System.Threading.Tasks.Task