db73cc1a12
AD Interop moved to Disco.Services; Supports multi-domain environments, sites, and searching restricted with OUs.
25 lines
926 B
C#
25 lines
926 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Disco.Models.Services.Searching
|
|
{
|
|
public class JobSearchResultItem : ISearchResultItem
|
|
{
|
|
private const string type = "Job";
|
|
|
|
public virtual string Id { get; set; }
|
|
public string Type { get { return type; } }
|
|
public string Description { get { return string.Format("{0} ({1}; {2})", this.Id, this.UserId, this.DeviceSerialNumber); } }
|
|
public string ScoreValue { get { return string.Format("{0} {1} {2} {3} {4}", this.Id, this.UserId.Substring(0, this.UserId.IndexOf('\\')), this.UserId, this.DeviceSerialNumber, this.UserDisplayName); } }
|
|
|
|
public string DeviceSerialNumber { get; set; }
|
|
|
|
public string UserId { get; set; }
|
|
public string UserFriendlyId { get; set; }
|
|
public string UserDisplayName { get; set; }
|
|
}
|
|
}
|