Esempio n. 1
0
 public JiraWorkLogDto(JiraWorkLogDto workLog)
 {
     Id               = workLog.Id;
     IssueId          = workLog.IssueId;
     TimeSpentSeconds = workLog.TimeSpentSeconds;
     Started          = workLog.Started;
     Author           = new JiraUserDto(workLog.Author);
 }
Esempio n. 2
0
 public JiraUserDto(JiraUserDto user)
 {
     Name         = user.Name;
     Key          = user.Key;
     EmailAddress = user.EmailAddress;
     DisplayName  = user.DisplayName;
     AvatarUrls   = user.AvatarUrls.ToDictionary(x => x.Key, y => y.Value);
 }
Esempio n. 3
0
 public static UserDto ToUserDto(this JiraUserDto jiraUserDto)
 {
     return(new UserDto
     {
         Name = jiraUserDto.Name,
         Key = jiraUserDto.Key,
         DisplayName = jiraUserDto.DisplayName,
         EmailAddress = jiraUserDto.EmailAddress,
         AvatarsUrls = new Application.Models.Dto.Users.Avatars
         {
             Url48x48 = jiraUserDto.AvatarUrls["48x48"],
             Url32x32 = jiraUserDto.AvatarUrls["32x32"],
             Url24x24 = jiraUserDto.AvatarUrls["24x24"],
             Url16x16 = jiraUserDto.AvatarUrls["16x16"]
         }
     });
 }