コード例 #1
0
 /// <summary>
 /// Initialize account data info
 /// </summary>
 /// <param name="accountId">bound account id</param>
 public AccountRelationData(long accountId)
 {
     _accountId  = accountId;
     _followings = new AccountRelationDataChunk(this, RelationDataType.Following);
     _followers  = new AccountRelationDataChunk(this, RelationDataType.Follower);
     _blockings  = new AccountRelationDataChunk(this, RelationDataType.Blocking);
     _noRetweets = new AccountRelationDataChunk(this, RelationDataType.NoRetweets);
     _mutes      = new AccountRelationDataChunk(this, RelationDataType.Mutes);
     _followings.AccountDataUpdated += PropagateEvent;
     _followers.AccountDataUpdated  += PropagateEvent;
     _blockings.AccountDataUpdated  += PropagateEvent;
     NoRetweets.AccountDataUpdated  += PropagateEvent;
     _mutes.AccountDataUpdated      += PropagateEvent;
 }
コード例 #2
0
 /// <summary>
 /// Initialize account data info
 /// </summary>
 /// <param name="accountId">bound account id</param>
 public AccountRelationData(long accountId)
 {
     this._accountId = accountId;
     this._followings = new AccountRelationDataChunk(this, RelationDataType.Following);
     this._followers = new AccountRelationDataChunk(this, RelationDataType.Follower);
     this._blockings = new AccountRelationDataChunk(this, RelationDataType.Blocking);
     this._noRetweets = new AccountRelationDataChunk(this, RelationDataType.NoRetweets);
     this._mutes = new AccountRelationDataChunk(this, RelationDataType.Mutes);
     this._followings.AccountDataUpdated += this.PropagateEvent;
     this._followers.AccountDataUpdated += this.PropagateEvent;
     this._blockings.AccountDataUpdated += this.PropagateEvent;
     this.NoRetweets.AccountDataUpdated += this.PropagateEvent;
     this._mutes.AccountDataUpdated += this.PropagateEvent;
 }