Skip to content
Snippets Groups Projects
Commit 3b2e4b16 authored by areynold's avatar areynold
Browse files

Add api V2 DTOs

parent 4d7deb72
No related branches found
No related tags found
No related merge requests found
namespace Api.DataTransferObjects.V2.Directory
{
/// <summary>
/// Data Transfer object representing Beckman staff group membership.
/// </summary>
public class AffiliationDto
{
/// <summary>
/// Group name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Group abbreviation.
/// </summary>
public string Abbreviation { get; set; }
}
}
\ No newline at end of file
using System.Collections.Generic;
namespace Api.DataTransferObjects.V2.Directory
{
/// <summary>
/// Data Transfer Object representing a Beckman group.
/// </summary>
public class GroupDto
{
/// <summary>
/// Group name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Group abbreviation.
/// </summary>
public string Abbreviation { get; set; }
/// <summary>
/// Collection containing group members.
/// </summary>
public IEnumerable<PersonDto> Members { get; set; }
/// <summary>
/// Collection containing group leaders.
/// </summary>
public IEnumerable<GroupLeaderDto> Leaders { get; set; }
/// <summary>
/// Collection containing group support staff.
/// </summary>
public IEnumerable<SupportStaffDto> SupportStaff { get; set; }
}
}
\ No newline at end of file
namespace Api.DataTransferObjects.V2.Directory
{
/// <summary>
/// Data Transfer Object representing a Beckman group leader.
/// </summary>
public class GroupLeaderDto
{
/// <summary>
/// Leader name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Leader title.
/// </summary>
public string Title { get; set; }
}
}
\ No newline at end of file
using System.Collections.Generic;
namespace Api.DataTransferObjects.V2.Directory
{
/// <summary>
/// Data Transfer Object containing combined directory database fields.
/// </summary>
public class PersonDto
{
/// <summary>
/// Staff member's U of I NetID.
/// </summary>
public string NetId { get; set; }
/// <summary>
/// Staff member's name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Staff member's preferred first name.
/// </summary>
public string FirstName { get; set; }
/// <summary>
/// Staff member's family name.
/// </summary>
public string LastName { get; set; }
/// <summary>
/// Staff member's email address.
/// </summary>
public string EmailAddress { get; set; }
/// <summary>
/// Staff member's title.
/// </summary>
public string Title { get; set; }
/// <summary>
/// Staff member's campus address.
/// </summary>
public string BuildingAddress { get; set; }
/// <summary>
/// Staff member's office number.
/// </summary>
public string RoomNumber { get; set; }
/// <summary>
/// Staff member's campus phone number.
/// </summary>
public string PhoneNumber { get; set; }
/// <summary>
/// Collection containing staff member's directory photos.
/// </summary>
public IDictionary<string, PhotoDto> Photos { get; set; }
/// <summary>
/// Collection containing staff member's group affiliations.
/// </summary>
public IEnumerable<AffiliationDto> Affiliations { get; set; }
}
}
\ No newline at end of file
namespace Api.DataTransferObjects.V2.Directory
{
/// <summary>
/// Data Transfer Object representing a staff directory photo.
/// </summary>
public class PhotoDto
{
/// <summary>
/// Photo's url.
/// </summary>
public string Url { get; set; }
/// <summary>
/// Description of photo for use with required HTML alt attributes.
/// </summary>
public string AltText { get; set; }
}
}
\ No newline at end of file
namespace Api.DataTransferObjects.V2.Directory
{
/// <summary>
/// Data Transfer Object representing a Beckman group support staff member.
/// </summary>
public class SupportStaffDto
{
/// <summary>
/// Staff member's U of I NetID.
/// </summary>
public string NetId { get; set; }
/// <summary>
/// Staff member's name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Abbreviation of the group supported by the staff member.
/// </summary>
public string GroupAbbreviation { get; set; }
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment