Class ScraperSession
Inheritance
HttpClient
ScraperSession
Inherited Members
HttpClient.HttpSendRequestCompleted
HttpClient.Dispose()
HttpClient.SetProxy(HttpProxy)
HttpClient.Timeout
HttpClient.ContentEncoding
HttpClient.Refresh
HttpClient.ContentType
HttpClient.ContentDispositionFileName
HttpClient.LastHttpStatus
HttpClient.CurrentLocation
HttpClient.ReferrerPolicy
HttpClient.AuthorizationHeader
HttpClient.ClearAuthentication()
HttpClient.IgnoreSSL
HttpClient.ThrowOnHttpError
HttpClient.UserAgent
HttpClient.Origin
HttpClient.RedirectLocation
HttpClient.AcceptHeader
HttpClient.AcceptEncodingHeader
HttpClient.AcceptLanguageHeader
HttpClient.AllowRedirects
HttpClient.JsonContentType
HttpClient.JsonCharset
HttpClient.PendingAsyncRequest
HttpClient.CancelAsync()
HttpClient.ResetCookies()
HttpClient.OnAddExtraHeaders(HttpRequest)
HttpClient.OnHttpSendRequestCompleted(HttpSendRequestCompletedEventArgs)
HttpClient.TraceLineEvent
HttpClient.TraceSwitch
HttpClient.TraceOptions
HttpClient.OnTraceLine(HttpClientTraceEventArgs)
Assembly: Subsembly.Scraper.dll
Syntax
public abstract class ScraperSession : HttpClient, IDisposable, IScraperSession, IScraperPersist, IScraperSessionAccountInformation, IScraperSessionPayments, IScraperSessionDocuments, IScraperSessionSecuritiesPortfolio
Constructors
ScraperSession()
Declaration
Fields
CREDENTIAL_CHALLENGERESPONSE
Declaration
public const string CREDENTIAL_CHALLENGERESPONSE = "ChallengeResponse"
Field Value
CREDENTIAL_PASSWORD
Declaration
public const string CREDENTIAL_PASSWORD = "Password"
Field Value
CREDENTIAL_USERID
Declaration
public const string CREDENTIAL_USERID = "UserID"
Field Value
Properties
Accounts
Declaration
public JsonObject[] Accounts { get; }
Property Value
Declaration
public IScraperContact Contact { get; }
Property Value
IsDirty
Declaration
public bool IsDirty { get; }
Property Value
MaxDocumentDays
Declaration
public int MaxDocumentDays { get; protected set; }
Property Value
MaxStatementDays
Declaration
public int MaxStatementDays { get; protected set; }
Property Value
State
Declaration
public ScraperSessionState State { get; }
Property Value
UserAddresses
Convenient access to the Addresses array of the UserDetails.
Declaration
public string[] UserAddresses { get; set; }
Property Value
UserCardDetails
Convenient access to the CardDetails array of the UserDetails.
Declaration
public JsonObject[] UserCardDetails { get; set; }
Property Value
UserDetails
Declaration
public JsonObject UserDetails { get; protected set; }
Property Value
UserEMailAddresses
Convenient access to the EMailAddresses array of the UserDetails.
Declaration
public string[] UserEMailAddresses { get; set; }
Property Value
UserIdentification
Convenient access to the Identification field of the UserDetails.
Declaration
public string UserIdentification { get; set; }
Property Value
UserName
Convenient access to the Name field of the UserDetails.
Declaration
public string UserName { get; set; }
Property Value
UserPhoneNumbers
Convenient access to the PhoneNumbers array of the UserDetails.
Declaration
public string[] UserPhoneNumbers { get; set; }
Property Value
Methods
AddCardDetails(string, string, string)
Declaration
protected JsonObject AddCardDetails(string sAccountNumber, string sCardHolderName, string sMaskedCardNumber)
Parameters
Type |
Name |
Description |
string |
sAccountNumber |
Optional account number or some other identification of the account that these
UserCardDetails are referring to.
|
string |
sCardHolderName |
Optional card holder name. If null or empty, then it won't be set in the
CardDetails object.
|
string |
sMaskedCardNumber |
Optional masked card number. If null or empty, then it won't be set in the
CardDetails object.
|
Returns
Type |
Description |
JsonObject |
Returns the newly created CardDetails object that has already been added to the
UserCardDetails. The returned object may be used to add further
custom fields to the object.
|
CancelPayment()
Declaration
public ScraperResult CancelPayment()
Returns
ContinueDownloadStatement(out SepaDocument, JsonObject)
Declaration
public ScraperResult ContinueDownloadStatement(out SepaDocument aCamtDoc, JsonObject jsAuthCredentials)
Parameters
Returns
ContinueLogin(JsonObject)
Declaration
public ScraperResult ContinueLogin(JsonObject jsCredential)
Parameters
Returns
ContinuePayment(JsonObject)
Declaration
public ScraperResult ContinuePayment(JsonObject jsAuthCredentials)
Parameters
Type |
Name |
Description |
JsonObject |
jsAuthCredentials |
|
Returns
DownloadBalances(out SepaBalance[], JsonObject)
Declaration
public ScraperResult DownloadBalances(out SepaBalance[] vaBalances, JsonObject jsAcct)
Parameters
Returns
DownloadDocument(out byte[], JsonObject, JsonObject)
Declaration
public ScraperResult DownloadDocument(out byte[] vbPDF, JsonObject jsAcct, JsonObject jsDoc)
Parameters
Returns
DownloadDocumentList(out JsonArray, JsonObject, DateTime)
Declaration
public ScraperResult DownloadDocumentList(out JsonArray jsDocList, JsonObject jsAcct, DateTime tFromDate)
Parameters
Returns
DownloadPortfolio(out IEnumerable<JsonObject>, JsonObject)
Declaration
public ScraperResult DownloadPortfolio(out IEnumerable<JsonObject> vPortfItems, JsonObject jsAcct)
Parameters
Returns
DownloadStatement(out SepaDocument, JsonObject, DateTime)
Declaration
public ScraperResult DownloadStatement(out SepaDocument aCamtDoc, JsonObject jsAcct, DateTime tFromDate)
Parameters
Type |
Name |
Description |
SepaDocument |
aCamtDoc |
The SepaStatement returned from the scraper is packaged into a full CAMT
SepaDocument.
|
JsonObject |
jsAcct |
|
DateTime |
tFromDate |
|
Returns
GetUserDetails(string)
Declaration
protected string GetUserDetails(string sFieldName)
Parameters
Type |
Name |
Description |
string |
sFieldName |
|
Returns
InitiatePayment(SepaDocument)
Declaration
public ScraperResult InitiatePayment(SepaDocument aPainDoc)
Parameters
Returns
Load(JsonObject)
Declaration
public void Load(JsonObject js)
Parameters
Login(JsonObject)
Declaration
public ScraperResult Login(JsonObject jsCredential)
Parameters
Returns
Logout()
Declaration
OnCancelPayment()
Always returns Subsembly.Scraper.ScraperResult.NotSupported.
Declaration
public virtual ScraperResult OnCancelPayment()
Returns
OnContinueDownloadStatement(out SepaStatement, JsonObject)
Declaration
public virtual ScraperResult OnContinueDownloadStatement(out SepaStatement aStmt, JsonObject jsCredential)
Parameters
Returns
OnContinueLogin(out SepaAccount[], JsonObject)
Declaration
public virtual ScraperResult OnContinueLogin(out SepaAccount[] vAccts, JsonObject jsCredential)
Parameters
Returns
OnContinuePayment(JsonObject)
Always returns Subsembly.Scraper.ScraperResult.NotSupported.
Declaration
public virtual ScraperResult OnContinuePayment(JsonObject jsAuthCredentials)
Parameters
Type |
Name |
Description |
JsonObject |
jsAuthCredentials |
|
Returns
OnDownloadBalances(out SepaBalance[], SepaAccount)
Always throws a NotImplementedException
.
Declaration
public virtual ScraperResult OnDownloadBalances(out SepaBalance[] vaBalances, SepaAccount aAcct)
Parameters
Returns
OnDownloadDocument(out byte[], SepaAccount, JsonObject)
Always returns Subsembly.Scraper.ScraperResult.NotSupported.
Declaration
public virtual ScraperResult OnDownloadDocument(out byte[] vbPDF, SepaAccount aAcct, JsonObject jsDoc)
Parameters
Returns
OnDownloadDocumentList(out JsonArray, SepaAccount, DateTime)
Always throws a NotImplementedException
.
Declaration
public virtual ScraperResult OnDownloadDocumentList(out JsonArray jsDocList, SepaAccount aAcct, DateTime tFromDate)
Parameters
Returns
OnDownloadPortfolio(out IEnumerable<SupaRecordJson>, SepaAccount)
Always returns Subsembly.Scraper.ScraperResult.NotSupported.
Declaration
public virtual ScraperResult OnDownloadPortfolio(out IEnumerable<SupaRecordJson> vPortfItems, SepaAccount aAcct)
Parameters
Returns
OnDownloadStatement(out SepaStatement, SepaAccount, DateTime)
Always throws a NotImplementedException
.
Declaration
public virtual ScraperResult OnDownloadStatement(out SepaStatement aStmt, SepaAccount aAcct, DateTime tFromDate)
Parameters
Returns
OnInitiatePayment(SepaDocument)
Always returns Subsembly.Scraper.ScraperResult.NotSupported.
Declaration
public virtual ScraperResult OnInitiatePayment(SepaDocument aPainDoc)
Parameters
Returns
OnLoad(JsonObject)
Empty default implementation. May be provided by the derived class.
Declaration
public virtual void OnLoad(JsonObject js)
Parameters
OnLogin(out SepaAccount[], JsonObject)
No default implementation. Must be provided by the derived class.
Declaration
public abstract ScraperResult OnLogin(out SepaAccount[] vAccts, JsonObject jsCredential)
Parameters
Returns
OnLogout()
No default implementation. Must be provided by the derived class.
Declaration
public abstract void OnLogout()
OnSave(JsonObject)
Empty default implementation. May be provided by the derived class.
Declaration
public virtual void OnSave(JsonObject js)
Parameters
Save()
Declaration
Returns
SetUserDetails(string, string)
Declaration
protected void SetUserDetails(string sFieldName, string sFieldValue)
Parameters
Implements