Skip to content
Snippets Groups Projects
Commit 67102fe5 authored by areynold's avatar areynold
Browse files

Merge branch 'feature/v2-dtos' into develop

parents 4d7deb72 91316944
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> <package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata> <metadata>
<id>BeckmanComms.Api.DataTransferObjects</id> <id>BeckmanComms.Api.DataTransferObjects</id>
<version>1.0.0</version> <version>1.1.0-alpha01</version>
<title>Beckman API Data Transfer Objects</title> <title>Beckman API Data Transfer Objects</title>
<authors>areynold</authors> <authors>areynold</authors>
<owners>Beckman Institute; University of Illinois</owners> <owners>Beckman Institute; University of Illinois</owners>
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
<description>Model classes for use with the Beckman Institute web API.</description> <description>Model classes for use with the Beckman Institute web API.</description>
<summary>Model classes for use with the Beckman Institute web API.</summary> <summary>Model classes for use with the Beckman Institute web API.</summary>
<releaseNotes> <releaseNotes>
1.1.0-alpha01:
* Add initial V2 directory DTOs
1.0.0: 1.0.0:
* Migrate to .net standard library project. * Migrate to .net standard library project.
* Rename project. (Was Api.DataTransferObjects.) * Rename project. (Was Api.DataTransferObjects.)
......
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