C# Class Disco.Services.DeviceExtensions

Mostrar archivo Open project: garysharp/Disco

Public Methods

Method Description
AddOffline ( this d, DiscoDataContext Database ) : Device
AssignDevice ( this d, DiscoDataContext Database, User u ) : DeviceUserAssignment
AvailableDocumentTemplatePackages ( this d, DiscoDataContext Database, User TechnicianUser ) : List
AvailableDocumentTemplates ( this d, DiscoDataContext Database, User User, System.DateTime TimeStamp ) : List
ComputerNameRender ( this device, DiscoDataContext Database, ADDomain Domain ) : string
ReasonMessage ( this r ) : string
Status ( this Device ) : string
StatusCode ( this Device ) : string
UpdateLastNetworkLogonDate ( this Device ) : bool

Method Details

AddOffline() public static method

public static AddOffline ( this d, DiscoDataContext Database ) : Device
d this
Database Disco.Data.Repository.DiscoDataContext
return Disco.Models.Repository.Device

AssignDevice() public static method

public static AssignDevice ( this d, DiscoDataContext Database, User u ) : DeviceUserAssignment
d this
Database Disco.Data.Repository.DiscoDataContext
u Disco.Models.Repository.User
return Disco.Models.Repository.DeviceUserAssignment

AvailableDocumentTemplatePackages() public static method

public static AvailableDocumentTemplatePackages ( this d, DiscoDataContext Database, User TechnicianUser ) : List
d this
Database Disco.Data.Repository.DiscoDataContext
TechnicianUser Disco.Models.Repository.User
return List

AvailableDocumentTemplates() public static method

public static AvailableDocumentTemplates ( this d, DiscoDataContext Database, User User, System.DateTime TimeStamp ) : List
d this
Database Disco.Data.Repository.DiscoDataContext
User Disco.Models.Repository.User
TimeStamp System.DateTime
return List

ComputerNameRender() public static method

public static ComputerNameRender ( this device, DiscoDataContext Database, ADDomain Domain ) : string
device this
Database Disco.Data.Repository.DiscoDataContext
Domain Disco.Services.Interop.ActiveDirectory.ADDomain
return string

ReasonMessage() public static method

public static ReasonMessage ( this r ) : string
r this
return string

Status() public static method

public static Status ( this Device ) : string
Device this
return string

StatusCode() public static method

public static StatusCode ( this Device ) : string
Device this
return string

UpdateLastNetworkLogonDate() public static method

public static UpdateLastNetworkLogonDate ( this Device ) : bool
Device this
return bool