Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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