Пример #1
0
 public MessagePostModel Reset()
 {
     this.form = null;
     this.Title = "New Reply";
     this.Message = string.Empty;
     this.submit = SubmitPostAsync;
     return this;
 }
Пример #2
0
 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;
 }
Пример #3
0
        public ThreadEditResponse(ThreadPostMetadata post, IThreadForm form, bool success) :
			base(form, success)
        {
            this.Post = post;
        }
Пример #4
0
 public async Task<ThreadFormResponse> SubmitAsync(IThreadForm form)
 {
     var endpoint = form.CreateHttpRequestBuilder();
     var result = await endpoint.SendAndConfirmAsync(this.Client);
     return new ThreadReplyResponse(form, result);
 }
Пример #5
0
 public ThreadFormResponse(IThreadForm form, bool success)
 {
     this.Form = form;
     this.Success = success;
 }
Пример #6
0
 public ThreadReplyResponse(IThreadForm form, bool success)
     : base(form, success) { }