Пример #1
0
        /// <summary>
        ///     Converts a Jira User into a JTR JiraUser
        /// </summary>
        /// <param name="jiraUser">An <see cref="Atlassian.Jira.JiraUser"/> to convert into <see cref="JiraUser"/></param>
        /// <returns>A converted <see cref="JiraUser"/></returns>
        public static Models.Jira.JiraUser Convert(this Atlassian.Jira.JiraUser jiraUser)
        {
            {
                var jtrJiraUser = new Models.Jira.JiraUser()
                {
                    UserName    = jiraUser.AccountId,
                    DisplayName = jiraUser.DisplayName,
                    IsActive    = jiraUser.IsActive,
                    SelfUri     = jiraUser.Self
                };

                return(jtrJiraUser);
            }
        }
Пример #2
0
 public static JiraUser ToJiraUser(this Atlassian.Jira.JiraUser user)
 => new JiraUser(user.Key, user.DisplayName);