The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

APIv1PasteModel.cs 808B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. namespace Teknik.Areas.API.Models
  7. {
  8. public class APIv1PasteModel : APIv1BaseModel
  9. {
  10. [AllowHtml]
  11. public string code { get; set; }
  12. public string title { get; set; }
  13. public string syntax { get; set; }
  14. public string expireUnit { get; set; }
  15. public int expireLength { get; set; }
  16. public string password { get; set; }
  17. public bool hide { get; set; }
  18. public APIv1PasteModel()
  19. {
  20. code = null;
  21. title = string.Empty;
  22. syntax = "text";
  23. expireUnit = "never";
  24. expireLength = 1;
  25. password = string.Empty;
  26. hide = false;
  27. }
  28. }
  29. }