This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TrelloUser | |
{ | |
public string Id { get; set; } | |
public string AvatarUrl { get; set; } | |
public string FullName { get; set; } | |
public string Initials { get; set; } | |
public IEnumerable<TrelloBoard> Boards { get; set; } | |
public IEnumerable<TrelloOrganization> Organizations { get; set; } | |
public string GetAvatar(int size) | |
{ | |
return $"{AvatarUrl}/{size}.png"; | |
} | |
public IEnumerable<TrelloBoard> GetBoardsByOrganization(string idOrganization) | |
{ | |
return Boards.Where(x => x.IdOrganization == idOrganization); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment