/Atlassian.Jira/Comment.cs
C# | 103 lines | 88 code | 12 blank | 3 comment | 0 complexity | 5a8baf1e7db8607ce21134ff73e54166 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Atlassian.Jira.Remote;
-
- namespace Atlassian.Jira
- {
- /// <summary>
- /// A comment associated with an issue
- /// </summary>
- public class Comment
- {
- private readonly RemoteComment _remoteComment;
-
- public Comment():
- this(new RemoteComment())
- {
- }
-
- internal Comment(RemoteComment remoteComment)
- {
- _remoteComment = remoteComment;
- }
-
- public string Author
- {
- get
- {
- return _remoteComment.author;
- }
- set
- {
- _remoteComment.author = value;
- }
- }
-
- public string Body
- {
- get
- {
- return _remoteComment.body;
- }
- set
- {
- _remoteComment.body = value;
- }
- }
-
- public DateTime? CreatedDate
- {
- get
- {
- return _remoteComment.created;
- }
- }
-
- public string GroupLevel
- {
- get
- {
- return _remoteComment.groupLevel;
- }
- }
-
- public string Id
- {
- get
- {
- return _remoteComment.id;
- }
- }
-
- public string RoleLevel
- {
- get
- {
- return _remoteComment.roleLevel;
- }
- }
-
- public string UpdateAuthor
- {
- get
- {
- return _remoteComment.updateAuthor;
- }
- }
-
- public DateTime? UpdatedDate
- {
- get
- {
- return _remoteComment.updated;
- }
- }
-
- internal RemoteComment toRemote()
- {
- return _remoteComment;
- }
- }
- }