clsSSLCerts.cs 733 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.ObjectModel;
  3. namespace TFABot
  4. {
  5. public class clsSSLCerts : ISpreadsheet<clsSSLCerts>
  6. {
  7. public clsSSLCerts()
  8. {
  9. }
  10. [ASheetColumnHeader(true,"url")]
  11. public String URL {get;set;}
  12. [ASheetColumnHeader("contacts")]
  13. public String Contacts {get;set;}
  14. public DateTime CertExpiry {get;set;}
  15. public void Update(clsSSLCerts user)
  16. {
  17. if (URL != user.URL) throw new Exception("index name does not match");
  18. Contacts = user.Contacts;
  19. }
  20. public String PostPopulate()
  21. {
  22. return null;
  23. }
  24. }
  25. }