PageRenderTime 462ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Atlassian.Jira/Comment.cs

https://bitbucket.org/yyo/atlassian.net-sdk-v2.0
C# | 103 lines | 88 code | 12 blank | 3 comment | 0 complexity | 5a8baf1e7db8607ce21134ff73e54166 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Atlassian.Jira.Remote;
  6. namespace Atlassian.Jira
  7. {
  8. /// <summary>
  9. /// A comment associated with an issue
  10. /// </summary>
  11. public class Comment
  12. {
  13. private readonly RemoteComment _remoteComment;
  14. public Comment():
  15. this(new RemoteComment())
  16. {
  17. }
  18. internal Comment(RemoteComment remoteComment)
  19. {
  20. _remoteComment = remoteComment;
  21. }
  22. public string Author
  23. {
  24. get
  25. {
  26. return _remoteComment.author;
  27. }
  28. set
  29. {
  30. _remoteComment.author = value;
  31. }
  32. }
  33. public string Body
  34. {
  35. get
  36. {
  37. return _remoteComment.body;
  38. }
  39. set
  40. {
  41. _remoteComment.body = value;
  42. }
  43. }
  44. public DateTime? CreatedDate
  45. {
  46. get
  47. {
  48. return _remoteComment.created;
  49. }
  50. }
  51. public string GroupLevel
  52. {
  53. get
  54. {
  55. return _remoteComment.groupLevel;
  56. }
  57. }
  58. public string Id
  59. {
  60. get
  61. {
  62. return _remoteComment.id;
  63. }
  64. }
  65. public string RoleLevel
  66. {
  67. get
  68. {
  69. return _remoteComment.roleLevel;
  70. }
  71. }
  72. public string UpdateAuthor
  73. {
  74. get
  75. {
  76. return _remoteComment.updateAuthor;
  77. }
  78. }
  79. public DateTime? UpdatedDate
  80. {
  81. get
  82. {
  83. return _remoteComment.updated;
  84. }
  85. }
  86. internal RemoteComment toRemote()
  87. {
  88. return _remoteComment;
  89. }
  90. }
  91. }