public MessagePostModel Reset() { this.form = null; this.Title = "New Reply"; this.Message = string.Empty; this.submit = SubmitPostAsync; return this; }
public MessagePostModel(IThreadForm form, ThreadMetadata thread) : base() { this.thread = thread; this.form = form; this.isEdit = true; this.message = form.Message; this.submit = SubmitFormAsync; this.Title = "Edit Post"; this.Subtitle = thread.Title; }
public ThreadEditResponse(ThreadPostMetadata post, IThreadForm form, bool success) : base(form, success) { this.Post = post; }
public async Task<ThreadFormResponse> SubmitAsync(IThreadForm form) { var endpoint = form.CreateHttpRequestBuilder(); var result = await endpoint.SendAndConfirmAsync(this.Client); return new ThreadReplyResponse(form, result); }
public ThreadFormResponse(IThreadForm form, bool success) { this.Form = form; this.Success = success; }
public ThreadReplyResponse(IThreadForm form, bool success) : base(form, success) { }