Class ScraperJson
Utility methods for converting between SEPA classes and their SUPA/JSON representation.
Inheritance
System.Object
ScraperJson
Inherited Members
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 static class ScraperJson
Methods
ConvertAccount(JsonObject)
Creates a new, fully initialized SepaAccount instance from the given JSON
account data.
Declaration
public static SepaAccount ConvertAccount(JsonObject jsAccount)
Parameters
Returns
ConvertAccount(SepaAccount)
Declaration
public static JsonObject ConvertAccount(SepaAccount aAccount)
Parameters
Returns
ConvertBalance(JsonObject)
Declaration
public static SepaBalance ConvertBalance(JsonObject jsBalance)
Parameters
Returns
ConvertBalance(SepaBalance)
Declaration
public static JsonObject ConvertBalance(SepaBalance aBalance)
Parameters
Returns
ConvertResult(JsonObject)
Declaration
public static ScraperResult ConvertResult(JsonObject jsRes)
Parameters
Returns
Exceptions
Type |
Condition |
System.ArgumentNullException |
The parameter was null .
|
See Also
ConvertResult(ScraperResult)
Declaration
public static JsonObject ConvertResult(ScraperResult aRes)
Parameters
Type |
Name |
Description |
ScraperResult |
aRes |
The result to be converted. Must not be null .
|
Returns
Type |
Description |
JsonObject |
Returns a JSON object with the data elements Code ,
Text (optional), and Trace (optional). The Code contains
the numeric value of the Code property. The Text
contains the value from the DisplayText property.
The Trace contains the UTF8 and Base64 encoded value from the
DiagnosticTrace.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
The parameter was null .
|
See Also
ConvertStatement(SepaDocument)
Converts a CAMT document into JSON representation.
Declaration
public static JsonObject ConvertStatement(SepaDocument aDoc)
Parameters
Returns
Exceptions
Type |
Condition |
System.ArgumentNullException |
The parameter was null .
|
System.ArgumentException |
The given document was not CAMT document.
|
System.NotSupportedException |
The CAMT document did not contain a single statement only.
|
ConvertStatement(SepaStatement)
Converts a SepaStatement instance into JSON representation.
Declaration
public static JsonObject ConvertStatement(SepaStatement aStmt)
Parameters
Returns
ConvertStatementEntry(SepaStatementEntry)
Creates a JSON object for the given SepaStatementEntry.
Declaration
public static JsonObject ConvertStatementEntry(SepaStatementEntry aEntry)
Parameters
Returns
ConvertStatementEntry(SepaStatementEntry, SepaTransactionDetails)
Creates a JSON object for the given CAMT transaction details.
Declaration
public static JsonObject ConvertStatementEntry(SepaStatementEntry aEntry, SepaTransactionDetails aTxn)
Parameters
Returns