Пример #1
0
 public Contributors(Octokit.Author author, int total, IEnumerable <Octokit.WeeklyHash> weeks)
 {
     AuthorLogin = author.Login;
     AuthorId    = author.Id;
     AuthorType  = author.Type;
     Total       = total;
     Weeks       = new List <WeeklyHash>();
     foreach (var week in weeks)
     {
         Weeks.Add(new WeeklyHash(week.W, week.A, week.D, week.C));
     }
 }
Пример #2
0
 public static Author Mapped(Octokit.Author author)
 {
     return(new Author
     {
         Login = author.Login,
         Id = author.Id,
         NodeId = author.NodeId,
         AvatarUrl = author.AvatarUrl,
         Url = author.Url,
         HtmlUrl = author.HtmlUrl,
         FollowersUrl = author.FollowersUrl,
         FollowingUrl = author.FollowingUrl,
         GistsUrl = author.GistsUrl,
         Type = author.Type,
         StarredUrl = author.StarredUrl,
         SubscriptionsUrl = author.SubscriptionsUrl,
         OrganizationsUrl = author.OrganizationsUrl,
         ReposUrl = author.ReposUrl,
         EventsUrl = author.EventsUrl,
         ReceivedEventsUrl = author.ReceivedEventsUrl,
         SiteAdmin = author.SiteAdmin
     });
 }