TimeStampResponse.cs 599 B

12345678910111213141516171819202122232425
  1. using MessagePack;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace HaBookCms.Response
  6. {
  7. [MessagePackObject(keyAsPropertyName: true)]
  8. public class TimeStampResponse
  9. {
  10. public long responseTime = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
  11. public TimeStampResponse()
  12. {
  13. }
  14. public long getResponseTime()
  15. {
  16. return this.responseTime;
  17. }
  18. public void setResponseTime(long responseTime)
  19. {
  20. this.responseTime = responseTime;
  21. }
  22. }
  23. }