TodoItem.cs 595 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using Microsoft.WindowsAzure.MobileServices;
  3. using Newtonsoft.Json;
  4. namespace DevDaysTasks
  5. {
  6. public class TodoItem
  7. {
  8. string id;
  9. string name;
  10. bool done;
  11. [JsonProperty(PropertyName = "id")]
  12. public string Id
  13. {
  14. get { return id; }
  15. set { id = value;}
  16. }
  17. [JsonProperty(PropertyName = "text")]
  18. public string Name
  19. {
  20. get { return name; }
  21. set { name = value;}
  22. }
  23. [JsonProperty(PropertyName = "complete")]
  24. public bool Done
  25. {
  26. get { return done; }
  27. set { done = value;}
  28. }
  29. [Version]
  30. public string Version { get; set; }
  31. }
  32. }