Reference Library
BnFtpVersion2Request Constructor (fileName, product, fileTime, cdKey, adId, adFileExtension)
NamespacesMBNCSUtil.NetBnFtpVersion2RequestBnFtpVersion2Request(String, String, DateTime, String, Int32, String)
Creates a Version 2 Battle.net FTP request specifically for banner ad downloads.
Declaration Syntax
C#Visual BasicVisual C++
public BnFtpVersion2Request(
	string fileName,
	string product,
	DateTime fileTime,
	string cdKey,
	int adId,
	string adFileExtension
)
Public Sub New ( _
	fileName As String, _
	product As String, _
	fileTime As DateTime, _
	cdKey As String, _
	adId As Integer, _
	adFileExtension As String _
)
public:
BnFtpVersion2Request(
	String^ fileName, 
	String^ product, 
	DateTime fileTime, 
	String^ cdKey, 
	int adId, 
	String^ adFileExtension
)
Parameters
fileName (String)
The full or relative path to the file as it is to be stored on the local machine. The name portion of the file must be the filename being requested from the service.
product (String)
The four-character identifier for the product being emulated by this request.
fileTime (DateTime)
The last-write time of the file. If the file is not available, this parameter can be null (Nothing in Visual Basic).
cdKey (String)
The CD key of the client being emulated.
adId (Int32)
The banner ID provided by Battle.net's ad notice message.
adFileExtension (String)
The banner filename extension provided by Battle.net's ad notice message.
Remarks

Although it is not specifically required to download banner ads, it is recommended for forward-compatibility with the Battle.net protocol that this constructor is used.

Assembly: Asgard5Library (Module: Asgard5Library)