NewRockAuthorize.cs 455 B

123456789101112131415161718192021
  1. using System.Xml.Serialization;
  2. namespace NewRock.Sdk.Security;
  3. [XmlRoot("Auth")]
  4. public class NewRockAuthorize
  5. {
  6. [XmlElement("nonce")]
  7. public string Nonce { get; set; }
  8. [XmlElement("timestamp")]
  9. public string Timestamp { get; set; }
  10. [XmlElement("signature")]
  11. public string Signature { get; set; }
  12. }
  13. public class CreationNewRockAuthorize : NewRockAuthorize
  14. {
  15. public DateTime CreationTime { get; set; } = DateTime.Now;
  16. }