StarryEyes.Models.Timelines.Statuses.StatusModel.GetSuitableReplyAccount C# (CSharp) Method

GetSuitableReplyAccount() private method

private GetSuitableReplyAccount ( ) : IEnumerable
return IEnumerable
        public IEnumerable<TwitterAccount> GetSuitableReplyAccount()
        {
            var uid = Status.InReplyToUserId.GetValueOrDefault();
            if (Status.StatusType == StatusType.DirectMessage)
            {
                if (Status.Recipient == null)
                {
                    throw new ArgumentException("Inconsistent status state: Recipient is not spcified in spite of status is direct message.");
                }
                uid = Status.Recipient.Id;
            }
            var account = Setting.Accounts.Get(uid);
            return account != null ? new[] { BacktrackFallback(account) } : null;
        }