OpenTween.Twitter.PostStatus C# (CSharp) Method

PostStatus() public method

public PostStatus ( string postStr, long reply_to, IReadOnlyList mediaIds = null ) : System.Threading.Task
postStr string
reply_to long
mediaIds IReadOnlyList
return System.Threading.Task
        public async Task PostStatus(string postStr, long? reply_to, IReadOnlyList<long> mediaIds = null)
        {
            this.CheckAccountState();

            if (mediaIds == null &&
                Twitter.DMSendTextRegex.IsMatch(postStr))
            {
                await this.SendDirectMessage(postStr)
                    .ConfigureAwait(false);
                return;
            }

            var response = await this.Api.StatusesUpdate(postStr, reply_to, mediaIds)
                .ConfigureAwait(false);

            var status = await response.LoadJsonAsync()
                .ConfigureAwait(false);

            this.UpdateUserStats(status.User);

            if (status.Id == this.previousStatusId)
                throw new WebApiException("OK:Delaying?");

            this.previousStatusId = status.Id;
        }