Class FaxClientFacade
- Namespace
- SWConfigDataClientLib.Proxies.FaxClient
- Assembly
- IpPbxCDSClientLib.dll
Facade class for IppbxServer
public class FaxClientFacade : FaxClientFacadeBase
- Inheritance
-
SWCFProxy<FaxClientFacadeClient, IFaxClientFacade>FaxClientFacade
- Inherited Members
Constructors
FaxClientFacade()
Create instance of FaxServerFacade. Ony used by Unmanaged Wrapper. To create an instance of this class use the LibManager.
public FaxClientFacade()
Remarks
The connection will be established by the first remote call.
Properties
PoolMaxSize
depcreated
public static int PoolMaxSize { get; set; }
Property Value
PoolMinSize
depcreated
public static int PoolMinSize { get; set; }
Property Value
m_BaseUrl
protected override string m_BaseUrl { get; }
Property Value
Methods
AddFaxJob(string)
Creates a new empty Job.
public int AddFaxJob(string szJobType)
Parameters
szJobType
stringFaxType
Returns
- int
Return new Job id.
Remarks
Defaults:
OwnerType: User
OwnerID: CurrentUserID
Status: New
CheckStandbyStatus(out bool, out string, out string)
Reads and checks the standby configuration of the IpPbxServer. If this methods fails on any reason the client should swtich to other server.
public StandbyServerType CheckStandbyStatus(out bool bIsActive, out string strMaster, out string strStandby)
Parameters
bIsActive
boolThe server is active or not
strMaster
stringThe master server (not supported in this version)
strStandby
stringThe standby server (not supported in this versio)
Returns
CheckVersion()
public void CheckVersion()
ControlFaxJob(int, EFaxJobControlAction, string)
Change status (dwAction) for specified Job (dwJobId). Optionally user-friendly reason (strReason) could be provided
public void ControlFaxJob(int JobID, EFaxJobControlAction Action, string Reason)
Parameters
JobID
intID of the Job
Action
EFaxJobControlActionAction
Reason
stringuser-friendly reason
CreateClient(Binding, EndpointAddress)
protected override FaxClientFacadeClient CreateClient(Binding binding, EndpointAddress endpointAdrress)
Parameters
binding
BindingendpointAdrress
EndpointAddress
Returns
- FaxClientFacadeClient
DownloadFile(string, PreDefinedFileCategory)
DownloadsFile a file
public string DownloadFile(string strFilename, PreDefinedFileCategory FileCategory)
Parameters
strFilename
stringFilename
FileCategory
PreDefinedFileCategoryFileCategory
Returns
- string
Filepath in local file cache
Remarks
Files in Scope User or UserDefault will not be found.
EnumAttachments(int)
Return list of all attachments for specified Job. All files will be download into local file cache if nessesary
public FaxJobAttachmentList EnumAttachments(int JobID)
Parameters
JobID
intJobID
Returns
- FaxJobAttachmentList
List of FaxJobAttachments
EnumFaxNumbers()
Return list of internal fax numbers of this user
public SStringList EnumFaxNumbers()
Returns
- SStringList
Array of numbers
EnumFaxPrinters()
Return list of all fax printers
public FaxPrinterEntryCollection EnumFaxPrinters()
Returns
- FaxPrinterEntryCollection
Collection of FaxPrinterEntry
EnumLetterHeads()
Return a list of all fax letterheads file names without extension (All files with category "Fax Letterhead")
public SStringList EnumLetterHeads()
Returns
- SStringList
List of avaiable letter heads
FreeForReuse()
public override void FreeForReuse()
GetCurrentUserID()
public int GetCurrentUserID()
Returns
GetCurrentUserIDFromJobEnum()
Retrieves the UserID of the current user.
public int GetCurrentUserIDFromJobEnum()
Returns
GetCurrentUserName()
public string GetCurrentUserName()
Returns
GetFaxClientArchiveView(int)
Return View with basic information about faxes required for fax archiving
public FaxClientArchiveViewPrimaryCollection GetFaxClientArchiveView(int StatusMask)
Parameters
StatusMask
intThis View will return summary information about all Jobs available for the current user with "Status" field matching dwStatusMask. If dwStatusMask ist 0 all new Jobs will be returned.
Returns
- FaxClientArchiveViewPrimaryCollection
Collection of JaxJobs
GetFaxClientInboxView(int)
Return View with basic information visible in Fax Client "Inbox" folder
public FaxClientInboxViewPrimaryCollection GetFaxClientInboxView(int StatusMask)
Parameters
StatusMask
intThis View will return summary information about all Jobs available for the current user with "Status" field matching dwStatusMask. If dwStatusMask ist 0 all new Jobs will be returned.
Returns
- FaxClientInboxViewPrimaryCollection
Collection of JaxJobs
GetFaxClientOutboxView(int)
Return View with basic information visible in Fax Client "Sent", "Error" and "Outbox" folders
public FaxClientOutboxViewPrimaryCollection GetFaxClientOutboxView(int StatusMask)
Parameters
StatusMask
intThis View will return summary information about all Jobs available for the current user with "Status" field matching dwStatusMask. If dwStatusMask ist 0 all new Jobs will be returned.
Returns
- FaxClientOutboxViewPrimaryCollection
Collection of JaxJobs
GetFaxJobInfo(int)
Return FaxJobEntry(Info) structure for given JobId
public FaxJobEntry GetFaxJobInfo(int JobID)
Parameters
JobID
intID of the Job
Returns
- FaxJobEntry
FaxJobEntry
GetLocalSettings()
Gets the local fax settings for the current user. An empty setting entry will be returned
public FaxClientLocalConfigEntry GetLocalSettings()
Returns
- FaxClientLocalConfigEntry
Local settting class.
GetLocalSettings(int)
Gets the local fax settings for an user. An empty setting entry will be returned
public FaxClientLocalConfigEntry GetLocalSettings(int UserID)
Parameters
UserID
intThe ID of the user. Set to 0 for the addressing the current user.
Returns
- FaxClientLocalConfigEntry
Local settings class.
Remarks
If the UserID is not from the current user the API Role UserAdminRO is required.
GetNumberOfAvailableFaxChannels()
public CurrentAvailableCount GetNumberOfAvailableFaxChannels()
Returns
- CurrentAvailableCount
GetPossibleIpPbxUserNames()
Returns all possible IpPbx User Names of the current user. Can be more than one if the current user is a windows user and multiple IppPbxUser are assigned to his windows account.
public SStringList GetPossibleIpPbxUserNames()
Returns
- SStringList
StringList
GetServerCoverPageFile(out string)
Get the configured cover page file on the server.
public void GetServerCoverPageFile(out string sCoverPageFile)
Parameters
sCoverPageFile
stringFileName, empty if no cover page is configured
GetServerInfo()
public FaxServerInfo GetServerInfo()
Returns
GetServerRequestTimeout(FaxClientFacadeClient)
protected override TimeSpan GetServerRequestTimeout(FaxClientFacadeClient client)
Parameters
client
FaxClientFacadeClient
Returns
GetServerTransmitReportingRestrictions(out bool, out bool, out bool)
Return server transmit reporting restrictions
public void GetServerTransmitReportingRestrictions(out bool rAllowKeepInErrorFaxesFolder, out bool rAllowKeepInSentFaxesFolder, out bool rAllowAttachEntireFax)
Parameters
GetSupportedClientVersions()
public SStringList GetSupportedClientVersions()
Returns
HasRole(BuildInRoles)
public bool HasRole(BuildInRoles eRole)
Parameters
eRole
BuildInRoles
Returns
JobAttachFile(int, int, EFaxAttachementType, bool, string, string, uint)
Attach to Job specified file
public void JobAttachFile(int JobID, int dwPosition, EFaxAttachementType eType, bool bCover, string strFileName, string strDescription, uint dwPages)
Parameters
JobID
intID of the Job
dwPosition
intIf position is less than 0, file will be placed to the end, otherwise to specified position
eType
EFaxAttachementTypeAttachment Type
bCover
boolIs cover page
strFileName
stringName of the file to be added
strDescription
stringDescrioption
dwPages
uint
PingService(FaxClientFacadeClient)
protected override void PingService(FaxClientFacadeClient client)
Parameters
client
FaxClientFacadeClient
SetFaxJobInfo(int, FaxJobEntry)
CDSService updates Jobs entry in FaxJobs Table
public void SetFaxJobInfo(int JobID, FaxJobEntry entry)
Parameters
JobID
intID of the Job
entry
FaxJobEntryThe entry containing all new values
Remarks
This method does not detect concurrency vioalations. (Nevertheless concurrency violation exception can be thrown)
SetJobTransmitReportingParams(int, bool, bool, bool, EFaxJobConfirmationMode, EFaxJobConfirmationToEmailAttachmentFormat, bool, EFaxJobConfirmationMode, string, bool, EFaxJobConfirmationMode, EFaxJobConfirmationToEmailAttachmentFormat, bool, EFaxJobConfirmationMode, string)
Update Jobs transmit reporting parameters
public void SetJobTransmitReportingParams(int dwJobId, bool bKeepSent, bool bKeepFailed, bool bSucceedConfirmationToEmailEnabled, EFaxJobConfirmationMode eSucceedConfirmationToEmailMode, EFaxJobConfirmationToEmailAttachmentFormat eSucceedConfirmationToEmailAttachmentFormat, bool bSucceedConfirmationToPrinterEnabled, EFaxJobConfirmationMode eSucceedConfirmationToPrinterMode, string strSucceedConfirmationPrinterName, bool bFailedNotificationToEmailEnabled, EFaxJobConfirmationMode eFailedNotificationToEmailMode, EFaxJobConfirmationToEmailAttachmentFormat eFailedNotificationToEmailAttachmentFormat, bool bFailedNotificationToPrinterEnabled, EFaxJobConfirmationMode eFailedNotificationToPrinterMode, string strFailedNotificationPrinterName)
Parameters
dwJobId
intbKeepSent
boolbKeepFailed
boolbSucceedConfirmationToEmailEnabled
booleSucceedConfirmationToEmailMode
EFaxJobConfirmationModeeSucceedConfirmationToEmailAttachmentFormat
EFaxJobConfirmationToEmailAttachmentFormatbSucceedConfirmationToPrinterEnabled
booleSucceedConfirmationToPrinterMode
EFaxJobConfirmationModestrSucceedConfirmationPrinterName
stringbFailedNotificationToEmailEnabled
booleFailedNotificationToEmailMode
EFaxJobConfirmationModeeFailedNotificationToEmailAttachmentFormat
EFaxJobConfirmationToEmailAttachmentFormatbFailedNotificationToPrinterEnabled
booleFailedNotificationToPrinterMode
EFaxJobConfirmationModestrFailedNotificationPrinterName
string
SetLocalSettings(FaxClientLocalConfigEntry)
Sets the fax client settings of this user. There is no concurrency check.
public void SetLocalSettings(FaxClientLocalConfigEntry entry)
Parameters
entry
FaxClientLocalConfigEntryThe settings entry
SetLocalSettings(int, FaxClientLocalConfigEntry)
Sets the fax client settings of an user. There is no concurrency check.
public void SetLocalSettings(int UserID, FaxClientLocalConfigEntry entry)
Parameters
UserID
intThe ID of the user. Set to 0 for the addressing the current user.
entry
FaxClientLocalConfigEntryThe settings entry
Remarks
If the UserID is not from the current user the API Role UserAdminRO is required.
TryGetLocalSettings(int, out FaxClientLocalConfigEntry)
Gets the local fax settings for an user. An empty setting entry will be returned
public bool TryGetLocalSettings(int UserID, out FaxClientLocalConfigEntry entry)
Parameters
UserID
intThe ID of the user. Set to 0 for the addressing the current user.
entry
FaxClientLocalConfigEntry
Returns
- bool
Local settings class.
Remarks
If the UserID is not from the current user the API Role UserAdminRO is required.