diff --git a/BeckmanComms.Api.DataTransferObjects/BeckmanComms.Api.DataTransferObjects.csproj b/BeckmanComms.Api.DataTransferObjects/BeckmanComms.Api.DataTransferObjects.csproj index b47bb306bdd09c84717131f5acb647194c3b172e..3e6e1f1ea79c5be888cf764f4147f5b5f1d6f482 100644 --- a/BeckmanComms.Api.DataTransferObjects/BeckmanComms.Api.DataTransferObjects.csproj +++ b/BeckmanComms.Api.DataTransferObjects/BeckmanComms.Api.DataTransferObjects.csproj @@ -2,7 +2,7 @@ <PropertyGroup> <TargetFramework>net45</TargetFramework> - <Version>2.0.0-alpha10</Version> + <Version>2.0.0-alpha11</Version> <Authors>areynold</Authors> <Company>Beckman Institute for Advanced Science & Technology; University of Illinois at Urbana-Champaign</Company> <Copyright>Copyright 2018, University of Illinois Board of Trustees</Copyright> @@ -11,7 +11,11 @@ <RepositoryUrl>https://gitlab.engr.illinois.edu/beckmancomms/beckmancomms-api-datatransferobjects.git</RepositoryUrl> <RepositoryType>git</RepositoryType> <PackageTags>mvc, dto, api, beckman, uiuc, illinois</PackageTags> - <PackageReleaseNotes>2.0.0-alpha10: + <PackageReleaseNotes>2.0.0-alpha11: + * Extend PersonDto properties. + * Add supplemental directory DTOs (PublicationDto, PressDto, LinkDto). + +2.0.0-alpha10: * Add Status and HomeUnit properties to PersonDto. * Add NCSA license file. * Update nuget packaging instructions for Visual Studio. @@ -65,7 +69,8 @@ * Add v1, v2 docstrings. 0.0.1: -* Package initial v1, v2 data transfer objects.</PackageReleaseNotes> +* Package initial v1, v2 data transfer objects. + </PackageReleaseNotes> <NeutralLanguage>en-US</NeutralLanguage> <AssemblyVersion>2.0.0.0</AssemblyVersion> <PackageLicenseUrl>https://gitlab.engr.illinois.edu/beckmancomms/beckmancomms-api-datatransferobjects/blob/master/License.md</PackageLicenseUrl> diff --git a/BeckmanComms.Api.DataTransferObjects/V2/Directory/LinkDto.cs b/BeckmanComms.Api.DataTransferObjects/V2/Directory/LinkDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..1e6398163a1b502db757ec142ed240d6e0c30f7d --- /dev/null +++ b/BeckmanComms.Api.DataTransferObjects/V2/Directory/LinkDto.cs @@ -0,0 +1,18 @@ +namespace BeckmanComms.Api.DataTransferObjects.V2.Directory +{ + /// <summary> + /// Data transfer object representing a link. + /// </summary> + public class LinkDto + { + /// <summary> + /// Human readable link title. + /// </summary> + public string Title { get; set; } + + /// <summary> + /// Link URL. + /// </summary> + public string Url { get; set; } + } +} \ No newline at end of file diff --git a/BeckmanComms.Api.DataTransferObjects/V2/Directory/PersonDto.cs b/BeckmanComms.Api.DataTransferObjects/V2/Directory/PersonDto.cs index 73dd62ba6881e85860eca78dc19022d1d9d235d2..f7e605df765cce894c368f7403a6a0c5868ef4ca 100644 --- a/BeckmanComms.Api.DataTransferObjects/V2/Directory/PersonDto.cs +++ b/BeckmanComms.Api.DataTransferObjects/V2/Directory/PersonDto.cs @@ -62,6 +62,36 @@ namespace BeckmanComms.Api.DataTransferObjects.V2.Directory /// </summary> public string PhoneNumber { get; set; } + /// <summary> + /// Staff member's HTML-formatted biography. + /// </summary> + public string Biography { get; set; } + + /// <summary> + /// HTML-formatted statement of honors received by staff member. + /// </summary> + public string Honors { get; set; } + + /// <summary> + /// HTML-formatted summary of staff member's research. + /// </summary> + public string Research { get; set; } + + /// <summary> + /// Collection containing staff member's related links. + /// </summary> + public IEnumerable<LinkDto> Links { get; set; } + + /// <summary> + /// Collection containing staff member's press mentions. + /// </summary> + public IEnumerable<PressDto> Press { get; set; } + + /// <summary> + /// Collection containing staff member's publications. + /// </summary> + public IEnumerable<PublicationDto> Publications { get; set; } + /// <summary> /// Collection containing staff member's directory photos. /// </summary> diff --git a/BeckmanComms.Api.DataTransferObjects/V2/Directory/PressDto.cs b/BeckmanComms.Api.DataTransferObjects/V2/Directory/PressDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..61a9705fcfd3c0eb1980e3ab231891e32ce5317a --- /dev/null +++ b/BeckmanComms.Api.DataTransferObjects/V2/Directory/PressDto.cs @@ -0,0 +1,23 @@ +namespace BeckmanComms.Api.DataTransferObjects.V2.Directory +{ + /// <summary> + /// Data transfer object representing a press mention. + /// </summary> + public class PressDto + { + /// <summary> + /// Article title. + /// </summary> + public string Title { get; set; } + + /// <summary> + /// Link to article. + /// </summary> + public string Url { get; set; } + + /// <summary> + /// Article publication year. + /// </summary> + public int Year { get; set; } + } +} \ No newline at end of file diff --git a/BeckmanComms.Api.DataTransferObjects/V2/Directory/PublicationDto.cs b/BeckmanComms.Api.DataTransferObjects/V2/Directory/PublicationDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..729bcbaa55a9caa0113b6eec362a4c2519fd9e8b --- /dev/null +++ b/BeckmanComms.Api.DataTransferObjects/V2/Directory/PublicationDto.cs @@ -0,0 +1,23 @@ +namespace BeckmanComms.Api.DataTransferObjects.V2.Directory +{ + /// <summary> + /// Data transfer object representing a staff member's publication record. + /// </summary> + public class PublicationDto + { + /// <summary> + /// Bibliographic entry for publication. + /// </summary> + public string Bibliography { get; set; } + + /// <summary> + /// Publication year. + /// </summary> + public int Year { get; set; } + + /// <summary> + /// Link to publication. + /// </summary> + public string Link { get; set; } + } +} \ No newline at end of file