Class ScraperSession
Inheritance
System.Object
Subsembly.Interweb.HttpClient
ScraperSession
Implements
System.IDisposable
Inherited Members
Subsembly.Interweb.HttpClient.HttpSendRequestCompleted
Subsembly.Interweb.HttpClient.Dispose()
Subsembly.Interweb.HttpClient.SetProxy(Subsembly.Interweb.HttpProxy)
Subsembly.Interweb.HttpClient.Timeout
Subsembly.Interweb.HttpClient.ContentEncoding
Subsembly.Interweb.HttpClient.Refresh
Subsembly.Interweb.HttpClient.ContentType
Subsembly.Interweb.HttpClient.ContentDispositionFileName
Subsembly.Interweb.HttpClient.LastHttpStatus
Subsembly.Interweb.HttpClient.CurrentLocation
Subsembly.Interweb.HttpClient.SetCredentials(System.String, System.String)
Subsembly.Interweb.HttpClient.SetBearerAuthentication(System.String)
Subsembly.Interweb.HttpClient.ClearAuthentication()
Subsembly.Interweb.HttpClient.IgnoreSSL
Subsembly.Interweb.HttpClient.ThrowOnHttpError
Subsembly.Interweb.HttpClient.UserAgent
Subsembly.Interweb.HttpClient.Origin
Subsembly.Interweb.HttpClient.RedirectLocation
Subsembly.Interweb.HttpClient.AcceptHeader
Subsembly.Interweb.HttpClient.AcceptEncodingHeader
Subsembly.Interweb.HttpClient.AcceptLanguageHeader
Subsembly.Interweb.HttpClient.AllowRedirects
Subsembly.Interweb.HttpClient.HttpGet(System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpGet(System.String, Subsembly.Interweb.UrlQueryParams, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpGetJson(System.String, Subsembly.Interweb.UrlQueryParams, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpGetXml(System.String)
Subsembly.Interweb.HttpClient.HttpOptions(System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpOptions(System.String, Subsembly.Interweb.UrlQueryParams, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpPost(System.String, System.String, System.String, System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpPostMultipartFormData(System.String, Subsembly.Interweb.HttpMultipartFormData)
Subsembly.Interweb.HttpClient.HttpPostMultipartFormDataRaw(System.String, Subsembly.Interweb.HttpMultipartFormData)
Subsembly.Interweb.HttpClient.HttpPostQuery(System.String, Subsembly.Interweb.UrlQueryParams, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpPut(System.String, System.String, System.String, System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpPatch(System.String, System.String, System.String, System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpGetRaw(System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpOptionsRaw(System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpPostRaw(System.String, System.Byte[], System.String, System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpPostJson(System.String, Subsembly.Json.JsonValue, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpPostQueryRaw(System.String, Subsembly.Interweb.UrlQueryParams, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpPutRaw(System.String, System.Byte[], System.String, System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.HttpPatchRaw(System.String, System.Byte[], System.String, System.String, Subsembly.Interweb.HttpHeader[])
Subsembly.Interweb.HttpClient.CreateRequest(System.String, System.String)
Subsembly.Interweb.HttpClient.CreateMultipartFormDataRequest(System.String, Subsembly.Interweb.HttpMultipartFormData)
Subsembly.Interweb.HttpClient.HttpSendRequest(Subsembly.Interweb.HttpRequest, System.Boolean)
Subsembly.Interweb.HttpClient.HttpSendRequestAsync(Subsembly.Interweb.HttpRequest, System.Boolean, System.Object)
Subsembly.Interweb.HttpClient.HttpSendRequestAsync(Subsembly.Interweb.HttpRequest, System.Boolean, System.Object, System.Action<Subsembly.Interweb.HttpSendRequestCompletedEventArgs>)
Subsembly.Interweb.HttpClient.PendingAsyncRequest
Subsembly.Interweb.HttpClient.CancelAsync()
Subsembly.Interweb.HttpClient.ResetCookies()
Subsembly.Interweb.HttpClient.SetCookie(System.String, System.String, System.String, System.String)
Subsembly.Interweb.HttpClient.GetCookie(System.String)
Subsembly.Interweb.HttpClient.OnHttpSendRequestCompleted(Subsembly.Interweb.HttpSendRequestCompletedEventArgs)
Subsembly.Interweb.HttpClient.TraceLineEvent
Subsembly.Interweb.HttpClient.TraceSwitch
Subsembly.Interweb.HttpClient.TraceOptions
Subsembly.Interweb.HttpClient.TraceLine(System.Diagnostics.TraceLevel, System.String)
Subsembly.Interweb.HttpClient.TraceData(System.Byte[])
Subsembly.Interweb.HttpClient.OnTraceHeaderLine(System.String, System.String)
Subsembly.Interweb.HttpClient.OnTraceRequestBody(System.Byte[])
Subsembly.Interweb.HttpClient.OnTraceResponseBody(System.Byte[])
Subsembly.Interweb.HttpClient.OnTraceLine(Subsembly.Interweb.HttpClientTraceEventArgs)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Subsembly.Scraper.dll
Syntax
public abstract class ScraperSession : HttpClient, IDisposable, IScraperSession, IScraperPersist, IScraperSessionAccountInformation, IScraperSessionPayments, IScraperSessionDocuments
Constructors
ScraperSession()
Declaration
Fields
CREDENTIAL_CHALLENGERESPONSE
Declaration
public const string CREDENTIAL_CHALLENGERESPONSE = "ChallengeResponse"
Field Value
Type |
Description |
System.String |
|
CREDENTIAL_PASSWORD
Declaration
public const string CREDENTIAL_PASSWORD = "Password"
Field Value
Type |
Description |
System.String |
|
CREDENTIAL_USERID
Declaration
public const string CREDENTIAL_USERID = "UserID"
Field Value
Type |
Description |
System.String |
|
Properties
Accounts
Declaration
public JsonObject[] Accounts { get; }
Property Value
Declaration
public IScraperContact Contact { get; }
Property Value
IsDirty
Declaration
public bool IsDirty { get; }
Property Value
Type |
Description |
System.Boolean |
|
MaxDocumentDays
Declaration
public int MaxDocumentDays { get; protected set; }
Property Value
Type |
Description |
System.Int32 |
|
MaxStatementDays
Declaration
public int MaxStatementDays { get; protected set; }
Property Value
Type |
Description |
System.Int32 |
|
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
Type |
Description |
System.String[] |
|
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
Type |
Description |
System.String[] |
|
UserIdentification
Convenient access to the Identification field of the UserDetails.
Declaration
public string UserIdentification { get; set; }
Property Value
Type |
Description |
System.String |
|
UserName
Convenient access to the Name field of the UserDetails.
Declaration
public string UserName { get; set; }
Property Value
Type |
Description |
System.String |
|
UserPhoneNumbers
Convenient access to the PhoneNumbers array of the UserDetails.
Declaration
public string[] UserPhoneNumbers { get; set; }
Property Value
Type |
Description |
System.String[] |
|
Methods
AddCardDetails(String, String)
Declaration
protected JsonObject AddCardDetails(string sCardHolderName, string sMaskedCardNumber)
Parameters
Type |
Name |
Description |
System.String |
sCardHolderName |
Optional card holder name. If null or empty, then it won't be set in the
CardDetails object.
|
System.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
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 |
|
System.DateTime |
tFromDate |
|
Returns
GetUserDetails(String)
Declaration
protected string GetUserDetails(string sFieldName)
Parameters
Type |
Name |
Description |
System.String |
sFieldName |
|
Returns
Type |
Description |
System.String |
|
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
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
Type |
Name |
Description |
System.String |
sFieldName |
|
System.String |
sFieldValue |
|
Implements
System.IDisposable