import { ISPUser } from 'interfaces' ; import { IPersonaSharedProps } from 'office-ui-fabric-react/lib/Persona' ; import { getUserPhoto } from 'pp365-shared/lib/helpers' ; export class ProjectListModel { public manager : IPersonaSharedProps ; public owner : IPersonaSharedProps ; public logo : string ; param siteId param title param url param phase param startDate param endDate param manager param owner param userIsMember param budgetTotal param costsTotal param type constructor ( public siteId , public groupId , public title , public url , public phase ? , public startDate ? , public endDate ? , manager ? , owner ? , public userIsMember ? , public budgetTotal ? , public costsTotal ? , public type ? ) { if ( manager ) this . manager = { text : manager . Title , imageUrl : getUserPhoto ( manager . Email ) } ; if ( owner ) this . owner = { text : owner . Title , imageUrl : getUserPhoto ( owner . Email ) } ; } }