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;
 }
Beispiel #3
0
        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);
 }
Beispiel #5
0
 public ThreadFormResponse(IThreadForm form, bool success)
 {
     this.Form = form;
     this.Success = success;
 }
Beispiel #6
0
 public ThreadReplyResponse(IThreadForm form, bool success)
     : base(form, success) { }